feat: complete quickshell redesign
This commit is contained in:
1 parent
f5d827f3b9
commit
3631662afc
25 files changed
+1410
-401
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import QtQuick
|
||||
import "."
|
||||
|
||||
// Selectable list row: a colored left accent bar plus a tinted background
|
||||
// when current, shared by CommandPalette and ClipboardManager so both
|
||||
// Selectable list row: solid accent fill + crust text when selected (not a
|
||||
// soft tint), shared by CommandPalette and ClipboardManager so both
|
||||
// launchers read as the same design language.
|
||||
Rectangle {
|
||||
id: row
|
||||
@@ -16,25 +16,20 @@ Rectangle {
|
||||
signal entered()
|
||||
|
||||
height: 40
|
||||
radius: Theme.geometry.radiusTiny
|
||||
color: selected ? Qt.alpha(accent, 0.16) : "transparent"
|
||||
color: selected ? accent : (hovered ? Theme.colors.surfaceHover : "transparent")
|
||||
border.width: selected ? Theme.geometry.borderWidth : 0
|
||||
border.color: Theme.colors.crust
|
||||
|
||||
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
|
||||
|
||||
Rectangle {
|
||||
width: 3
|
||||
height: parent.height - 10
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
width: 4
|
||||
height: parent.height
|
||||
anchors.left: parent.left
|
||||
radius: 2
|
||||
color: row.accent
|
||||
opacity: row.selected ? 1 : 0
|
||||
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationFast } }
|
||||
color: Theme.colors.crust
|
||||
visible: row.selected
|
||||
}
|
||||
|
||||
// Declared before contentItem so any interactive child placed in
|
||||
// `content` (e.g. a hover delete button) stacks on top and can
|
||||
// intercept clicks before they fall through to this row-wide handler.
|
||||
MouseArea {
|
||||
id: rowMouse
|
||||
anchors.fill: parent
|
||||
@@ -47,7 +42,9 @@ Rectangle {
|
||||
Item {
|
||||
id: contentItem
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: Theme.geometry.padding + 4
|
||||
anchors.leftMargin: Theme.geometry.padding + ((row.selected || row.hovered) ? 8 : 4)
|
||||
anchors.rightMargin: Theme.geometry.padding
|
||||
|
||||
Behavior on anchors.leftMargin { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.Linear } }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user