Browse Source

Set UI theme color for Browser's count label and MenuBar's info label.

tags/v2.3.0
Andrew Belt 1 year ago
parent
commit
41a234da18
2 changed files with 2 additions and 1 deletions
  1. +0
    -1
      src/app/Browser.cpp
  2. +2
    -0
      src/app/MenuBar.cpp

+ 0
- 1
src/app/Browser.cpp View File

@@ -518,7 +518,6 @@ struct Browser : widget::OpaqueWidget {


countLabel = new ui::Label; countLabel = new ui::Label;
countLabel->box.size.x = 100; countLabel->box.size.x = 100;
countLabel->color.a = 0.5;
headerLayout->addChild(countLabel); headerLayout->addChild(countLabel);


SortButton* sortButton = new SortButton; SortButton* sortButton = new SortButton;


+ 2
- 0
src/app/MenuBar.cpp View File

@@ -996,6 +996,8 @@ struct MenuBar : widget::OpaqueWidget {
void step() override { void step() override {
Widget::step(); Widget::step();
infoLabel->box.size.x = box.size.x - infoLabel->box.pos.x - 5; infoLabel->box.size.x = box.size.x - infoLabel->box.pos.x - 5;
// Setting 50% alpha prevents Label from using the default UI theme color, so set the color manually here.
infoLabel->color = color::alpha(bndGetTheme()->regularTheme.textColor, 0.5);
} }
}; };




Loading…
Cancel
Save