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

@@ -106,8 +106,9 @@ PanelWindow {
delegate: Rectangle {
width: 24
height: 24
radius: Theme.geometry.radiusTiny
color: modelData.active ? Theme.colors.primary : Theme.colors.surfaceHover
border.width: Theme.geometry.borderWidth
border.color: Theme.colors.crust
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
@@ -235,6 +236,17 @@ PanelWindow {
: "No battery"
visible: battery.isPresent
}
TrayIcon {
glyph: "⚙" // gear (U+2699)
active: barWindow.rootState.quickSettingsOpen
tint: Theme.colors.primary
tooltip: "Quick Settings (SUPER+A)"
onClicked: {
barWindow.rootState.quickSettingsOpen = !barWindow.rootState.quickSettingsOpen;
if (barWindow.rootState.quickSettingsOpen) barWindow.rootState.closeOtherOverlays("quickSettings");
}
}
}
property QtObject battery: UPower.displayDevice
@@ -460,16 +472,16 @@ PanelWindow {
property string tooltip: ""
property bool active: false
property color tint: Theme.colors.primary
signal clicked()
width: 24
height: 24
Rectangle {
anchors.fill: parent
radius: Theme.geometry.radiusTiny
color: hoverArea.containsMouse
? Theme.colors.surfaceHover
: (trayIcon.active ? Qt.alpha(trayIcon.tint, 0.15) : "transparent")
color: hoverArea.containsMouse ? Theme.colors.surfaceHover : "transparent"
border.width: trayIcon.active ? Theme.geometry.borderWidth : 0
border.color: trayIcon.tint
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
@@ -488,6 +500,7 @@ PanelWindow {
id: hoverArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onEntered: {
if (trayIcon.tooltip.length > 0) {
// Anchor on the icon's horizontal center; the tooltip
@@ -497,6 +510,7 @@ PanelWindow {
}
}
onExited: barWindow.hideTooltip()
onClicked: trayIcon.clicked()
}
}
}