Skip to content

Commit

Permalink
ui: Use the correct default text colour for Theme UI elements
Browse files Browse the repository at this point in the history
color_t's default constructor uses solid white, but the default used in
other code paths is a bit darker than that.

This fixes the vision label being incredibly bright compared to other
"white" labels on the sidebar.
  • Loading branch information
irydacea committed Mar 17, 2021
1 parent a56497a commit 1d73382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display.cpp
Expand Up @@ -2900,7 +2900,7 @@ void display::refresh_report(const std::string& report_name, const config * new_
text.set_font_size(item->font_size())
.set_font_style(font::pango_text::STYLE_NORMAL)
.set_alignment(PANGO_ALIGN_LEFT)
.set_foreground_color(item->font_rgb_set() ? item->font_rgb() : color_t{})
.set_foreground_color(item->font_rgb_set() ? item->font_rgb() : font::NORMAL_COLOR)
.set_maximum_width(area.w)
.set_maximum_height(area.h, false)
.set_ellipse_mode(PANGO_ELLIPSIZE_END)
Expand Down

0 comments on commit 1d73382

Please sign in to comment.