mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
Initial commit
This commit is contained in:
commit
05cd51b54e
148 changed files with 10112 additions and 0 deletions
64
.stversions/bar/control/ControlSlider~20250307-175400.qml
Normal file
64
.stversions/bar/control/ControlSlider~20250307-175400.qml
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
import QtQuick
|
||||
import Qt5Compat.GraphicalEffects
|
||||
import QtQuick.Controls
|
||||
import Quickshell.Widgets
|
||||
import "../.."
|
||||
|
||||
Slider {
|
||||
id: slider;
|
||||
from: 0;
|
||||
to: 100;
|
||||
value: 50;
|
||||
|
||||
background: Rectangle {
|
||||
id: sliderContainer;
|
||||
width: slider.availableWidth;
|
||||
height: slider.availableHeight;
|
||||
color: "#e0e0e0";
|
||||
radius: 10;
|
||||
|
||||
layer.enabled: true
|
||||
layer.effect: OpacityMask {
|
||||
source: Rectangle {
|
||||
width: sliderContainer.width;
|
||||
height: sliderContainer.height;
|
||||
radius: sliderContainer.radius;
|
||||
color: "white";
|
||||
}
|
||||
|
||||
maskSource: Rectangle {
|
||||
width: sliderContainer.width;
|
||||
height: sliderContainer.height;
|
||||
radius: sliderContainer.radius;
|
||||
color: "black";
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: handle;
|
||||
width: sliderContainer.width * (slider.value / slider.to);
|
||||
height: sliderContainer.height;
|
||||
color: ShellGlobals.colors.highlight;
|
||||
|
||||
Behavior on width {
|
||||
NumberAnimation {
|
||||
duration: 100;
|
||||
easing.type: Easing.OutQuad;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//IconImage {
|
||||
// implicitSize: 20;
|
||||
// source: "root:resources/control/sleep.svg"
|
||||
//
|
||||
// anchors {
|
||||
// verticalCenter: parent.verticalCenter;
|
||||
// left: parent.left;
|
||||
// leftMargin: 15;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
handle: Item { }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue