Rename "greentext" to "quote"
This commit is contained in:
parent
b651be3c30
commit
927323909d
2
TODO.md
2
TODO.md
|
@ -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
|
||||||
|
|
|
@ -56,7 +56,7 @@ class HtmlFilter:
|
||||||
return text
|
return text
|
||||||
|
|
||||||
return re.sub(
|
return re.sub(
|
||||||
r"(^\s*>.*)", r'<span class="greentext">\1</span>', text,
|
r"(^\s*>.*)", r'<span class="quote">\1</span>', text,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class HtmlFilter:
|
||||||
|
|
||||||
return re.sub(
|
return re.sub(
|
||||||
r"<(p|br/?)>(\s*>.*)(!?</?(?:br|p)/?>)",
|
r"<(p|br/?)>(\s*>.*)(!?</?(?:br|p)/?>)",
|
||||||
r'<\1><span class="greentext">\2</span>\3',
|
r'<\1><span class="quote">\2</span>\3',
|
||||||
text,
|
text,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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>',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -278,7 +278,7 @@ 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
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user