From d3422cfc23f06f3a001d93d7af9768f16fcecf20 Mon Sep 17 00:00:00 2001 From: Zzaphkiel <1278228162@qq.com> Date: Thu, 14 Sep 2023 11:48:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E6=89=98=E7=9B=98=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=82=AC=E5=81=9C=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/main_window.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/view/main_window.py b/app/view/main_window.py index f3a66466..6978d165 100644 --- a/app/view/main_window.py +++ b/app/view/main_window.py @@ -7,8 +7,9 @@ from PyQt5.QtCore import Qt, pyqtSignal, QSize from PyQt5.QtGui import QIcon, QImage, QCursor from PyQt5.QtWidgets import QApplication, QSystemTrayIcon -from qfluentwidgets import (NavigationItemPosition, InfoBar, InfoBarPosition, - FluentWindow, SplashScreen, MessageBox, SmoothScrollArea, Action) +from qfluentwidgets import (NavigationItemPosition, InfoBar, InfoBarPosition, Action, + FluentWindow, SplashScreen, MessageBox, SmoothScrollArea, + ToolTipFilter) from qfluentwidgets import FluentIcon as FIF import pyperclip @@ -188,6 +189,9 @@ def __initWindow(self): def __initSystemTray(self): self.trayIcon = QSystemTrayIcon(self) + self.trayIcon.setToolTip("Seraphine") + self.trayIcon.installEventFilter(ToolTipFilter(self.trayIcon)) + self.trayIcon.setIcon(QIcon("app/resource/images/logo.png")) careerAction = Action(Icon.PERSON, self.tr("Career"), self)