Set html style for code
This commit is contained in:
parent
95c05356da
commit
ab2a73dbfc
1
TODO.md
1
TODO.md
|
@ -14,6 +14,7 @@
|
||||||
- When qml syntax highlighting supports string interpolation, use them
|
- When qml syntax highlighting supports string interpolation, use them
|
||||||
|
|
||||||
- Fixes
|
- Fixes
|
||||||
|
- `<hr>`, need to add width attribute
|
||||||
- Keyboard flicking against top/bottom edge
|
- Keyboard flicking against top/bottom edge
|
||||||
- Don't strip user spacing in html
|
- Don't strip user spacing in html
|
||||||
- Past events loading (limit 100) freezes the GUI - need to move upsert func
|
- Past events loading (limit 100) freezes the GUI - need to move upsert func
|
||||||
|
|
|
@ -111,6 +111,7 @@ class HtmlFilter:
|
||||||
attributes = {**inlines_attributes, **{
|
attributes = {**inlines_attributes, **{
|
||||||
"img": {"width", "height", "alt", "title", "src"},
|
"img": {"width", "height", "alt", "title", "src"},
|
||||||
"ol": {"start"},
|
"ol": {"start"},
|
||||||
|
"hr": {"width"},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -120,11 +120,17 @@ QtObject {
|
||||||
property color date: colors.foregroundDim
|
property color date: colors.foregroundDim
|
||||||
|
|
||||||
property color link: colors.accentDarker
|
property color link: colors.accentDarker
|
||||||
|
// property color code: Ut.hsl(0, 0, 80)
|
||||||
|
// property color codeBackground: Ut.hsl(0, 0, 10)
|
||||||
|
property color code: Ut.hsl(265, 60, 35)
|
||||||
property color greenText: Ut.hsl(80, 60, 25)
|
property color greenText: Ut.hsl(80, 60, 25)
|
||||||
|
|
||||||
property string styleSheet:
|
property string styleSheet:
|
||||||
"a { color: " + link + " }" +
|
"a { color: " + link + " }" +
|
||||||
|
|
||||||
|
"code { font-family: " + fontFamily.mono + "; " +
|
||||||
|
"color: " + code + " }" +
|
||||||
|
|
||||||
"h1, h2 { font-weight: normal }" +
|
"h1, h2 { font-weight: normal }" +
|
||||||
"h6 { font-size: small }" +
|
"h6 { font-size: small }" +
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user