Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions qml/IconItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ Control {

Label {
property bool singleRow: font.pixelSize > (isWindowedMode ? Helper.windowed.doubleRowMaxFontSize : Helper.fullscreen.doubleRowMaxFontSize)
property bool isNewlyInstalled: model.lastLaunchedTime === 0 && model.installedTime !== 0
id: iconItemLabel
text: root.text
textFormat: Text.PlainText
text: isNewlyInstalled ? ("<font color='#6CA6FF' size='1'>●</font>&nbsp;&nbsp;" + root.text) : root.text
textFormat: isNewlyInstalled ? Text.RichText : Text.PlainText
width: parent.width
leftPadding: 2
rightPadding: 2
Expand Down
13 changes: 13 additions & 0 deletions qml/windowed/AppListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,19 @@ FocusScope {
theme: ApplicationHelper.DarkType
z: 1
}
Rectangle {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Duplicate indicator Rectangle block in multiple views

Move the duplicated 8×8 circle in AppListView and FreeSortListView into a shared QML component to avoid duplication and simplify updates.

width: 8
height: 8
radius: 4
color: "#6CA6FF"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Hardcoded color literal

Extract this repeated hex literal into a theme or shared palette to improve maintainability and consistency.

visible: model.lastLaunchedTime === 0 && model.installedTime !== 0
anchors {
right: parent.right
verticalCenter: parent.verticalCenter
rightMargin: 4
}
z: 1
}
font: DTK.fontManager.t8
ColorSelector.pressed: false
property Palette textColor: DStyle.Style.button.text
Expand Down
13 changes: 13 additions & 0 deletions qml/windowed/FreeSortListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,19 @@ Item {
leftMargin: 10
rightMargin: 10
}
Rectangle {
width: 8
height: 8
radius: 4
color: "#6CA6FF"
visible: model.lastLaunchedTime === 0 && model.installedTime !== 0
anchors {
right: parent.right
verticalCenter: parent.verticalCenter
rightMargin: 4
}
z: 1
}
font: DTK.fontManager.t8
ColorSelector.pressed: false
property Palette textColor: DStyle.Style.button.text
Expand Down