From 1270950f2ebc5ea6d6e80a2f0c3d18d35ba5b33f Mon Sep 17 00:00:00 2001 From: Hecklezz Date: Tue, 22 Apr 2025 05:25:57 +1000 Subject: [PATCH] Fixes preferences search highlight color by reverting to the old behavior of Bg and Font color being linked. --- indra/llui/llbutton.cpp | 5 ++++- indra/llui/llmenugl.cpp | 5 ++++- .../skins/default/xui/en/panel_preferences_colors.xml | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp index d07a0dc159..c66be7d147 100644 --- a/indra/llui/llbutton.cpp +++ b/indra/llui/llbutton.cpp @@ -901,7 +901,10 @@ void LLButton::draw() // Highlight if needed if( ll::ui::SearchableControl::getHighlighted() ) - label_color = ll::ui::SearchableControl::getHighlightFontColor(); + // [FIRE-35405] Fix for search highlight color until font color picker is added + //label_color = ll::ui::SearchableControl::getHighlightFontColor(); + label_color = ll::ui::SearchableControl::getHighlightBgColor(); + // // overlay with keyboard focus border if (hasFocus()) diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index 42451bd83f..39abd39bb8 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -529,7 +529,10 @@ void LLMenuItemGL::draw( void ) // Highlight if needed if( ll::ui::SearchableControl::getHighlighted() ) - color = ll::ui::SearchableControl::getHighlightFontColor(); + // [FIRE-35405] Fix for search highlight color until font color picker is added + //color = ll::ui::SearchableControl::getHighlightFontColor(); + color = ll::ui::SearchableControl::getHighlightBgColor(); + // // Draw the text on top. if (mBriefItem) diff --git a/indra/newview/skins/default/xui/en/panel_preferences_colors.xml b/indra/newview/skins/default/xui/en/panel_preferences_colors.xml index b0545f31a9..63e1ee2e35 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_colors.xml @@ -1839,10 +1839,10 @@ width="44"> + parameter="SearchableControlHighlightBgColor" /> + parameter="SearchableControlHighlightBgColor" />