forked from ghostfox/qyouradio
Fix theme
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import QtQuick 6.8
|
||||
import QtQuick.Controls 6.8 as QC
|
||||
import QtQuick.Controls.Basic as QC
|
||||
|
||||
QC.Slider {
|
||||
snapMode: Slider.SnapAlways
|
||||
@@ -7,20 +8,20 @@ QC.Slider {
|
||||
implicitWidth: 130
|
||||
implicitHeight: 20
|
||||
|
||||
OpacityAnimator on opacity{
|
||||
from: 0.7
|
||||
to: 1
|
||||
duration: 200
|
||||
target: parent
|
||||
running: this.hovered
|
||||
}
|
||||
OpacityAnimator on opacity{
|
||||
from: 1
|
||||
to: 0.7
|
||||
duration: 200
|
||||
target: parent
|
||||
running: !this.hovered
|
||||
}
|
||||
// OpacityAnimator on opacity{
|
||||
// from: 0.7
|
||||
// to: 1
|
||||
// duration: 200
|
||||
// target: parent
|
||||
// running: parent.hovered
|
||||
// }
|
||||
// OpacityAnimator on opacity{
|
||||
// from: 1
|
||||
// to: 0.7
|
||||
// duration: 200
|
||||
// target: parent
|
||||
// running: !parent.hovered
|
||||
// }
|
||||
|
||||
background: Rectangle {
|
||||
color: "#555"
|
||||
@@ -28,8 +29,8 @@ QC.Slider {
|
||||
}
|
||||
|
||||
handle: Rectangle {
|
||||
x: this.leftPadding + this.visualPosition * (this.availableWidth - width)
|
||||
y: this.topPadding + this.availableHeight / 2 - height / 2
|
||||
x: parent.leftPadding + parent.visualPosition * (parent.availableWidth - width)
|
||||
y: parent.topPadding + parent.availableHeight / 2 - height / 2
|
||||
width: 20
|
||||
height: 20
|
||||
radius: 10
|
||||
|
||||
Reference in New Issue
Block a user