macos icons
@@ -18,7 +18,7 @@ from gotify_tray.tasks import (
|
||||
GetMessagesTask,
|
||||
ServerConnectionWatchdogTask,
|
||||
)
|
||||
from gotify_tray.utils import get_abs_path, verify_server
|
||||
from gotify_tray.utils import get_icon, verify_server
|
||||
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||
|
||||
from ..__version__ import __title__
|
||||
@@ -410,9 +410,7 @@ def start_gui():
|
||||
app = MainApplication(sys.argv)
|
||||
app.setApplicationName(title)
|
||||
app.setQuitOnLastWindowClosed(False)
|
||||
app.setWindowIcon(
|
||||
QtGui.QIcon(get_abs_path("gotify_tray/gui/images/gotify-small.png"))
|
||||
)
|
||||
app.setWindowIcon(QtGui.QIcon(get_icon("gotify-small")))
|
||||
app.setStyle("fusion")
|
||||
|
||||
init_logger(logger)
|
||||
|
||||
BIN
gotify_tray/gui/images/gotify-small-macos.png
Normal file
|
After Width: | Height: | Size: 339 KiB |
BIN
gotify_tray/gui/images/logo-macos.ico
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
gotify_tray/gui/images/logo.ico
Normal file
|
After Width: | Height: | Size: 132 KiB |
BIN
gotify_tray/gui/images/tray-error-macos.png
Normal file
|
After Width: | Height: | Size: 332 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
BIN
gotify_tray/gui/images/tray-macos.png
Normal file
|
After Width: | Height: | Size: 334 KiB |
BIN
gotify_tray/gui/images/tray.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
@@ -2,7 +2,7 @@ import logging
|
||||
|
||||
from PyQt6 import QtGui, QtWidgets
|
||||
from gotify_tray.__version__ import __title__
|
||||
from gotify_tray.utils import get_abs_path
|
||||
from gotify_tray.utils import get_icon
|
||||
|
||||
|
||||
logger = logging.getLogger("gotify-tray")
|
||||
@@ -44,7 +44,7 @@ class Tray(QtWidgets.QSystemTrayIcon):
|
||||
self.setContextMenu(menu)
|
||||
|
||||
def set_icon_ok(self):
|
||||
self.setIcon(QtGui.QIcon(get_abs_path("gotify_tray/gui/images/gotify-small.png")))
|
||||
self.setIcon(QtGui.QIcon(get_icon("tray")))
|
||||
|
||||
def set_icon_error(self):
|
||||
self.setIcon(QtGui.QIcon(get_abs_path("gotify_tray/gui/images/gotify-small-error.png")))
|
||||
self.setIcon(QtGui.QIcon(get_icon("tray-error")))
|
||||
|
||||