mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
feat: proper volume control center, still not done though
This commit is contained in:
parent
102fa853a8
commit
99eb6956bd
10 changed files with 140 additions and 256 deletions
|
|
@ -7,15 +7,18 @@ import ".."
|
|||
|
||||
Slider {
|
||||
id: slider
|
||||
implicitHeight: 8
|
||||
implicitHeight: 7
|
||||
|
||||
property var accentColor: ShellSettings.colors.active
|
||||
|
||||
background: Rectangle {
|
||||
id: sliderContainer
|
||||
width: slider.availableWidth
|
||||
height: slider.implicitHeight
|
||||
color: ShellSettings.colors.inactive
|
||||
radius: 4
|
||||
color: "transparent"
|
||||
border.color: ShellSettings.colors.active_translucent
|
||||
border.width: 1
|
||||
radius: 5
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
layer.enabled: true
|
||||
|
|
@ -39,7 +42,7 @@ Slider {
|
|||
id: fill
|
||||
width: slider.handle.width / 2 + slider.visualPosition * (sliderContainer.width - slider.handle.width)
|
||||
height: sliderContainer.height
|
||||
color: Qt.color(slider.accentColor ?? "purple").darker(1.2)
|
||||
color: ShellSettings.colors.active_translucent
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue