Redesign Quickshell control center

This commit is contained in:
Mikhail Kilin
2026-07-26 16:51:25 +03:00
parent 6cb1d53a70
commit 4b3109a2dd
17 changed files with 1390 additions and 904 deletions

View File

@@ -0,0 +1,36 @@
import QtQuick
import QtQuick.Controls
Slider {
id: root
property var theme
implicitHeight: 24
background: Rectangle {
x: root.leftPadding
y: root.topPadding + root.availableHeight / 2 - height / 2
width: root.availableWidth
height: 4
radius: 2
color: root.theme ? root.theme.surfaceRaised : "#24243a"
Rectangle {
width: root.visualPosition * parent.width
height: parent.height
radius: 2
color: root.theme ? root.theme.primary : "#89b4fa"
}
}
handle: Rectangle {
x: root.leftPadding + root.visualPosition * (root.availableWidth - width)
y: root.topPadding + root.availableHeight / 2 - height / 2
width: 14
height: 14
radius: 7
color: root.theme ? root.theme.primary : "#89b4fa"
border.color: root.theme ? root.theme.background : "#11111b"
border.width: 2
}
}