From 41a234da186edbe7ac22a415e4c73ef28cdc3c65 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 8 Mar 2023 02:17:46 -0500 Subject: [PATCH] Set UI theme color for Browser's count label and MenuBar's info label. --- src/app/Browser.cpp | 1 - src/app/MenuBar.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/Browser.cpp b/src/app/Browser.cpp index 68856788..7c0bc3c0 100644 --- a/src/app/Browser.cpp +++ b/src/app/Browser.cpp @@ -518,7 +518,6 @@ struct Browser : widget::OpaqueWidget { countLabel = new ui::Label; countLabel->box.size.x = 100; - countLabel->color.a = 0.5; headerLayout->addChild(countLabel); SortButton* sortButton = new SortButton; diff --git a/src/app/MenuBar.cpp b/src/app/MenuBar.cpp index 4853db8a..cec3358a 100644 --- a/src/app/MenuBar.cpp +++ b/src/app/MenuBar.cpp @@ -996,6 +996,8 @@ struct MenuBar : widget::OpaqueWidget { void step() override { Widget::step(); 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); } };