From 0421897c81bf246dcd066cfda81abb817cdf6cd7 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Tue, 20 Feb 2024 20:51:52 +0100 Subject: Fix poor contrast of highlight in search results with dark theme - fixes #1308 --- main/src/ui/global_search.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/ui/global_search.vala b/main/src/ui/global_search.vala index 6872f631..2fb31a90 100644 --- a/main/src/ui/global_search.vala +++ b/main/src/ui/global_search.vala @@ -260,7 +260,8 @@ public class GlobalSearch { for (; match_info.matches(); match_info.next()) { int start, end; match_info.fetch_pos(0, out start, out end); - markup_text += Markup.escape_text(text[last_end:start]) + "" + Markup.escape_text(text[start:end]) + ""; + string themed_span = Util.is_dark_theme(label) ? "" : ""; + markup_text += Markup.escape_text(text[last_end:start]) + themed_span + Markup.escape_text(text[start:end]) + ""; last_end = end; } markup_text += Markup.escape_text(text[last_end:text.length]); -- cgit v1.2.3-70-g09d2