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
|
||||
|
||||
- Fixes
|
||||
- `<hr>`, need to add width attribute
|
||||
- Keyboard flicking against top/bottom edge
|
||||
- Don't strip user spacing in html
|
||||
- Past events loading (limit 100) freezes the GUI - need to move upsert func
|
||||
|
|
|
@ -111,6 +111,7 @@ class HtmlFilter:
|
|||
attributes = {**inlines_attributes, **{
|
||||
"img": {"width", "height", "alt", "title", "src"},
|
||||
"ol": {"start"},
|
||||
"hr": {"width"},
|
||||
}}
|
||||
|
||||
return {
|
||||
|
|
|
@ -120,11 +120,17 @@ QtObject {
|
|||
property color date: colors.foregroundDim
|
||||
|
||||
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 string styleSheet:
|
||||
"a { color: " + link + " }" +
|
||||
|
||||
"code { font-family: " + fontFamily.mono + "; " +
|
||||
"color: " + code + " }" +
|
||||
|
||||
"h1, h2 { font-weight: normal }" +
|
||||
"h6 { font-size: small }" +
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user