Add theme setting for current line
This commit is contained in:
@@ -320,8 +320,7 @@ class GuiDocEditor(QPlainTextEdit):
|
|||||||
self.docHeader.matchColors()
|
self.docHeader.matchColors()
|
||||||
self.docFooter.matchColors()
|
self.docFooter.matchColors()
|
||||||
|
|
||||||
self._lineColor = self.palette().alternateBase().color()
|
self._lineColor = syntax.line
|
||||||
self._lineColor.setAlpha(160)
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ class SyntaxColors:
|
|||||||
|
|
||||||
back: QColor = QColor(255, 255, 255)
|
back: QColor = QColor(255, 255, 255)
|
||||||
text: QColor = QColor(0, 0, 0)
|
text: QColor = QColor(0, 0, 0)
|
||||||
|
line: QColor = QColor(0, 0, 0)
|
||||||
link: QColor = QColor(0, 0, 0)
|
link: QColor = QColor(0, 0, 0)
|
||||||
head: QColor = QColor(0, 0, 0)
|
head: QColor = QColor(0, 0, 0)
|
||||||
headH: QColor = QColor(0, 0, 0)
|
headH: QColor = QColor(0, 0, 0)
|
||||||
@@ -364,6 +365,7 @@ class GuiTheme:
|
|||||||
if parser.has_section(sec):
|
if parser.has_section(sec):
|
||||||
self.syntaxTheme.back = self._readColor(parser, sec, "background")
|
self.syntaxTheme.back = self._readColor(parser, sec, "background")
|
||||||
self.syntaxTheme.text = self._readColor(parser, sec, "text")
|
self.syntaxTheme.text = self._readColor(parser, sec, "text")
|
||||||
|
self.syntaxTheme.line = self._readColor(parser, sec, "line")
|
||||||
self.syntaxTheme.link = self._readColor(parser, sec, "link")
|
self.syntaxTheme.link = self._readColor(parser, sec, "link")
|
||||||
self.syntaxTheme.head = self._readColor(parser, sec, "headertext")
|
self.syntaxTheme.head = self._readColor(parser, sec, "headertext")
|
||||||
self.syntaxTheme.headH = self._readColor(parser, sec, "headertag")
|
self.syntaxTheme.headH = self._readColor(parser, sec, "headertag")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[Meta]
|
[Meta]
|
||||||
timestamp = 2025-06-10 23:18:12
|
timestamp = 2025-06-14 17:03:01
|
||||||
|
|
||||||
[Main]
|
[Main]
|
||||||
font =
|
font =
|
||||||
@@ -40,6 +40,7 @@ width = 700
|
|||||||
margin = 40
|
margin = 40
|
||||||
tabwidth = 40
|
tabwidth = 40
|
||||||
cursorwidth = 1
|
cursorwidth = 1
|
||||||
|
linehighlight = False
|
||||||
focuswidth = 800
|
focuswidth = 800
|
||||||
hidefocusfooter = False
|
hidefocusfooter = False
|
||||||
justify = False
|
justify = False
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ def testGuiTheme_CheckTheme(theme):
|
|||||||
"helptext", "fadedtext", "errortext",
|
"helptext", "fadedtext", "errortext",
|
||||||
],
|
],
|
||||||
"Syntax": [
|
"Syntax": [
|
||||||
"background", "text", "link", "headertext", "headertag",
|
"background", "text", "line", "link", "headertext", "headertag",
|
||||||
"emphasis", "dialog", "altdialog", "hidden", "note", "shortcode",
|
"emphasis", "dialog", "altdialog", "hidden", "note", "shortcode",
|
||||||
"keyword", "tag", "value", "optional", "spellcheckline",
|
"keyword", "tag", "value", "optional", "spellcheckline",
|
||||||
"errorline", "replacetag", "modifier", "texthighlight",
|
"errorline", "replacetag", "modifier", "texthighlight",
|
||||||
|
|||||||
Reference in New Issue
Block a user