Skip to content

Commit

Permalink
reword of #2158 (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxkmm authored Sep 11, 2024
1 parent d45a172 commit d30234a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/common/ui_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ void Button::paint(Painter& painter) {

const Style paint_style = {style().font, bg, fg};

painter.draw_rectangle({r.location(), {r.size().width(), 1}}, Theme::getInstance()->fg_light->foreground);
painter.draw_rectangle({r.location(), {r.size().width(), 1}}, Theme::getInstance()->bg_light->background);
painter.draw_rectangle({r.location().x(), r.location().y() + r.size().height() - 1, r.size().width(), 1}, Theme::getInstance()->bg_dark->background);
painter.draw_rectangle({r.location().x() + r.size().width() - 1, r.location().y(), 1, r.size().height()}, Theme::getInstance()->bg_dark->background);

Expand Down Expand Up @@ -1311,7 +1311,7 @@ void NewButton::paint(Painter& painter) {
const auto r = screen_rect();
const Style style = paint_style();

painter.draw_rectangle({r.location(), {r.width(), 1}}, Theme::getInstance()->fg_light->foreground);
painter.draw_rectangle({r.location(), {r.width(), 1}}, Theme::getInstance()->bg_light->background);
painter.draw_rectangle({r.left(), r.top() + r.height() - 1, r.width(), 1}, Theme::getInstance()->bg_dark->background);
painter.draw_rectangle({r.left() + r.width() - 1, r.top(), 1, r.height()}, Theme::getInstance()->bg_dark->background);

Expand Down

0 comments on commit d30234a

Please sign in to comment.