summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankNumberStepper.qml
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
committerNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
commita2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5 (patch)
tree1a8769217f84bfe9d6216fafaadaf8cdd876d457 /raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankNumberStepper.qml
parent34b9c34f982b2596cfa9e368a2d7f74e9a17477c (diff)
downloadRaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.tar.gz
RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.zip
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankNumberStepper.qml')
-rw-r--r--raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankNumberStepper.qml67
1 files changed, 0 insertions, 67 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankNumberStepper.qml b/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankNumberStepper.qml
deleted file mode 100644
index f4dcf5a..0000000
--- a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Widgets/DankNumberStepper.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-import QtCore
-import QtQuick
-import qs.Common
-
-Column {
- id: root
- property string text: ""
- property var incrementTooltipText: ""
- property var decrementTooltipText: ""
- property var onIncrement: undefined
- property var onDecrement: undefined
- property string incrementIconName: "keyboard_arrow_up"
- property string decrementIconName: "keyboard_arrow_down"
-
- property bool incrementEnabled: true
- property bool decrementEnabled: true
-
- property color textColor: Theme.surfaceText
- property color iconColor: Theme.withAlpha(Theme.surfaceText, 0.5)
- property color backgroundColor: Theme.primary
-
- property int textSize: Theme.fontSizeSmall
- property var iconSize: 12
- property int buttonSize: 20
- property int horizontalPadding: Theme.spacingL
-
- readonly property bool effectiveIncrementEnabled: root.onIncrement ? root.incrementEnabled : false
- readonly property bool effectiveDecrementEnabled: root.onDecrement ? root.decrementEnabled : false
-
-
- width: Math.max(buttonSize * 2, root.implicitWidth + horizontalPadding * 2)
- spacing: 4
-
- DankActionButton {
- anchors.horizontalCenter: parent.horizontalCenter
- enabled: root.effectiveIncrementEnabled
- iconColor: root.effectiveIncrementEnabled ? root.iconColor : Theme.blendAlpha(root.iconColor, 0.5)
- iconSize: root.iconSize
- buttonSize: root.buttonSize
- iconName: root.incrementIconName
- onClicked: if (typeof root.onIncrement === 'function') root.onIncrement()
- tooltipText: root.incrementTooltipText
- }
-
- Row {
- anchors.horizontalCenter: parent.horizontalCenter
- Item { width: 5; height: 1 }
- StyledText {
- isMonospace: true
- text: root.text
- font.pixelSize: root.textSize
- color: root.textColor
- }
- Item { width: 5; height: 1 }
- }
-
- DankActionButton {
- anchors.horizontalCenter: parent.horizontalCenter
- enabled: root.effectiveDecrementEnabled
- iconColor: root.effectiveDecrementEnabled ? root.iconColor : Theme.blendAlpha(root.iconColor, 0.5)
- iconSize: root.iconSize
- buttonSize: root.buttonSize
- iconName: root.decrementIconName
- onClicked: if (typeof root.onDecrement === 'function') root.onDecrement()
- tooltipText: root.decrementTooltipText
- }
-}