mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 08:23:08 +02:00
...
This commit is contained in:
parent
ed509a108d
commit
5e95325d3c
1 changed files with 1 additions and 2 deletions
|
|
@ -138,8 +138,7 @@ def __call__(self, name):
|
|||
q = os.path.join(self.override_icon_path, name)
|
||||
if os.path.exists(q):
|
||||
return QIcon(q)
|
||||
name = '__'.join(name.split('/'))
|
||||
return QIcon.fromTheme(os.path.splitext(name)[0])
|
||||
return QIcon.fromTheme(os.path.splitext(name.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…
Reference in a new issue