mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Add tooltips, fix tray menu
This commit is contained in:
@@ -21,6 +21,13 @@ Item {
|
||||
iconCircleColor: Theme.accentPrimary
|
||||
iconTextColor: Theme.backgroundPrimary
|
||||
textColor: Theme.textPrimary
|
||||
StyledTooltip {
|
||||
id: volumeTooltip
|
||||
text: "Volume: " + volume + "%\nScroll up/down to change volume"
|
||||
tooltipVisible: false
|
||||
targetItem: pillIndicator
|
||||
delay: 200
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
@@ -47,6 +54,8 @@ Item {
|
||||
hoverEnabled: true
|
||||
acceptedButtons: Qt.NoButton // Accept wheel events only
|
||||
propagateComposedEvents: true
|
||||
onEntered: volumeTooltip.tooltipVisible = true
|
||||
onExited: volumeTooltip.tooltipVisible = false
|
||||
onWheel:(wheel) => {
|
||||
if (!shell) return;
|
||||
let step = 5;
|
||||
|
||||
Reference in New Issue
Block a user