Set html style for code

This commit is contained in:
miruka 2019-07-21 18:17:51 -04:00
parent 95c05356da
commit ab2a73dbfc
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -111,6 +111,7 @@ class HtmlFilter:
attributes = {**inlines_attributes, **{
"img": {"width", "height", "alt", "title", "src"},
"ol": {"start"},
"hr": {"width"},
}}
return {

View File

@ -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 }" +