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
- 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
- Don't strip user spacing in html

View File

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

View File

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

View File

@ -278,7 +278,7 @@ chat:
color body: colors.text
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 code: colors.code
@ -296,7 +296,7 @@ chat:
"h5 { font-size: " + fontSize.small + "px }" +
"h6 { font-size: " + fontSize.smaller + "px }" +
".greentext { color: " + greenText + " }"
".quote { color: " + quote + " }"
string styleInclude:
'<style type"text/css">\n' + styleSheet + '\n</style>\n'