diff --git a/core/embed/rust/src/ui/shape/bar.rs b/core/embed/rust/src/ui/shape/bar.rs index e52ecba4c1b..e0cfc3c3e2a 100644 --- a/core/embed/rust/src/ui/shape/bar.rs +++ b/core/embed/rust/src/ui/shape/bar.rs @@ -77,9 +77,10 @@ impl Shape<'_> for Bar { // TODO: fatal_error! in unsupported scenarious - let th = match self.fg_color { - Some(_) => self.thickness, - None => 0, + let th = if self.fg_color != self.bg_color { + self.thickness + } else { + 0 }; if self.radius == 0 {