feat: colorful multi-accent quickshell design system
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A8TNMgnEa7Kia5Wcz2kyDx
This commit is contained in:
1 parent
5a004b8be5
commit
215d8b7d8e
23 files changed
+1073
-577
No files matched your search
@@ -55,7 +55,7 @@ PanelWindow {
|
||||
height: buttonRow.height
|
||||
anchors.centerIn: parent
|
||||
|
||||
Behavior on scale { SpringAnimation { spring: 3; damping: 0.2 } }
|
||||
Behavior on scale { SpringAnimation { spring: Theme.motion.springSoft.spring; damping: Theme.motion.springSoft.damping } }
|
||||
|
||||
Row {
|
||||
id: buttonRow
|
||||
@@ -63,7 +63,7 @@ PanelWindow {
|
||||
|
||||
// Lock
|
||||
LogoutButton {
|
||||
icon: "🔒"
|
||||
icon: ""
|
||||
label: "Lock"
|
||||
isSelected: logoutWindow.currentIndex === 0
|
||||
onClicked: executeAction(logoutWindow.actions[0].cmd)
|
||||
@@ -72,7 +72,7 @@ PanelWindow {
|
||||
|
||||
// Suspend
|
||||
LogoutButton {
|
||||
icon: "🌙"
|
||||
icon: ""
|
||||
label: "Suspend"
|
||||
isSelected: logoutWindow.currentIndex === 1
|
||||
onClicked: executeAction(logoutWindow.actions[1].cmd)
|
||||
@@ -81,7 +81,7 @@ PanelWindow {
|
||||
|
||||
// Logout
|
||||
LogoutButton {
|
||||
icon: "🚪"
|
||||
icon: ""
|
||||
label: "Logout"
|
||||
isSelected: logoutWindow.currentIndex === 2
|
||||
onClicked: executeAction(logoutWindow.actions[2].cmd)
|
||||
@@ -90,7 +90,7 @@ PanelWindow {
|
||||
|
||||
// Reboot
|
||||
LogoutButton {
|
||||
icon: "🔄"
|
||||
icon: ""
|
||||
label: "Reboot"
|
||||
isSelected: logoutWindow.currentIndex === 3
|
||||
onClicked: executeAction(logoutWindow.actions[3].cmd)
|
||||
@@ -99,7 +99,7 @@ PanelWindow {
|
||||
|
||||
// Poweroff
|
||||
LogoutButton {
|
||||
icon: "⏻"
|
||||
icon: ""
|
||||
label: "Shutdown"
|
||||
isDestructive: true
|
||||
isSelected: logoutWindow.currentIndex === 4
|
||||
@@ -161,7 +161,7 @@ PanelWindow {
|
||||
}
|
||||
|
||||
// Inline component for the big buttons
|
||||
component LogoutButton: Rectangle {
|
||||
component LogoutButton: Surface {
|
||||
property string icon: ""
|
||||
property string label: ""
|
||||
property bool isDestructive: false
|
||||
@@ -171,12 +171,12 @@ PanelWindow {
|
||||
|
||||
width: 120
|
||||
height: 120
|
||||
radius: Theme.geometry.radiusMedium
|
||||
color: Theme.colors.surface
|
||||
border.color: isSelected ? (isDestructive ? Theme.colors.alert : Theme.colors.primary) : Theme.colors.border
|
||||
tint: isSelected ? (isDestructive ? Theme.colors.alert : Theme.colors.primary) : Theme.colors.border
|
||||
border.width: isSelected ? 2 : 1
|
||||
|
||||
Behavior on scale { SpringAnimation { spring: 4; damping: 0.3 } }
|
||||
glow: isSelected
|
||||
|
||||
Behavior on scale { SpringAnimation { spring: Theme.motion.springSnappy.spring; damping: Theme.motion.springSnappy.damping } }
|
||||
scale: isSelected ? 1.05 : 1.0
|
||||
|
||||
Column {
|
||||
@@ -185,9 +185,10 @@ PanelWindow {
|
||||
|
||||
Text {
|
||||
text: parent.parent.icon
|
||||
font.family: Theme.font.family
|
||||
font.pixelSize: 36
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
color: Theme.colors.text
|
||||
color: parent.parent.isSelected ? parent.parent.tint : Theme.colors.text
|
||||
}
|
||||
|
||||
Text {
|
||||
|
||||
Reference in new issue
Block a user