Skip to content

Commit fdc8adb

Browse files
sync: from linuxdeepin/dtkdeclarative
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#511
1 parent 896ea19 commit fdc8adb

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

qt6/src/qml/FlowStyle.qml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,28 @@ QtObject {
103103

104104
property D.Palette background1: D.Palette {
105105
normal {
106-
common: ("#f7f7f7")
106+
common: Qt.rgba(0, 0, 0, 0.1)
107107
crystal: Qt.rgba(0, 0, 0, 0.1)
108108
}
109109
normalDark {
110-
common: Qt.rgba(1, 1, 1, 0.1)
111-
crystal: Qt.rgba(1, 1, 1, 0.1)
110+
common: Qt.rgba(1, 1, 1, 0.08)
111+
crystal: Qt.rgba(1, 1, 1, 0.08)
112112
}
113113
hovered {
114-
common: ("#e1e1e1")
115-
crystal: Qt.rgba(16.0 / 255, 16.0 / 255, 16.0 / 255, 0.2)
114+
common: Qt.rgba(0, 0, 0, 0.2)
115+
crystal: Qt.rgba(0, 0, 0, 0.2)
116+
}
117+
hoveredDark {
118+
common: Qt.rgba(1, 1, 1, 0.2)
119+
crystal: Qt.rgba(1, 1, 1, 0.2)
116120
}
117121
pressed {
118-
common: ("#bcc4d0")
119-
crystal: Qt.rgba(16.0 / 255, 16.0 / 255, 16.0 / 255, 0.15)
122+
common: Qt.rgba(0, 0, 0, 0.15)
123+
crystal: Qt.rgba(0, 0, 0, 0.15)
124+
}
125+
pressedDark {
126+
common: Qt.rgba(1, 1, 1, 0.05)
127+
crystal: Qt.rgba(1, 1, 1, 0.05)
120128
}
121129
}
122130

@@ -207,21 +215,23 @@ QtObject {
207215
}
208216
normalDark {
209217
common: D.DTK.makeColor(D.Color.Highlight).saturation(+10).lightness(+10)
210-
crystal: Qt.rgba(0, 0, 0, 0.1)
218+
crystal: Qt.rgba(1, 1, 1, 0.08)
211219
}
212220
hovered {
213221
common: D.DTK.makeColor(D.Color.Highlight).lightness(+10).saturation(+20).lightness(+10)
214-
crystal: Qt.rgba(16.0 / 255, 16.0 / 255, 16.0 / 255, 0.2)
222+
crystal: Qt.rgba(0, 0, 0, 0.2)
215223
}
216224
hoveredDark {
217225
common: D.DTK.makeColor(D.Color.Highlight).lightness(+10).saturation(+30).lightness(+10)
226+
crystal: Qt.rgba(1, 1, 1, 0.2)
218227
}
219228
pressed {
220229
common: D.DTK.makeColor(D.Color.Highlight).lightness(-10).saturation(+8).lightness(-8)
221230
crystal: Qt.rgba(16.0 / 255, 16.0 / 255, 16.0 / 255, 0.15)
222231
}
223232
pressedDark {
224233
common: D.DTK.makeColor(D.Color.Highlight).saturation(+10).lightness(+2)
234+
crystal: Qt.rgba(1, 1, 1, 0.05)
225235
}
226236
disabled {
227237
common: D.DTK.makeColor(D.Color.Highlight).saturation(+22).lightness(+14)

0 commit comments

Comments
 (0)