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