macos icons

This commit is contained in:
dries.k
2022-09-24 15:49:11 +02:00
parent a8f2c9d08c
commit fb15c8bf80
11 changed files with 16 additions and 9 deletions

View File

@@ -57,3 +57,10 @@ def open_file(filename: str):
os.startfile(filename)
elif platform.system() == "Darwin":
subprocess.call(["open", filename])
def get_icon(name: str) -> str:
if platform.system() == "Darwin":
name += "-macos"
return get_abs_path(f"gotify_tray/gui/images/{name}.png")