Skip to content

Commit c7f8387

Browse files
committed
fix: add palette to ToolTip component
Added palette property to ToolTip.qml to ensure consistent styling with DTK theme The palette was missing which could cause visual inconsistencies with the rest of the application Using D.DTK.palette ensures the tooltip follows the application's color scheme fix: 为 ToolTip 组件添加调色板属性 在 ToolTip.qml 中添加了 palette 属性以确保与 DTK 主题的样式一致 之前缺少此属性可能导致与应用程序其他部分的视觉不一致 使用 D.DTK.palette 确保工具提示遵循应用程序的色彩方案
1 parent eeb5f5f commit c7f8387

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

qt6/src/qml/ToolTip.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ T.ToolTip {
2121
leftPadding: DS.Style.toolTip.horizontalPadding
2222
rightPadding: leftPadding
2323
closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent | T.Popup.CloseOnReleaseOutsideParent
24+
palette: D.DTK.palette
2425

2526
contentItem: Text {
2627
horizontalAlignment: Text.AlignLeft

0 commit comments

Comments
 (0)