summaryrefslogtreecommitdiff
path: root/popups/launcher/components/Clip.qml
diff options
context:
space:
mode:
Diffstat (limited to 'popups/launcher/components/Clip.qml')
-rw-r--r--popups/launcher/components/Clip.qml20
1 files changed, 15 insertions, 5 deletions
diff --git a/popups/launcher/components/Clip.qml b/popups/launcher/components/Clip.qml
index ebcc8c4..39712ef 100644
--- a/popups/launcher/components/Clip.qml
+++ b/popups/launcher/components/Clip.qml
@@ -75,6 +75,11 @@ IComponent {
syncSelectionState: function () {
Qt.callLater(() => {
+ if (!isSelectedPriority() && state.selected === listView.itemAtIndex(selectedIndex)) {
+ state.selected = null;
+ return;
+ }
+
if (!root.visible || selectedIndex < 0 || selectedIndex >= listView.count)
return;
@@ -116,7 +121,7 @@ IComponent {
clip: true
IconImage {
- scale: index === root.selectedIndex ? 1.01 : 0.9
+ scale: isSelectedPriority() && index === root.selectedIndex ? 1.01 : 0.9
source: modelData?.appIcon
implicitSize: parent.height
@@ -130,13 +135,18 @@ IComponent {
sourceComponent: modelData?.type === "image" ? img : text
readonly property Component text: IText {
text: modelData?.data || ""
- color: index === root.selectedIndex ? Colors.foreground1 : Colors.foreground2
+ color: isSelectedPriority() && index === selectedIndex ? Colors.foreground1 : Colors.foreground2
font.pixelSize: Launcher.widgetFontSize
+ font.bold: isSelectedPriority() && index === selectedIndex
}
readonly property Component img: Image {
source: modelData?.data || ""
height: Launcher.widgetFontSize * 1.3
fillMode: Image.PreserveAspectFit
+ scale: isSelectedPriority() && index === root.selectedIndex ? 1.01 : 0.9
+ Behavior on scale {
+ ISpringAnimation {}
+ }
}
}
Row {
@@ -144,18 +154,18 @@ IComponent {
property string sinceWhen: TimeDate.sinceWhen(modelData?.timestamp) || ""
IText {
text: modelData.type
- color: index === root.selectedIndex ? Colors.foreground2 : Colors.foreground3
+ color: isSelectedPriority() && index === root.selectedIndex ? Colors.foreground2 : Colors.foreground3
font.pixelSize: Launcher.widgetFontSize / 1.35
}
IText {
visible: parent.sinceWhen
text: 'ยท'
- color: index === root.selectedIndex ? Colors.foreground2 : Colors.foreground3
+ color: isSelectedPriority() && index === root.selectedIndex ? Colors.foreground2 : Colors.foreground3
font.pixelSize: Launcher.widgetFontSize / 1.35
}
IText {
text: parent.sinceWhen || ""
- color: index === root.selectedIndex ? Colors.foreground2 : Colors.foreground3
+ color: isSelectedPriority() && index === root.selectedIndex ? Colors.foreground2 : Colors.foreground3
font.pixelSize: Launcher.widgetFontSize / 1.35
}
}