forked from Shinonome/dots-hyprland
waffles: action center: volume menu
This commit is contained in:
@@ -10,8 +10,7 @@ Slider {
|
||||
id: root
|
||||
|
||||
property real trackWidth: 4
|
||||
// leftPadding: handle.width / 2
|
||||
// rightPadding: handle.width / 2
|
||||
property string tooltipContent: `${Math.round(value * 100)}`
|
||||
leftPadding: 0
|
||||
rightPadding: 0
|
||||
|
||||
@@ -77,5 +76,14 @@ Slider {
|
||||
animation: Looks.transition.enter.createObject(this)
|
||||
}
|
||||
}
|
||||
|
||||
WToolTip {
|
||||
id: tooltip
|
||||
extraVisibleCondition: root.pressed
|
||||
text: root.tooltipContent
|
||||
font.pixelSize: Looks.font.pixelSize.larger
|
||||
verticalPadding: 3
|
||||
horizontalPadding: 8
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user