Rename "greentext" to "quote"

This commit is contained in:
miruka 2019-08-30 12:10:45 -04:00
parent b651be3c30
commit 927323909d
4 changed files with 9 additions and 9 deletions

View File

@ -13,7 +13,7 @@
- Fixes - Fixes
- Icons on KDE - Icons on KDE
- Show error if uploading avatar fails - Show error if uploading avatar fails or file is corrupted
- If account not in config anymore, discard ui state last page on startup - If account not in config anymore, discard ui state last page on startup
- Don't strip user spacing in html - Don't strip user spacing in html

View File

@ -56,7 +56,7 @@ class HtmlFilter:
return text return text
return re.sub( return re.sub(
r"(^\s*&gt;.*)", r'<span class="greentext">\1</span>', text, r"(^\s*&gt;.*)", r'<span class="quote">\1</span>', text,
) )
@ -84,7 +84,7 @@ class HtmlFilter:
return re.sub( return re.sub(
r"<(p|br/?)>(\s*&gt;.*)(!?</?(?:br|p)/?>)", r"<(p|br/?)>(\s*&gt;.*)(!?</?(?:br|p)/?>)",
r'<\1><span class="greentext">\2</span>\3', r'<\1><span class="quote">\2</span>\3',
text, text,
) )

View File

@ -80,8 +80,8 @@ HTileDelegate {
) + ": " + ev.inline_content ) + ": " + ev.inline_content
return text.replace( return text.replace(
/< *span +class=['"]?greentext['"]? *>(.+)<\/ *span *>/, /< *span +class=['"]?quote['"]? *>(.+)<\/ *span *>/,
'<font color="' + theme.chat.message.greenText + '">$1</font>', '<font color="' + theme.chat.message.quote + '">$1</font>',
) )
} }

View File

@ -278,9 +278,9 @@ chat:
color body: colors.text color body: colors.text
color date: colors.dimText color date: colors.dimText
color greenText: hsluv(135, colors.saturation * 2.25, 75) color quote: hsluv(135, colors.saturation * 2.25, 75)
color link: colors.link color link: colors.link
color code: colors.code color code: colors.code
string styleSheet: string styleSheet:
"a { color: " + link + " }" + "a { color: " + link + " }" +
@ -296,7 +296,7 @@ chat:
"h5 { font-size: " + fontSize.small + "px }" + "h5 { font-size: " + fontSize.small + "px }" +
"h6 { font-size: " + fontSize.smaller + "px }" + "h6 { font-size: " + fontSize.smaller + "px }" +
".greentext { color: " + greenText + " }" ".quote { color: " + quote + " }"
string styleInclude: string styleInclude:
'<style type"text/css">\n' + styleSheet + '\n</style>\n' '<style type"text/css">\n' + styleSheet + '\n</style>\n'