aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-06-24 13:40:42 +0200
committerdec05eba <dec05eba@protonmail.com>2023-06-24 13:40:42 +0200
commit3f17b05161885ab773984a735a4161493e846fb6 (patch)
treef4f209ba67249e8a819eef332e6f83b6d9d99afa
parent29c9ef23c41d91603cc2860ac233c30b6ade54e3 (diff)
Add brimstone orange text color in matrix on <
-rw-r--r--src/plugins/Matrix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 7bee2ab..9dd4ec9 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -4154,6 +4154,10 @@ namespace QuickMedia {
formatted_body += "<font color=\"#789922\">";
formatted_body_add_line(room, formatted_body, line_str, custom_emojis_copy);
formatted_body += "</font>";
+ } else if(!is_inside_code_block && size > 0 && str[0] == '<') {
+ formatted_body += "<font color=\"#F6750B\">";
+ formatted_body_add_line(room, formatted_body, line_str, custom_emojis_copy);
+ formatted_body += "</font>";
} else {
if(is_inside_code_block) {
formatted_body += line_str;