summaryrefslogtreecommitdiff
path: root/widgets/VerticalSlider.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-03 18:59:05 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-03 18:59:05 +1000
commitfe4e72eab3170c5f888b14251d15e51b2a5adf9c (patch)
treeb5badd0b7b08b6831e51ae225c6bb44dc04051c4 /widgets/VerticalSlider.qml
parentdcontent: impl bt device details (diff)
downloadcaelestia-shell-fe4e72eab3170c5f888b14251d15e51b2a5adf9c.tar.gz
caelestia-shell-fe4e72eab3170c5f888b14251d15e51b2a5adf9c.tar.bz2
caelestia-shell-fe4e72eab3170c5f888b14251d15e51b2a5adf9c.zip
internal: better shadow
Diffstat (limited to 'widgets/VerticalSlider.qml')
-rw-r--r--widgets/VerticalSlider.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/VerticalSlider.qml b/widgets/VerticalSlider.qml
index 21bdc7a..9b55a0d 100644
--- a/widgets/VerticalSlider.qml
+++ b/widgets/VerticalSlider.qml
@@ -3,7 +3,6 @@ import qs.services
import qs.config
import QtQuick
import QtQuick.Controls
-import QtQuick.Effects
Slider {
id: root
@@ -38,12 +37,10 @@ Slider {
implicitWidth: root.width
implicitHeight: root.width
- RectangularShadow {
+ Elevation {
anchors.fill: parent
radius: rect.radius
- color: Colours.palette.m3shadow
- blur: 5
- spread: 0
+ level: handleInteraction.containsMouse ? 2 : 1
}
StyledRect {
@@ -55,7 +52,10 @@ Slider {
radius: Appearance.rounding.full
MouseArea {
+ id: handleInteraction
+
anchors.fill: parent
+ hoverEnabled: true
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.NoButton
}