What changed, and why it matters
This commit simply deletes two unused helper functions that set padding for notification screens in two different visual themes. There is no security relevance: no behavior changes, no bug fixes, and no attacker-accessible surface is introduced or removed.
No security action needed. Treat as routine code cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch removes borders_notification() from core/embed/rust/src/ui/layout_bolt/theme/mod.rs and core/embed/rust/src/ui/layout_delizia/theme/mod.rs. It also drops the now-unused Insets import in the Delizia theme. These were dead code elimination changes only; no call sites existed and no functional code was modified.
Changed components
core/embed/rust/src/ui/layout_bolt/theme/mod.rscore/embed/rust/src/ui/layout_delizia/theme/mod.rsInspect captured patch +1 / −9
diff --git a/core/embed/rust/src/ui/layout_bolt/theme/mod.rs b/core/embed/rust/src/ui/layout_bolt/theme/mod.rs
index 05261b65..fe961d6b 100644
--- a/core/embed/rust/src/ui/layout_bolt/theme/mod.rs
+++ b/core/embed/rust/src/ui/layout_bolt/theme/mod.rs
@@ -698,9 +698,5 @@ pub const fn borders_horizontal_scroll() -> Insets {
Insets::new(6, 6, 0, 6)
}
-pub const fn borders_notification() -> Insets {
- Insets::new(48, 6, 6, 6)
-}
-
pub const RESULT_ERROR: ResultStyle =
ResultStyle::new(FG, FATAL_ERROR_COLOR, FATAL_ERROR_HIGHLIGHT_COLOR);
diff --git a/core/embed/rust/src/ui/layout_delizia/theme/mod.rs b/core/embed/rust/src/ui/layout_delizia/theme/mod.rs
index 3083beff..d76a2779 100644
--- a/core/embed/rust/src/ui/layout_delizia/theme/mod.rs
+++ b/core/embed/rust/src/ui/layout_delizia/theme/mod.rs
@@ -13,7 +13,7 @@ use crate::{
FixedHeightBar,
},
display::Color,
- geometry::{Insets, Offset},
+ geometry::Offset,
util::include_icon,
},
};
@@ -826,9 +826,5 @@ pub const fn button_bar<T>(inner: T) -> FixedHeightBar<T> {
FixedHeightBar::bottom(inner, BUTTON_HEIGHT)
}
-pub const fn borders_notification() -> Insets {
- Insets::new(42, 0, 0, 0)
-}
-
pub const RESULT_ERROR: ResultStyle =
ResultStyle::new(FG, FATAL_ERROR_COLOR, FATAL_ERROR_HIGHLIGHT_COLOR);
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.