mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix theming on Windows
- Use Unix path separator - Strip off UNC prefix when running under Bazel
This commit is contained in:
parent
f72570c604
commit
6944210fbe
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,11 @@ class ThemeManager:
|
|||
|
||||
filename = f"{name}-{'dark' if self.night_mode else 'light'}.svg"
|
||||
|
||||
return os.path.join(aqt_data_folder(), "qt", "icons", filename)
|
||||
return (
|
||||
os.path.join(aqt_data_folder(), "qt", "icons", filename)
|
||||
.replace("\\\\?\\", "")
|
||||
.replace("\\", "/")
|
||||
)
|
||||
|
||||
def icon_from_resources(self, path: str | ColoredIcon) -> QIcon:
|
||||
"Fetch icon from Qt resources."
|
||||
|
|
Loading…
Reference in a new issue