aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorminils <minils@users.noreply.github.com>2021-08-14 20:19:57 +0200
committerGitHub <noreply@github.com>2021-08-14 20:19:57 +0200
commitcf8501ba30e26bbc02b42204acf5cff650b338f4 (patch)
treead96313950f93e2fa8361cb44423f0838c95e1d7 /main/src
parentf15982de722de9125d3794fbecd1e23b0a4b4915 (diff)
downloaddino-cf8501ba30e26bbc02b42204acf5cff650b338f4.tar.gz
dino-cf8501ba30e26bbc02b42204acf5cff650b338f4.zip
Use opacity instead of hard coded color for formatting chars (#1000)
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/util/helper.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala
index 17dfd334..07c81167 100644
--- a/main/src/ui/util/helper.vala
+++ b/main/src/ui/util/helper.vala
@@ -308,9 +308,9 @@ public static string parse_add_markup(string s_, string? highlight_word, bool pa
int start, end;
match_info.fetch_pos(2, out start, out end);
return parse_add_markup(s[0:start-1], highlight_word, parse_links, parse_text_markup, already_escaped) +
- "<span color='#999'>" + s[start-1:start] + "</span>" +
+ "<span alpha='50%'>" + s[start-1:start] + "</span>" +
@"<$(convenience_tag[i])>" + s[start:end] + @"</$(convenience_tag[i])>" +
- "<span color='#999'>" + s[end:end+1] + "</span>" +
+ "<span alpha='50%'>" + s[end:end+1] + "</span>" +
parse_add_markup(s[end+1:s.length], highlight_word, parse_links, parse_text_markup, already_escaped);
}
} catch (RegexError e) {