Tooltip improvements (only use period for long sentences)

This commit is contained in:
LemmyCook
2025-09-19 10:38:10 -04:00
parent 61203dc5fd
commit ed557af1c2
28 changed files with 42 additions and 84 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ NBox {
// Previous button
NIconButton {
icon: "media-prev"
tooltipText: "Previous Media"
tooltipText: "Previous media"
visible: MediaService.canGoPrevious
onClicked: MediaService.canGoPrevious ? MediaService.previous() : {}
}
@@ -26,7 +26,7 @@ NBox {
// Performance
NIconButton {
icon: PowerProfileService.getIcon(PowerProfile.Performance)
tooltipText: `Set "${PowerProfileService.getName(PowerProfile.Performance)}" power profile.`
tooltipText: `Set "${PowerProfileService.getName(PowerProfile.Performance)}" power profile`
enabled: hasPP
opacity: enabled ? Style.opacityFull : Style.opacityMedium
colorBg: (enabled && PowerProfileService.profile === PowerProfile.Performance) ? Color.mPrimary : Color.mSurfaceVariant
@@ -36,7 +36,7 @@ NBox {
// Balanced
NIconButton {
icon: PowerProfileService.getIcon(PowerProfile.Balanced)
tooltipText: `Set "${PowerProfileService.getName(PowerProfile.Balanced)}" power profile.`
tooltipText: `Set "${PowerProfileService.getName(PowerProfile.Balanced)}" power profile`
enabled: hasPP
opacity: enabled ? Style.opacityFull : Style.opacityMedium
colorBg: (enabled && PowerProfileService.profile === PowerProfile.Balanced) ? Color.mPrimary : Color.mSurfaceVariant
@@ -46,7 +46,7 @@ NBox {
// Eco
NIconButton {
icon: PowerProfileService.getIcon(PowerProfile.PowerSaver)
tooltipText: `Set "${PowerProfileService.getName(PowerProfile.PowerSaver)}" power profile.`
tooltipText: `Set "${PowerProfileService.getName(PowerProfile.PowerSaver)}" power profile`
enabled: hasPP
opacity: enabled ? Style.opacityFull : Style.opacityMedium
colorBg: (enabled && PowerProfileService.profile === PowerProfile.PowerSaver) ? Color.mPrimary : Color.mSurfaceVariant
+3 -3
View File
@@ -56,7 +56,7 @@ NBox {
}
NIconButton {
icon: "settings"
tooltipText: "Open settings."
tooltipText: "Open settings"
onClicked: {
settingsPanel.requestedTab = SettingsPanel.Tab.General
settingsPanel.open()
@@ -66,7 +66,7 @@ NBox {
NIconButton {
id: powerButton
icon: "power"
tooltipText: "Power menu."
tooltipText: "Power panel"
onClicked: {
powerPanel.open()
sidePanel.close()
@@ -76,7 +76,7 @@ NBox {
NIconButton {
id: closeButton
icon: "close"
tooltipText: "Close side panel."
tooltipText: "Close side panel"
onClicked: {
sidePanel.close()
}
+2 -2
View File
@@ -24,7 +24,7 @@ NBox {
NIconButton {
icon: "camera-video"
enabled: ScreenRecorderService.isAvailable
tooltipText: ScreenRecorderService.isAvailable ? (ScreenRecorderService.isRecording ? "Stop screen recording." : "Start screen recording.") : "Screen recorder not installed."
tooltipText: ScreenRecorderService.isAvailable ? (ScreenRecorderService.isRecording ? "Stop screen recording" : "Start screen recording") : "Screen recorder is not installed"
colorBg: ScreenRecorderService.isRecording ? Color.mPrimary : Color.mSurfaceVariant
colorFg: ScreenRecorderService.isRecording ? Color.mOnPrimary : Color.mPrimary
onClicked: {
@@ -42,7 +42,7 @@ NBox {
// Idle Inhibitor
NIconButton {
icon: IdleInhibitorService.isInhibited ? "keep-awake-on" : "keep-awake-off"
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake." : "Enable keep awake."
tooltipText: `${IdleInhibitorService.isInhibited ? "Disable" : "Enable"} keep awake`
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mSurfaceVariant
colorFg: IdleInhibitorService.isInhibited ? Color.mOnPrimary : Color.mPrimary
onClicked: {