Merge branch 'main' into unicode_fix
This commit is contained in:
@@ -441,9 +441,9 @@ class ProjectXMLReader:
|
||||
for xEntry in xItem:
|
||||
if xEntry.tag == "entry":
|
||||
key = xEntry.attrib.get("key", None)
|
||||
red = checkInt(xEntry.attrib.get("red", 0), 0) # Deprecated in 1.5 R6
|
||||
green = checkInt(xEntry.attrib.get("green", 0), 0) # Deprecated in 1.5 R6
|
||||
blue = checkInt(xEntry.attrib.get("blue", 0), 0) # Deprecated in 1.5 R6
|
||||
red = checkInt(xEntry.attrib.get("red", 0), 0) # Removed in 1.5 R6
|
||||
green = checkInt(xEntry.attrib.get("green", 0), 0) # Removed in 1.5 R6
|
||||
blue = checkInt(xEntry.attrib.get("blue", 0), 0) # Removed in 1.5 R6
|
||||
color = xEntry.attrib.get("color") # Added in 1.5 R6
|
||||
count = checkInt(xEntry.attrib.get("count", 0), 0)
|
||||
shape = xEntry.attrib.get("shape", "")
|
||||
|
||||
@@ -192,7 +192,8 @@ class NWStatus:
|
||||
def refreshIcons(self) -> None:
|
||||
"""Refresh all icons."""
|
||||
for entry in self._store.values():
|
||||
entry.color = SHARED.theme.parseColor(entry.theme)
|
||||
if entry.theme != CUSTOM_COL:
|
||||
entry.color = SHARED.theme.parseColor(entry.theme)
|
||||
entry.icon = NWStatus.createIcon(self._height, entry.color, entry.shape)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user