From c2c4aaa1022bf0511edf145ea79f6a94579136cc Mon Sep 17 00:00:00 2001 From: frysee Date: Mon, 19 May 2025 23:55:54 +0200 Subject: [PATCH] fix: settings list items not properly using theme colors --- workspace/all/settings/menu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workspace/all/settings/menu.cpp b/workspace/all/settings/menu.cpp index 3809a5f54..ff7a43b10 100644 --- a/workspace/all/settings/menu.cpp +++ b/workspace/all/settings/menu.cpp @@ -565,7 +565,7 @@ void MenuList::drawList(SDL_Surface *surface, const SDL_Rect &dst) void MenuList::drawListItem(SDL_Surface *surface, const SDL_Rect &dst, const MenuItem &item, bool selected) { - SDL_Color text_color = COLOR_WHITE; + SDL_Color text_color = uintToColour(THEME_COLOR4_255); SDL_Surface *text; // int ox = (dst.w - w) / 2; // if we're centering these (but I don't think we should after seeing it) @@ -623,6 +623,7 @@ namespace void MenuList::drawFixedItem(SDL_Surface *surface, const SDL_Rect &dst, const MenuItem &item, bool selected) { SDL_Color text_color = uintToColour(THEME_COLOR4_255); + SDL_Color text_color_value = uintToColour(THEME_COLOR4_255); SDL_Surface *text; // hack - this should be correlated to max_width @@ -636,7 +637,7 @@ void MenuList::drawFixedItem(SDL_Surface *surface, const SDL_Rect &dst, const Me if (item.getValue().has_value()) { - text = TTF_RenderUTF8_Blended(font.tiny, item.getLabel().c_str(), COLOR_WHITE); // always white + text = TTF_RenderUTF8_Blended(font.tiny, item.getLabel().c_str(), text_color_value); if (item.getType() == ListItemType::Color) {