From 1270950f2ebc5ea6d6e80a2f0c3d18d35ba5b33f Mon Sep 17 00:00:00 2001 From: Hecklezz Date: Tue, 22 Apr 2025 05:25:57 +1000 Subject: [PATCH 1/2] 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" /> Date: Thu, 24 Apr 2025 00:10:29 +1000 Subject: [PATCH 2/2] Implemented changing both background and font colours for preference search highlighting. --- indra/llui/llbutton.cpp | 5 +- indra/llui/llmenugl.cpp | 5 +- .../xui/az/panel_preferences_colors.xml | 13 +++- .../xui/de/panel_preferences_colors.xml | 15 +++-- .../xui/en/panel_preferences_colors.xml | 60 +++++++++++++++---- .../xui/es/panel_preferences_colors.xml | 11 ++++ .../xui/fr/panel_preferences_colors.xml | 7 ++- .../xui/it/panel_preferences_colors.xml | 15 +++-- .../xui/ja/panel_preferences_colors.xml | 17 ++++-- .../xui/pl/panel_preferences_colors.xml | 15 +++-- .../xui/ru/panel_preferences_colors.xml | 13 +++- .../xui/zh/panel_preferences_colors.xml | 7 ++- 12 files changed, 138 insertions(+), 45 deletions(-) diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp index c66be7d147..d07a0dc159 100644 --- a/indra/llui/llbutton.cpp +++ b/indra/llui/llbutton.cpp @@ -901,10 +901,7 @@ void LLButton::draw() // Highlight if needed if( ll::ui::SearchableControl::getHighlighted() ) - // [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(); - // + label_color = ll::ui::SearchableControl::getHighlightFontColor(); // overlay with keyboard focus border if (hasFocus()) diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index 39abd39bb8..42451bd83f 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -529,10 +529,7 @@ void LLMenuItemGL::draw( void ) // Highlight if needed if( ll::ui::SearchableControl::getHighlighted() ) - // [FIRE-35405] Fix for search highlight color until font color picker is added - //color = ll::ui::SearchableControl::getHighlightFontColor(); - color = ll::ui::SearchableControl::getHighlightBgColor(); - // + color = ll::ui::SearchableControl::getHighlightFontColor(); // Draw the text on top. if (mBriefItem) diff --git a/indra/newview/skins/default/xui/az/panel_preferences_colors.xml b/indra/newview/skins/default/xui/az/panel_preferences_colors.xml index ccb5a158f9..fd002c1a7a 100644 --- a/indra/newview/skins/default/xui/az/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/az/panel_preferences_colors.xml @@ -202,9 +202,16 @@ - Seçim axtarışının rəngi: - - + Seçim axtarışının rəngləri: + + + Fon: + + + + Şrift: + + Axtarış zonasının işarənin rəngi: diff --git a/indra/newview/skins/default/xui/de/panel_preferences_colors.xml b/indra/newview/skins/default/xui/de/panel_preferences_colors.xml index a4c831050d..b97438dbf9 100644 --- a/indra/newview/skins/default/xui/de/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/de/panel_preferences_colors.xml @@ -201,10 +201,17 @@ - Farbe für Einstellungssuche: - - - + Farben für Einstellungssuche: + + + Hintergrund: + + + + Schriftart: + + + Farbe für Markierung der Umgebungssuche: 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 63e1ee2e35..3ad611d33d 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_colors.xml @@ -1823,8 +1823,19 @@ height="12" name="preferences_search_label" top_pad="10" - width="220"> - Preferences Search Highlight Color: + width="400"> + Preferences Search Highlight Colors: + + + + Background: + Font: + + + + + + + + top_delta="-21" + width="310"> Area search beacon Color: + + Colores de resaltado de búsqueda de preferencias: + + + Fondo: + + + + Fuente: + + diff --git a/indra/newview/skins/default/xui/fr/panel_preferences_colors.xml b/indra/newview/skins/default/xui/fr/panel_preferences_colors.xml index 150b14300c..7122c18a21 100644 --- a/indra/newview/skins/default/xui/fr/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/fr/panel_preferences_colors.xml @@ -101,8 +101,11 @@ Surlignage des préférences recherchées : - - Couleur de la balise de recherche zonière : + Arrière-plan : + + Police : + + Couleur de la balise de recherche zonière : Couleurs des notices : diff --git a/indra/newview/skins/default/xui/it/panel_preferences_colors.xml b/indra/newview/skins/default/xui/it/panel_preferences_colors.xml index 5322171d9d..4039d7a972 100644 --- a/indra/newview/skins/default/xui/it/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/it/panel_preferences_colors.xml @@ -200,10 +200,17 @@ - Risultati di ricerca nelle preferenze: - - - + Risultati di ricerca nelle preferenze: + + + Sfondo: + + + + Carattere: + + + Raggio di tracciamento (ad es. per Cerca Oggetti): diff --git a/indra/newview/skins/default/xui/ja/panel_preferences_colors.xml b/indra/newview/skins/default/xui/ja/panel_preferences_colors.xml index e07aa9f356..bbf04baa62 100644 --- a/indra/newview/skins/default/xui/ja/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/ja/panel_preferences_colors.xml @@ -235,12 +235,19 @@ - 検索結果の強調色: - - + 検索結果の強調色: + + + 背景: + + + + フォント: + + - エリアサーチ・ビーコンの色 - + エリアサーチ・ビーコンの色: + diff --git a/indra/newview/skins/default/xui/pl/panel_preferences_colors.xml b/indra/newview/skins/default/xui/pl/panel_preferences_colors.xml index aedefdad99..c1c35259d2 100644 --- a/indra/newview/skins/default/xui/pl/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/pl/panel_preferences_colors.xml @@ -198,10 +198,17 @@ - Wyniki wyszukiwania w opcjach: - - - + Wyniki wyszukiwania w opcjach: + + + Tło: + + + + Czcionka: + + + Emiter śledzenia (np. przeszukiwania obszaru): diff --git a/indra/newview/skins/default/xui/ru/panel_preferences_colors.xml b/indra/newview/skins/default/xui/ru/panel_preferences_colors.xml index f6da72911b..202f3e45a1 100644 --- a/indra/newview/skins/default/xui/ru/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/ru/panel_preferences_colors.xml @@ -203,9 +203,16 @@ - Цвет подсветки поиска в настройках: - - + Цвета подсветки поиска в настройках: + + gi + Фон: + + + + Шрифт: + + Цвет маяка зоны поиска: diff --git a/indra/newview/skins/default/xui/zh/panel_preferences_colors.xml b/indra/newview/skins/default/xui/zh/panel_preferences_colors.xml index 10fdd65c98..d88c118872 100644 --- a/indra/newview/skins/default/xui/zh/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/zh/panel_preferences_colors.xml @@ -101,7 +101,10 @@ 突出顯示搜尋偏好設定: - + 背景: + + 字体: + 區域搜尋標記顏色: @@ -134,4 +137,4 @@ - \ No newline at end of file +