Make some minor tweaks to themes and update docs (#2396)

This commit is contained in:
Veronica Berglyd Olsen
2025-06-11 20:27:18 +02:00
committed by GitHub
10 changed files with 37 additions and 32 deletions
+24 -19
View File
@@ -59,40 +59,45 @@ A colour theme ``.conf`` file consists of the following settings:
licenseurl = https://creativecommons.org/licenses/by-sa/4.0/
[Base]
base = #fcfcfc
default = #303030
faded = #6c6c6c
red = #a62a2d
orange = #b36829
yellow = #a68542
yellow = #a39c34
green = #296629
cyan = #269999
blue = #3a70a6
purple = #b35ab3
[Project]
root = blue
folder = yellow
file = default
title = green
chapter = red
scene = blue
note = yellow
root = blue
folder = yellow
file = default
title = green
chapter = red
scene = blue
note = yellow
active = green
inactive = red
disabled = faded
[Palette]
window = #efefef
windowtext = #000000
base = #ffffff
window = base:D105
windowtext = default
base = base
alternatebase = #e0e0e0
text = #000000
text = default
tooltipbase = #ffffc0
tooltiptext = #15150d
button = #efefef
buttontext = #000000
brighttext = #ffffff
buttontext = default
brighttext = base
highlight = #3087c6
highlightedtext = #ffffff
highlightedtext = base
link = blue
linkvisited = blue
accent = #3087c6
[GUI]
helptext = #5c5c5c
@@ -100,15 +105,15 @@ A colour theme ``.conf`` file consists of the following settings:
errortext = red
[Syntax]
background = #ffffff
text = #000000
background = base
text = default
link = blue
headertext = green
headertag = green:L135
emphasis = orange
dialog = blue
altdialog = blue
note = yellow
note = yellow:D125
hidden = faded
shortcode = green
keyword = red
@@ -119,7 +124,7 @@ A colour theme ``.conf`` file consists of the following settings:
errorline = green
replacetag = green
modifier = green
texthighlight = #c8c80060
texthighlight = yellow:72
Theme Sections
+1 -1
View File
@@ -33,7 +33,7 @@ inactive = red
disabled = faded
[Palette]
window = #303030
window = base:L125
windowtext = default
base = base
alternatebase = #4e4e4e
+1 -1
View File
@@ -33,7 +33,7 @@ inactive = red
disabled = faded
[Palette]
window = #efefef
window = base:D105
windowtext = default
base = base
alternatebase = #e0e0e0
+1 -1
View File
@@ -52,7 +52,7 @@ inactive = red
disabled = faded
[Palette]
window = #434652
window = base:L140
windowtext = default
base = base
alternatebase = #32374d
+1 -1
View File
@@ -42,7 +42,7 @@ inactive = red
disabled = faded
[Palette]
window = #555753
window = base:L140
windowtext = default
base = base
alternatebase = #454e51
+1 -1
View File
@@ -42,7 +42,7 @@ inactive = red
disabled = faded
[Palette]
window = #d3d7cf
window = base:D110
windowtext = default
base = base
alternatebase = #e0e0e0
@@ -52,7 +52,7 @@ inactive = red
disabled = faded
[Palette]
window = #00346e
window = base:L125
windowtext = default
base = base
alternatebase = #003f8e
@@ -52,7 +52,7 @@ inactive = red
disabled = faded
[Palette]
window = #2a2a2a
window = #181818
windowtext = default
base = base
alternatebase = #424242
+1 -1
View File
@@ -156,7 +156,7 @@ class _PagedToolButton(QToolButton):
if self.isChecked():
painter.setBrush(palette.highlight())
painter.setOpacity(0.35)
painter.setOpacity(0.8)
painter.drawRoundedRect(0, 0, width, height, 4, 4)
textCol = palette.highlightedText().color()
else:
+1 -1
View File
@@ -419,7 +419,7 @@ class _ProjectListItem(QStyledItemDelegate):
painter.save()
if opt.state & QtSelected == QtSelected:
painter.setOpacity(0.25)
painter.fillRect(rect, QApplication.palette().highlight())
painter.fillRect(rect, QApplication.palette().text())
painter.setOpacity(1.0)
painter.drawPixmap(2, rect.top() + 6, self._icon)