Skip to content

Commit e7bdfab

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
feat: add dark mode support for fullscreen context menu
1. Added palette property to context menu in AppItemMenu.qml 2. The menu now adapts to system dark/light theme in fullscreen mode 3. Uses DTK.palette for consistent theming with the desktop environment 4. Ensures better visual integration with system appearance settings feat: 为全屏上下文菜单添加深色模式支持 1. 在AppItemMenu.qml中为上下文菜单添加了palette属性 2. 菜单现在可以在全屏模式下适配系统的深色/浅色主题 3. 使用DTK.palette实现与桌面环境一致的主题效果 4. 确保与系统外观设置更好的视觉集成 Pms: BUG-326387
1 parent a182eb8 commit e7bdfab

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

qml/AppItemMenu.qml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Loader {
3636
rightMargin: isFullscreen && DesktopIntegration.dockPosition === Qt.RightArrow ? dockSpacing : 0
3737
modal: true
3838

39+
// 在全屏模式下,右键菜单适配系统深浅模式
40+
// 通过设置palette来实现主题适配
41+
palette: DTK.palette
42+
3943
MenuItem {
4044
text: qsTr("Open")
4145
enabled: !root.desktopId.startsWith("internal/folders/")

0 commit comments

Comments
 (0)