Add macOS icon
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import platform
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Callable
|
||||
@@ -66,7 +67,7 @@ class Launcher(QApplication, LauncherObject):
|
||||
move_window_to_center(self.main_window)
|
||||
|
||||
# Set icon
|
||||
if self.icon_path.exists():
|
||||
if self.icon_path.exists() and platform.system().lower() != "darwin":
|
||||
self.setWindowIcon(QIcon(self.icon_path.as_posix()))
|
||||
else:
|
||||
self.logger.error("No icon found.")
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# nuitka-project: --windows-icon-from-ico={MAIN_DIRECTORY}/resources/icons/icon.png
|
||||
# nuitka-project-if: {OS} == "Darwin":
|
||||
# nuitka-project: --macos-create-app-bundle
|
||||
# nuitka-project: --macos-app-icon={MAIN_DIRECTORY}/resources/icons/apple-app-icon.icon
|
||||
# nuitka-project: --macos-app-icon={MAIN_DIRECTORY}/resources/icons/apple-app-icon-default.png
|
||||
# nuitka-project: --macos-app-name="TapLauncher"
|
||||
|
||||
import os
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 7.8 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 258 KiB |
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"fill" : {
|
||||
"automatic-gradient" : "srgb:0.41535,0.63458,1.00000,1.00000"
|
||||
},
|
||||
"groups" : [
|
||||
{
|
||||
"layers" : [
|
||||
{
|
||||
"image-name" : "icon.png",
|
||||
"name" : "icon",
|
||||
"position" : {
|
||||
"scale" : 1,
|
||||
"translation-in-points" : [
|
||||
0,
|
||||
-15.75
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"shadow" : {
|
||||
"kind" : "neutral",
|
||||
"opacity" : 0.5
|
||||
},
|
||||
"translucency" : {
|
||||
"enabled" : true,
|
||||
"value" : 0.5
|
||||
}
|
||||
}
|
||||
],
|
||||
"supported-platforms" : {
|
||||
"circles" : [
|
||||
"watchOS"
|
||||
],
|
||||
"squares" : "shared"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user