This commit is contained in:
Kovid Goyal 2022-01-11 20:56:48 +05:30
parent 8a33f48874
commit 168f583396
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -138,8 +138,7 @@ class IconResourceManager:
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)