mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
20efcd0fd6
commit
6b9bcd001e
@ -165,7 +165,7 @@ class IconResourceManager:
|
||||
q = os.path.join(self.override_icon_path, name)
|
||||
if os.path.exists(q):
|
||||
return QIcon(q)
|
||||
return QIcon.fromTheme(os.path.splitext(name.replace('/', '__'))[0])
|
||||
return QIcon.fromTheme(os.path.splitext(name.replace('\\', '__').replace('/', '__'))[0])
|
||||
|
||||
def set_theme(self, is_dark_theme):
|
||||
QIcon.setThemeName(self.dark_theme_name if is_dark_theme else self.light_theme_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user