From 15e7456fa45d89ca7500e552e23d6f850e493902 Mon Sep 17 00:00:00 2001 From: wjyrich Date: Wed, 21 Oct 2026 11:39:43 +0800 Subject: [PATCH] fix: set DWindow themeType for windowed launcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Add DWindow.themeType: D.DTK.themeType to windowedModeLauncher Window 2. Fix dark mode text color not inverting in windowed launcher mode 3. Fullscreen mode already had themeType set, windowed mode was missing Log: Windowed launcher now follows system dark/light theme Influence: 1. Test launcher text color in dark mode (windowed mode) 2. Test launcher text color in light mode (windowed mode) 3. Verify theme switches correctly when toggling system theme fix: 设置窗口模式启动器的 DWindow 主题类型 1. 在 windowedModeLauncher Window 中添加 DWindow.themeType: D.DTK.themeType 2. 修复深色模式下窗口模式启动器文字颜色不反色的问题 3. 全屏模式已设置 themeType,窗口模式之前遗漏 Log: 窗口模式启动器现在跟随系统深色/浅色主题 Influence: 1. 测试深色模式下启动器文字颜色(窗口模式) 2. 测试浅色模式下启动器文字颜色(窗口模式) 3. 验证切换系统主题时文字颜色正确切换 PMS: BUG-380337 --- shell-launcher-applet/package/launcheritem.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/shell-launcher-applet/package/launcheritem.qml b/shell-launcher-applet/package/launcheritem.qml index 882c5886..d851e95e 100644 --- a/shell-launcher-applet/package/launcheritem.qml +++ b/shell-launcher-applet/package/launcheritem.qml @@ -323,6 +323,7 @@ AppletItem { DLayerShellWindow.scope: "dde-shell/quick-launchpad" flags: Qt.Window | Qt.FramelessWindowHint + DWindow.themeType: D.DTK.themeType DWindow.enabled: true DWindow.windowRadius: D.DTK.platformTheme.windowRadius < 0 ? 12 : D.DTK.platformTheme.windowRadius DWindow.enableSystemResize: false