aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorminils <minils@users.noreply.github.com>2021-02-17 23:25:59 +0100
committerGitHub <noreply@github.com>2021-02-17 23:25:59 +0100
commit73f012133ab7ba26e2279ddcb988873bdfd19663 (patch)
treedcafcfc0f698ff4040f063ea91e60581d415b0db /main/src
parente06cc0842575ebafd92213027287a1d6bc75459e (diff)
downloaddino-73f012133ab7ba26e2279ddcb988873bdfd19663.tar.gz
dino-73f012133ab7ba26e2279ddcb988873bdfd19663.zip
Add different formating with less contrast for markup strings like *,_,~ and `. (#883)
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/util/helper.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala
index b147e5d7..b6c9cb5a 100644
--- a/main/src/ui/util/helper.vala
+++ b/main/src/ui/util/helper.vala
@@ -299,7 +299,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) +
- s[start-1:start] + @"<$(convenience_tag[i])>" + s[start:end] + @"</$(convenience_tag[i])>" + s[end:end+1] +
+ "<span color='#999'>" + s[start-1:start] + "</span>" +
+ @"<$(convenience_tag[i])>" + s[start:end] + @"</$(convenience_tag[i])>" +
+ "<span color='#999'>" + 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) {