summaryrefslogtreecommitdiff
path: root/widgets/StyledScrollBar.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-04 22:45:15 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-04 22:45:15 +1000
commitc5381c5194adf97c240acb98eb4c4c950633b325 (patch)
tree52b18eb1771ec6708c86f11d786684f03b8a7c48 /widgets/StyledScrollBar.qml
parentdashboard: display correct temp units (diff)
downloadcaelestia-shell-c5381c5194adf97c240acb98eb4c4c950633b325.tar.gz
caelestia-shell-c5381c5194adf97c240acb98eb4c4c950633b325.tar.bz2
caelestia-shell-c5381c5194adf97c240acb98eb4c4c950633b325.zip
internal: refactor widgets folder
Split into subdirs and rename to components
Diffstat (limited to 'widgets/StyledScrollBar.qml')
-rw-r--r--widgets/StyledScrollBar.qml35
1 files changed, 0 insertions, 35 deletions
diff --git a/widgets/StyledScrollBar.qml b/widgets/StyledScrollBar.qml
deleted file mode 100644
index 9e1f891..0000000
--- a/widgets/StyledScrollBar.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-import qs.services
-import qs.config
-import QtQuick
-import QtQuick.Controls
-
-ScrollBar {
- id: root
-
- contentItem: StyledRect {
- implicitWidth: 6
- opacity: root.pressed ? 1 : root.policy === ScrollBar.AlwaysOn || (root.active && root.size < 1) ? 0.8 : 0
- radius: Appearance.rounding.full
- color: Colours.palette.m3secondary
-
- Behavior on opacity {
- NumberAnimation {
- duration: Appearance.anim.durations.normal
- easing.type: Easing.BezierSpline
- easing.bezierCurve: Appearance.anim.curves.standard
- }
- }
- }
-
- CustomMouseArea {
- z: -1
- anchors.fill: parent
-
- function onWheel(event: WheelEvent): void {
- if (event.angleDelta.y > 0)
- root.decrease();
- else if (event.angleDelta.y < 0)
- root.increase();
- }
- }
-}