From 2028295df5882c450820d8f7d1f9463d28a7e8f8 Mon Sep 17 00:00:00 2001 From: yuanxing Date: Thu, 25 Nov 2021 15:44:45 +0800 Subject: [PATCH] fix(theme):set metacity theme when user change theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 当用户切换主题时设置窗口主题 --- src/pages/theme/themes.cpp | 2 ++ translations/kiran-cpanel-appearance.zh_CN.ts | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/theme/themes.cpp b/src/pages/theme/themes.cpp index d737cfe..9c6e8f1 100644 --- a/src/pages/theme/themes.cpp +++ b/src/pages/theme/themes.cpp @@ -316,6 +316,8 @@ void Themes::createThemeWidget() return; if (!AppearanceGlobalInfo::instance()->setTheme(APPEARANCE_THEME_TYPE_GTK, theme)) return; + if (!AppearanceGlobalInfo::instance()->setTheme(APPEARANCE_THEME_TYPE_METACITY, theme)) + return; KLOG_INFO() << "set themes successful:" << theme; }); } diff --git a/translations/kiran-cpanel-appearance.zh_CN.ts b/translations/kiran-cpanel-appearance.zh_CN.ts index 1dd67ca..24a99f0 100644 --- a/translations/kiran-cpanel-appearance.zh_CN.ts +++ b/translations/kiran-cpanel-appearance.zh_CN.ts @@ -73,9 +73,8 @@ 等宽字体设置 - None - 暂无 + 暂无 @@ -173,14 +172,14 @@ QObject - + Failed 失败 - + Set font failed! 设置字体失败! -- 2.27.0