Tooltips on all NIconButtons

This commit is contained in:
quadbyte
2025-08-15 21:05:47 -04:00
parent c075b89dd2
commit 9990a88e90
19 changed files with 63 additions and 24 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ Row {
// Timer to hide full title after window switch
Timer {
id: fullTitleTimer
interval: Style.animationSlow * 4 // Show full title for 2 seconds
interval: Style.animationSlow * 4 // Show full title for 2 seconds
repeat: false
onTriggered: {
showingFullTitle = false
@@ -59,7 +59,7 @@ Row {
Behavior on width {
NumberAnimation {
duration: Style.animationNormal
duration: Style.animationNormal
easing.type: Easing.OutCubic
}
}
+2 -2
View File
@@ -130,7 +130,7 @@ Variants {
NIconButton {
id: demoPanelToggle
icon: "experiment"
tooltipText: "Open demo panel"
tooltipText: "Open Demo Panel"
sizeMultiplier: 0.8
showBorder: false
anchors.verticalCenter: parent.verticalCenter
@@ -142,7 +142,7 @@ Variants {
NIconButton {
id: sidePanelToggle
icon: "widgets"
tooltipText: "Open side panel"
tooltipText: "Open Side Panel"
sizeMultiplier: 0.8
showBorder: false
anchors.verticalCenter: parent.verticalCenter
+1 -1
View File
@@ -49,7 +49,7 @@ Item {
icon: getIcon()
iconCircleColor: Colors.mPrimary
collapsedIconColor: Colors.mOnSurface
autoHide: true
autoHide: false // Important to be false so we can hover as long as we want
text: Math.round(BrightnessService.brightness) + "%"
tooltipText: "Brightness: " + Math.round(
BrightnessService.brightness) + "%\nMethod: " + BrightnessService.currentMethod
+1 -1
View File
@@ -13,7 +13,7 @@ PopupWindow {
property real anchorX
property real anchorY
implicitWidth: Style.baseWidgetSize * 5.625 * scaling
implicitWidth: Style.baseWidgetSize * 5.625 * scaling
implicitHeight: Math.max(60 * scaling, listView.contentHeight + (Style.marginMedium * 2 * scaling))
visible: false
color: "transparent"
+11 -1
View File
@@ -31,16 +31,26 @@ Item {
firstVolumeReceived = true
} else {
pill.show()
externalHideTimer.restart()
}
}
}
Timer {
id: externalHideTimer
running: false
interval: 1500
onTriggered: {
pill.hide()
}
}
NPill {
id: pill
icon: getIcon()
iconCircleColor: Colors.mPrimary
collapsedIconColor: Colors.mOnSurface
autoHide: true
autoHide: false // Important to be false so we can hover as long as we want
text: Math.floor(Audio.volume * 100) + "%"
tooltipText: "Volume: " + Math.round(
Audio.volume * 100) + "%\nLeft click for advanced settings.\nScroll up/down to change volume."
+2
View File
@@ -164,6 +164,7 @@ NLoader {
NIconButton {
icon: "refresh"
tooltipText: "Refresh Networks"
sizeMultiplier: 0.8
enabled: Settings.data.network.wifiEnabled && !network.isLoading
onClicked: {
@@ -173,6 +174,7 @@ NLoader {
NIconButton {
icon: "close"
tooltipText: "Close"
sizeMultiplier: 0.8
onClicked: {
wifiPanel.hide()