feat: wallpaper-driven theming + native wallpaper picker

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ZYoSQwwYWhJHLX6VBCGnF
This commit is contained in:
johannesandClaude Sonnet 5 committed 2026-08-29 14:53:04 +02:00
1 parent fef7cacc9e
commit 44cf203da4
22 files changed
+594 -285

No files matched your search

@@ -1,4 +1,5 @@
import QtQuick
import QtQuick.Effects
import "."
Rectangle {
@@ -9,6 +10,8 @@ Rectangle {
property string text: ""
signal clicked()
// primary and accent are the same color (Theme.colors.primary === .accent);
// kept as separate variant names for call-site clarity.
readonly property bool filled: variant === "primary" || variant === "accent"
readonly property color tint: variant === "accent" ? Theme.colors.accent
: variant === "destructive" ? Theme.colors.alert
@@ -17,13 +20,22 @@ Rectangle {
implicitWidth: label.implicitWidth + Theme.geometry.padding * 2
implicitHeight: label.implicitHeight + Theme.geometry.padding
radius: Theme.geometry.radius
radius: Theme.geometry.radiusSmall
color: filled
? (mouseArea.pressed ? Qt.darker(tint, 1.1) : tint)
: (mouseArea.containsMouse ? Qt.alpha(tint, 0.22) : Qt.alpha(tint, 0.15))
border.width: filled ? 0 : 1
border.color: Qt.alpha(tint, 0.3)
layer.enabled: filled
layer.effect: MultiEffect {
shadowEnabled: true
shadowColor: button.tint
shadowOpacity: 0.5
shadowBlur: 0.6
shadowVerticalOffset: 2
}
Behavior on color { ColorAnimation { duration: Theme.animation.durationFast } }
Behavior on scale { SpringAnimation { spring: 4; damping: 0.3 } }
scale: mouseArea.pressed ? 0.97 : 1.0
@@ -11,7 +11,7 @@ Rectangle {
visible: false
z: 1000
width: 180
radius: 10
radius: Theme.geometry.radiusMedium
color: Theme.colors.background
border.color: Theme.colors.border
border.width: 1
@@ -43,7 +43,7 @@ Rectangle {
delegate: Rectangle {
width: column.width
height: modelData.separator ? 1 : 28
radius: modelData.separator ? 0 : 6
radius: modelData.separator ? 0 : Theme.geometry.radiusTiny
color: modelData.separator
? Theme.colors.border
: (itemMouse.containsMouse ? Theme.colors.surfaceHover : "transparent")
@@ -4,27 +4,33 @@ import QtQuick
QtObject {
id: theme
// Regenerated by wallpaper-theme.nu on every wallpaper change - don't
// hand-edit between these markers, it gets overwritten.
// GENERATED:COLORS:BEGIN
property QtObject colors: QtObject {
property color background: "#e611111b" // Opaque dark for better readability
property color surface: "#e6181825"
property color background: "#e611111b"
property color surface: "#cc181825"
property color surfaceHover: "#f2313244"
property color overlay: "#6011111b" // Translucent dark for full screen dim
property color primary: "#89b4fa"
property color overlay: "#6011111b"
property color primary: "#74c7ec"
property color secondary: "#b4befe"
property color accent: "#cba6f7"
property color accent: "#74c7ec"
property color alert: "#f38ba8"
property color success: "#a6e3a1"
property color warning: "#f9e2af"
property color text: "#cdd6f4"
property color textMuted: "#a6adc8"
property color border: "#30ffffff"
property color border: "#1a74c7ec"
}
// GENERATED:COLORS:END
property QtObject geometry: QtObject {
property int radius: 16
property int radiusTiny: 6
property int radiusSmall: 8
property int radiusMedium: 10
property int pillRadius: 100
property int padding: 12
property int spacing: 8
@@ -37,6 +43,6 @@ QtObject {
}
property QtObject font: QtObject {
property string family: "Inter"
property string family: "JetBrainsMono Nerd Font"
}
}