Skip to content

Commit fcd2774

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
feat: The newly installed app shows blue dot when it is not running.
as title PMS-BUG-289271
1 parent b840aab commit fcd2774

3 files changed

Lines changed: 29 additions & 2 deletions

File tree

qml/IconItemDelegate.qml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@ Control {
185185

186186
Label {
187187
property bool singleRow: font.pixelSize > (isWindowedMode ? Helper.windowed.doubleRowMaxFontSize : Helper.fullscreen.doubleRowMaxFontSize)
188+
property bool isNewlyInstalled: model.lastLaunchedTime === 0 && model.installedTime !== 0
188189
id: iconItemLabel
189-
text: root.text
190-
textFormat: Text.PlainText
190+
text: isNewlyInstalled ? ("<font color='#6CA6FF' size='1'>●</font>&nbsp;&nbsp;" + root.text) : root.text
191+
textFormat: isNewlyInstalled ? Text.RichText : Text.PlainText
191192
width: parent.width
192193
leftPadding: 2
193194
rightPadding: 2

qml/windowed/AppListView.qml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,19 @@ FocusScope {
244244
theme: ApplicationHelper.DarkType
245245
z: 1
246246
}
247+
Rectangle {
248+
width: 8
249+
height: 8
250+
radius: 4
251+
color: "#6CA6FF"
252+
visible: model.lastLaunchedTime === 0 && model.installedTime !== 0
253+
anchors {
254+
right: parent.right
255+
verticalCenter: parent.verticalCenter
256+
rightMargin: 4
257+
}
258+
z: 1
259+
}
247260
font: DTK.fontManager.t8
248261
ColorSelector.pressed: false
249262
property Palette textColor: DStyle.Style.button.text

qml/windowed/FreeSortListView.qml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,19 @@ Item {
259259
leftMargin: 10
260260
rightMargin: 10
261261
}
262+
Rectangle {
263+
width: 8
264+
height: 8
265+
radius: 4
266+
color: "#6CA6FF"
267+
visible: model.lastLaunchedTime === 0 && model.installedTime !== 0
268+
anchors {
269+
right: parent.right
270+
verticalCenter: parent.verticalCenter
271+
rightMargin: 4
272+
}
273+
z: 1
274+
}
262275
font: DTK.fontManager.t8
263276
ColorSelector.pressed: false
264277
property Palette textColor: DStyle.Style.button.text

0 commit comments

Comments
 (0)