feat: 使用dbus支持kde的暗色模式

This commit is contained in:
2023-10-24 19:25:32 +08:00
parent c00d62c010
commit 8d4874d553
5 changed files with 153 additions and 48 deletions

View File

@@ -30,6 +30,8 @@ public:
void openUrl(const QString &url);
bool isCloseWindowAnimation();
void refreshTheme(bool isDarkMode);
protected:
void closeEvent(QCloseEvent *event) override;
@@ -48,6 +50,7 @@ private:
public slots:
void notify(QObject *receiver, QEvent *event);
void onThemeChanged(bool isDark);
private slots:
//接受来自dbus的url