Skip to content

Commit

Permalink
fix: settings background not rerendering
Browse files Browse the repository at this point in the history
  • Loading branch information
goweiwen committed Jun 1, 2024
1 parent f5047e7 commit 19f7a77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/stylesheet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ rgui_particle_color = "0xFF{highlight:X}"

#[inline]
fn default_background_color() -> Color {
Color::rgba(0, 0, 0, 0)
Color::new(0, 0, 0)
}

#[inline]
Expand Down
1 change: 1 addition & 0 deletions common/src/view/settings_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ impl View for SettingsList {
// Highlight Background
if right_rect.w != 0 && right_rect.h != 0 {
let rect = left_rect.union(&right_rect);
display.load(Rect::new(rect.x - 12, rect.y - 4, rect.w + 24, rect.h + 8))?;
RoundedRectangle::with_equal_corners(
Rectangle::new(
embedded_graphics::prelude::Point::new(self.rect.x, rect.y - 4),
Expand Down

0 comments on commit 19f7a77

Please sign in to comment.