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:
johannesandClaude Sonnet 5 committed 2026-09-21 16:16:35 +02:00
1 parent b8255db11a
commit e818b1c1ea
23 files changed
+1073 -577

No files matched your search

@@ -5,7 +5,7 @@ import "."
Rectangle {
id: button
// "primary" | "secondary" | "accent" | "destructive"
// "primary" | "secondary" | "accent" | "destructive" | "success" | "warning" | "info"
property string variant: "primary"
property string text: ""
signal clicked()
@@ -15,6 +15,9 @@ Rectangle {
readonly property bool filled: variant === "primary" || variant === "accent"
readonly property color tint: variant === "accent" ? Theme.colors.accent
: variant === "destructive" ? Theme.colors.alert
: variant === "success" ? Theme.colors.success
: variant === "warning" ? Theme.colors.warning
: variant === "info" ? Theme.colors.info
: Theme.colors.primary
implicitWidth: label.implicitWidth + Theme.geometry.padding * 2
@@ -31,13 +34,13 @@ Rectangle {
layer.effect: MultiEffect {
shadowEnabled: true
shadowColor: button.tint
shadowOpacity: 0.5
shadowBlur: 0.6
shadowOpacity: Theme.elevation.medium.opacity
shadowBlur: Theme.elevation.medium.blur
shadowVerticalOffset: 2
}
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
Behavior on scale { SpringAnimation { spring: 4; damping: 0.3 } }
Behavior on scale { SpringAnimation { spring: Theme.motion.springSnappy.spring; damping: Theme.motion.springSnappy.damping } }
scale: mouseArea.pressed ? 0.97 : 1.0
Text {