Skip to content

Commit faddfed

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
style: update new app indicator styling
1. Changed new app indicator color from #6CA6FF to #669DFF for better consistency 2. Added subtle text shadow to the indicator dot in IconItemDelegate 3. Increased indicator size from 8x8 to 10x10 with 5px radius for better visibility 4. Added border and different colors for light/dark modes 5. Adjusted margins and positioning of indicators style: 更新新应用指示器样式 1. 将新应用指示器颜色从 #6CA6FF 改为 #669DFF 以提高一致性 2. 在 IconItemDelegate 中为指示点添加微妙的文字阴影 3. 将指示器大小从 8x8 增加到 10x10,半径5px以提高可见性 4. 为浅色/深色模式添加边框和不同颜色 5. 调整指示器的边距和位置 Pms: BUG-321763 BUG-320021
1 parent 49fe75e commit faddfed

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

qml/IconItemDelegate.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Control {
187187
property bool singleRow: font.pixelSize > (isWindowedMode ? Helper.windowed.doubleRowMaxFontSize : Helper.fullscreen.doubleRowMaxFontSize)
188188
property bool isNewlyInstalled: model.lastLaunchedTime === 0 && model.installedTime !== 0
189189
id: iconItemLabel
190-
text: isNewlyInstalled ? ("<font color='#6CA6FF' size='1'>●</font>&nbsp;&nbsp;" + root.text) : root.text
190+
text: isNewlyInstalled ? ("<font color='#669DFF' size='1' style='text-shadow: 0 0 1px rgba(255,255,255,0.1)'>●</font>&nbsp;&nbsp;" + root.text) : root.text
191191
textFormat: isNewlyInstalled ? Text.RichText : Text.PlainText
192192
width: parent.width
193193
leftPadding: 2

qml/windowed/AppListView.qml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,18 @@ FocusScope {
246246
z: 1
247247
}
248248
Rectangle {
249-
width: 8
250-
height: 8
251-
radius: 4
252-
color: "#6CA6FF"
249+
width: 10
250+
height: 10
251+
radius: 5
252+
color: ApplicationHelper.DarkType === ApplicationHelper.LightType ? "#1C0560" : "#669DFF"
253+
border.width: 1
254+
border.color: ApplicationHelper.DarkType === ApplicationHelper.LightType ?
255+
Qt.rgba(0, 0, 0, 0.1) : Qt.rgba(1, 1, 1, 0.1)
253256
visible: model.lastLaunchedTime === 0 && model.installedTime !== 0
254257
anchors {
255258
right: parent.right
256259
verticalCenter: parent.verticalCenter
257-
rightMargin: 4
260+
leftMargin: 6
258261
}
259262
z: 1
260263
}

qml/windowed/FreeSortListView.qml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,18 @@ Item {
266266
rightMargin: 10
267267
}
268268
Rectangle {
269-
width: 8
270-
height: 8
271-
radius: 4
272-
color: "#6CA6FF"
269+
width: 10
270+
height: 10
271+
radius: 5
272+
color: ApplicationHelper.DarkType === ApplicationHelper.LightType ? "#1C0560" : "#669DFF"
273+
border.width: 1
274+
border.color: ApplicationHelper.DarkType === ApplicationHelper.LightType ?
275+
Qt.rgba(0, 0, 0, 0.1) : Qt.rgba(1, 1, 1, 0.1)
273276
visible: model.lastLaunchedTime === 0 && model.installedTime !== 0
274277
anchors {
275278
right: parent.right
276279
verticalCenter: parent.verticalCenter
277-
rightMargin: 4
280+
leftMargin: 6
278281
}
279282
z: 1
280283
}

0 commit comments

Comments
 (0)