Skip to content

Commit bd87e0c

Browse files
committed
feat: The newly installed app shows blue dot when it is not running.
as title PMS-BUG-289271
1 parent 6339267 commit bd87e0c

3 files changed

Lines changed: 28 additions & 2 deletions

File tree

qml/IconItemDelegate.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ Control {
186186
Label {
187187
property bool singleRow: font.pixelSize > (isWindowedMode ? Helper.windowed.doubleRowMaxFontSize : Helper.fullscreen.doubleRowMaxFontSize)
188188
id: iconItemLabel
189-
text: root.text
190-
textFormat: Text.PlainText
189+
text: (model.lastLaunchedTime === 0 && model.installedTime !== 0 ? "<font color='#6CA6FF' size='1'>?</font>&nbsp;&nbsp;" : "") + Qt.htmlEscape(root.text)
190+
textFormat: Text.RichText
191191
width: parent.width
192192
leftPadding: 2
193193
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)