Skip to content

Commit

Permalink
fix(rust): fix drawing of 1px bar shape
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
cepetr committed Feb 28, 2025
1 parent 9b03dd1 commit e529bd4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/embed/rust/src/ui/shape/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e529bd4

Please # to comment.