TrayMenu: improve tray opening direction in vertical bar more

This commit is contained in:
LemmyCook 2025-09-14 22:44:27 -04:00
parent 53d0c3943d
commit f399a6d9f5
4 changed files with 53 additions and 16 deletions

View file

@ -78,7 +78,7 @@ Item {
font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeXS * scaling
font.weight: Style.fontWeightBold
color: forceOpen ? Color.mOnSurface : Color.mPrimary
color: forceOpen ? Color.mOnSurface : Color.mPrimary
visible: revealed
}

View file

@ -34,25 +34,39 @@ Slider {
width: root.visualPosition * parent.width
height: parent.height
radius: parent.radius
// Animated gradient fill
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop {
GradientStop {
position: 0.0
color: Qt.darker(Color.mPrimary, 1.2)
Behavior on color { ColorAnimation { duration: 300 } }
Behavior on color {
ColorAnimation {
duration: 300
}
}
}
GradientStop {
GradientStop {
position: 0.5
color: Color.mPrimary
SequentialAnimation on position {
loops: Animation.Infinite
NumberAnimation { from: 0.3; to: 0.7; duration: 2000; easing.type: Easing.InOutSine }
NumberAnimation { from: 0.7; to: 0.3; duration: 2000; easing.type: Easing.InOutSine }
NumberAnimation {
from: 0.3
to: 0.7
duration: 2000
easing.type: Easing.InOutSine
}
NumberAnimation {
from: 0.7
to: 0.3
duration: 2000
easing.type: Easing.InOutSine
}
}
}
GradientStop {
GradientStop {
position: 1.0
color: Qt.lighter(Color.mPrimary, 1.2)
}
@ -94,4 +108,4 @@ Slider {
}
}
}
}
}