feat: complete quickshell redesign

This commit is contained in:
johannes committed 2026-09-21 16:16:35 +02:00
1 parent 1eb0820083
commit 0ff727898a
25 files changed
+1410 -401

No files matched your search

@@ -46,6 +46,7 @@ PanelWindow {
}
}
readonly property int titleBarHeight: 28
readonly property int headerHeight: 50
readonly property int footerHeight: 24
readonly property int emptyStateHeight: 40
@@ -94,7 +95,8 @@ PanelWindow {
// Sized appropriately for a 2560x1440 screen
width: 800
height: Math.min(600,
headerHeight + Theme.geometry.spacing
titleBarHeight + Theme.geometry.spacing
+ headerHeight + Theme.geometry.spacing
+ (appModel.count > 0 ? appList.contentHeight : emptyStateHeight) + Theme.geometry.spacing
+ footerHeight
+ Theme.geometry.padding * 2)
@@ -102,7 +104,7 @@ PanelWindow {
tint: Theme.colors.primary
glow: true
Behavior on scale { SpringAnimation { spring: Theme.motion.springSoft.spring; damping: Theme.motion.springSoft.damping } }
Behavior on scale { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } }
Behavior on opacity { NumberAnimation { duration: Theme.animation.durationFast } }
Behavior on height { NumberAnimation { duration: Theme.animation.durationFast; easing.type: Easing.OutCubic } }
@@ -118,11 +120,49 @@ PanelWindow {
anchors.margins: Theme.geometry.padding
spacing: Theme.geometry.spacing
Item {
width: parent.width
height: paletteWindow.titleBarHeight
Row {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.geometry.spacing / 2
Rectangle {
width: 10
height: 10
anchors.verticalCenter: parent.verticalCenter
color: Theme.colors.primary
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
}
Text {
text: "QUICKSHELL :: APP_ROFI_MODAL [WAYLAND]"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
Text {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
text: "[ESC] Close"
color: Theme.colors.textMuted
font.family: Theme.font.family
font.pixelSize: Theme.type.caption
}
}
TextField {
id: searchInput
width: parent.width
height: paletteWindow.headerHeight
placeholder: "Search apps..."
prefix: "❯"
onVisibleChanged: {
if (visible) focusInput();
@@ -255,6 +295,7 @@ PanelWindow {
model: ListModel { id: appModel }
delegate: ListRow {
id: appRow
width: appList.width
selected: ListView.isCurrentItem
accent: model.isLastUsed ? Theme.colors.secondary : Theme.colors.primary
@@ -277,7 +318,6 @@ PanelWindow {
Rectangle {
anchors.fill: parent
color: Theme.colors.primary
radius: 12
visible: parent.status === Image.Error || parent.status === Image.Null || model.iconName === ""
Text {
@@ -292,7 +332,7 @@ PanelWindow {
Text {
text: model.appName
color: Theme.colors.text
color: appRow.selected ? Theme.colors.textOnAccent : Theme.colors.text
font.family: Theme.font.family
font.pixelSize: Theme.type.label
anchors.left: appIcon.right
@@ -304,14 +344,42 @@ PanelWindow {
}
}
HintBar {
Item {
width: parent.width
height: paletteWindow.footerHeight
hints: [
{ key: "↑↓", label: "Navigate" },
{ key: "↵", label: "Launch" },
{ key: "Esc", label: "Close" }
]
HintBar {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
hints: [
{ key: "↑↓", label: "Navigate" },
{ key: "↵", label: "Launch" },
{ key: "Esc", label: "Close" }
]
}
Row {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.geometry.spacing / 2
Rectangle {
width: 8
height: 8
anchors.verticalCenter: parent.verticalCenter
color: Theme.colors.tertiary
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
}
Text {
text: "HYPR_IPC OK"
color: Theme.colors.text
font.family: Theme.font.family
font.bold: true
font.pixelSize: Theme.type.caption
}
}
}
}