Rename "greentext" to "quote"
This commit is contained in:
parent
b651be3c30
commit
927323909d
2
TODO.md
2
TODO.md
|
@ -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
|
||||
|
|
|
@ -56,7 +56,7 @@ class HtmlFilter:
|
|||
return text
|
||||
|
||||
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(
|
||||
r"<(p|br/?)>(\s*>.*)(!?</?(?:br|p)/?>)",
|
||||
r'<\1><span class="greentext">\2</span>\3',
|
||||
r'<\1><span class="quote">\2</span>\3',
|
||||
text,
|
||||
)
|
||||
|
||||
|
|
|
@ -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>',
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -278,9 +278,9 @@ chat:
|
|||
color body: colors.text
|
||||
color date: colors.dimText
|
||||
|
||||
color greenText: hsluv(135, colors.saturation * 2.25, 75)
|
||||
color link: colors.link
|
||||
color code: colors.code
|
||||
color quote: hsluv(135, colors.saturation * 2.25, 75)
|
||||
color link: colors.link
|
||||
color code: colors.code
|
||||
|
||||
string styleSheet:
|
||||
"a { color: " + link + " }" +
|
||||
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user