Add a faded icon colour

This commit is contained in:
Veronica Berglyd Olsen
2025-01-11 00:56:16 +01:00
parent 5bf113de23
commit fce18689b7
9 changed files with 11 additions and 2 deletions
@@ -8,6 +8,7 @@ licenseurl = https://creativecommons.org/licenses/by-sa/4.0/
[Icons]
default = 150, 150, 150
faded = 97, 97, 97
red = 242, 72, 23
orange = 255, 150, 10
yellow = 255, 255, 0
@@ -9,6 +9,7 @@ licenseurl = https://creativecommons.org/licenses/by-sa/4.0/
[Icons]
default = 204, 204, 204
faded = 148, 148, 148
red = 242, 119, 122
orange = 249, 145, 57
yellow = 255, 204, 102
@@ -9,6 +9,7 @@ licenseurl = https://creativecommons.org/licenses/by-sa/4.0/
[Icons]
default = 77, 77, 76
faded = 108, 108, 108
red = 240, 40, 41
orange = 245, 135, 31
yellow = 234, 183, 0
+1
View File
@@ -24,6 +24,7 @@ licenseurl = https://github.com/dracula/dracula-theme/blob/main/LICENSE
[Icons]
default = 248, 248, 242
faded = 98, 114, 164
red = 255, 85, 85
orange = 255, 184, 108
yellow = 241, 250, 140
@@ -8,6 +8,7 @@ licenseurl = https://github.com/altercation/solarized/blob/master/LICENSE
[Icons]
default = 253, 246, 227
faded = 166, 161, 149
red = 220, 50, 47
orange = 203, 75, 22
yellow = 181, 137, 0
@@ -8,6 +8,7 @@ licenseurl = https://github.com/altercation/solarized/blob/master/LICENSE
[Icons]
default = 0, 43, 54
faded = 78, 91, 95
red = 220, 50, 47
orange = 203, 75, 22
yellow = 181, 137, 0
+1 -1
View File
@@ -355,7 +355,7 @@ class NWItem:
icon = SHARED.theme.getIcon(key, color)
else:
text = ""
icon = SHARED.theme.getIcon("noncheckable")
icon = SHARED.theme.getIcon("noncheckable", "faded")
return text, icon
##
+1 -1
View File
@@ -241,7 +241,7 @@ class GuiItemDetails(QWidget):
else:
self.labelIcon.setPixmap(SHARED.theme.getPixmap("unchecked", (iPx, iPx), "red"))
else:
self.labelIcon.setPixmap(SHARED.theme.getPixmap("noncheckable", (iPx, iPx)))
self.labelIcon.setPixmap(SHARED.theme.getPixmap("noncheckable", (iPx, iPx), "faded"))
self.labelData.setText(elide(nwItem.itemName, 100))
+3
View File
@@ -252,6 +252,7 @@ class GuiTheme:
sec = "Icons"
if parser.has_section(sec):
self.iconCache.setIconColor("default", self._parseColour(parser, sec, "default"))
self.iconCache.setIconColor("faded", self._parseColour(parser, sec, "faded"))
self.iconCache.setIconColor("red", self._parseColour(parser, sec, "red"))
self.iconCache.setIconColor("orange", self._parseColour(parser, sec, "orange"))
self.iconCache.setIconColor("yellow", self._parseColour(parser, sec, "yellow"))
@@ -544,10 +545,12 @@ class GuiIcons:
"""Clear the icon cache."""
text = QApplication.palette().windowText().color()
default = text.name(QColor.NameFormat.HexRgb).encode("utf-8")
faded = self.mainTheme.fadedText.name(QColor.NameFormat.HexRgb).encode("utf-8")
self._svgData = {}
self._svgColours = {
"default": default,
"faded": faded,
"red": b"#ff0000",
"orange": b"#ff7f00",
"yellow": b"#ffff00",