Skip to content

Commit 307fcb2

Browse files
18202781743deepin-bot[bot]
authored andcommitted
fix: remove redundant mode property in NotifyItemContent
The mode property was removed from the IconItem component in NotifyItemContent.qml as it was redundant and not being used. The controlState is already being handled by the ColorSelector through the palette property. This cleanup improves code maintainability by removing unused properties. fix: 移除 NotifyItemContent 中冗余的 mode 属性 从 NotifyItemContent.qml 的 IconItem 组件中移除了 mode 属性,因为该属性 是冗余的且未被使用。controlState 已经通过 palette 属性由 ColorSelector 处理。这一清理工作通过移除未使用的属性提高了代码的可维护性。 pms: BUG-316705
1 parent 5b37e58 commit 307fcb2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

panels/notification/plugin/NotifyItemContent.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ NotifyItem {
130130
Layout.topMargin: 8
131131
Layout.leftMargin: 10
132132
palette: DTK.makeIconPalette(root.palette)
133-
mode: root.ColorSelector.controlState
134133
theme: root.ColorSelector.controlTheme
135134
}
136135

0 commit comments

Comments
 (0)