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
42
.stversions/widgets/IconButton~20250307-175400.qml
Normal file
42
.stversions/widgets/IconButton~20250307-175400.qml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
import Quickshell.Widgets
|
||||
import ".."
|
||||
|
||||
Item {
|
||||
property string source;
|
||||
property var implicitSize;
|
||||
property var padding: 0;
|
||||
property var radius: 5;
|
||||
signal clicked();
|
||||
|
||||
id: root;
|
||||
implicitWidth: implicitSize;
|
||||
implicitHeight: implicitSize;
|
||||
|
||||
Rectangle {
|
||||
id: iconBackground;
|
||||
color: ShellGlobals.colors.innerHighlight;
|
||||
border.color: ShellGlobals.colors.highlight;
|
||||
radius: root.radius;
|
||||
visible: iconButton.containsMouse;
|
||||
anchors.fill: parent;
|
||||
}
|
||||
|
||||
IconImage {
|
||||
id: iconImage;
|
||||
source: root.source;
|
||||
|
||||
anchors {
|
||||
fill: parent;
|
||||
margins: padding;
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: iconButton;
|
||||
hoverEnabled: true;
|
||||
anchors.fill: parent;
|
||||
onPressed: root.clicked();
|
||||
}
|
||||
}
|
||||
40
.stversions/widgets/IconButton~20250509-203449.qml
Normal file
40
.stversions/widgets/IconButton~20250509-203449.qml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import QtQuick
|
||||
import Quickshell.Widgets
|
||||
import ".."
|
||||
|
||||
Item {
|
||||
id: root
|
||||
property string source
|
||||
property var implicitSize: 24 // Default size if not specified
|
||||
property var padding: 0
|
||||
property var radius: 5
|
||||
signal clicked
|
||||
|
||||
implicitWidth: implicitSize
|
||||
implicitHeight: implicitSize
|
||||
|
||||
Rectangle {
|
||||
id: iconBackground
|
||||
color: ShellGlobals.colors.accent
|
||||
radius: root.radius
|
||||
visible: iconButton.containsMouse
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
IconImage {
|
||||
id: iconImage
|
||||
source: root.source
|
||||
|
||||
anchors {
|
||||
fill: parent
|
||||
margins: root.padding
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: iconButton
|
||||
hoverEnabled: true
|
||||
anchors.fill: parent
|
||||
onPressed: root.clicked()
|
||||
}
|
||||
}
|
||||
60
.stversions/widgets/RoundSlider~20250509-203448.qml
Normal file
60
.stversions/widgets/RoundSlider~20250509-203448.qml
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Qt5Compat.GraphicalEffects
|
||||
import ".."
|
||||
|
||||
Slider {
|
||||
id: slider
|
||||
|
||||
background: Rectangle {
|
||||
id: sliderContainer
|
||||
width: slider.availableWidth
|
||||
height: slider.implicitHeight
|
||||
color: "white"
|
||||
radius: 4
|
||||
|
||||
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.accent
|
||||
}
|
||||
}
|
||||
|
||||
handle: Rectangle {
|
||||
x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
|
||||
y: slider.topPadding + slider.availableHeight / 2 - height / 2
|
||||
width: 16
|
||||
height: 16
|
||||
radius: width / 2
|
||||
color: slider.pressed ? ShellGlobals.colors.accent.darker(1.2) : ShellGlobals.colors.accent
|
||||
|
||||
layer.enabled: true
|
||||
layer.effect: DropShadow {
|
||||
horizontalOffset: 0
|
||||
verticalOffset: 1
|
||||
radius: 4.0
|
||||
samples: 9
|
||||
color: "#30000000"
|
||||
}
|
||||
}
|
||||
|
||||
//handle: Item {}
|
||||
}
|
||||
9
.stversions/widgets/Separator~20250509-203449.qml
Normal file
9
.stversions/widgets/Separator~20250509-203449.qml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import QtQuick
|
||||
import ".."
|
||||
|
||||
Rectangle {
|
||||
color: ShellGlobals.colors.accent
|
||||
radius: 5
|
||||
width: 7.5
|
||||
height: 7.5
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue