Volume/Brightness/Microphone: fixed tooltips to new mapping
This commit is contained in:
parent
8935f9a0f9
commit
c0d6780c3d
3 changed files with 9 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ Item {
|
||||||
var monitor = getMonitor()
|
var monitor = getMonitor()
|
||||||
if (!monitor)
|
if (!monitor)
|
||||||
return ""
|
return ""
|
||||||
return "Brightness: " + Math.round(monitor.brightness * 100) + "%\nMethod: " + monitor.method + "\nLeft click for advanced settings.\nScroll up/down to change brightness."
|
return "Brightness: " + Math.round(monitor.brightness * 100) + "%\nRight click for settings.\nScroll to modify brightness."
|
||||||
}
|
}
|
||||||
|
|
||||||
onWheel: function (angle) {
|
onWheel: function (angle) {
|
||||||
|
|
@ -104,6 +104,12 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
var settingsPanel = PanelService.getPanel("settingsPanel")
|
||||||
|
settingsPanel.requestedTab = SettingsPanel.Tab.Display
|
||||||
|
settingsPanel.open()
|
||||||
|
}
|
||||||
|
|
||||||
onRightClicked: {
|
onRightClicked: {
|
||||||
var settingsPanel = PanelService.getPanel("settingsPanel")
|
var settingsPanel = PanelService.getPanel("settingsPanel")
|
||||||
settingsPanel.requestedTab = SettingsPanel.Tab.Display
|
settingsPanel.requestedTab = SettingsPanel.Tab.Display
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ Item {
|
||||||
suffix: "%"
|
suffix: "%"
|
||||||
forceOpen: displayMode === "alwaysShow"
|
forceOpen: displayMode === "alwaysShow"
|
||||||
forceClose: displayMode === "alwaysHide"
|
forceClose: displayMode === "alwaysHide"
|
||||||
tooltipText: "Microphone: " + Math.round(AudioService.inputVolume * 100) + "%\nLeft click for advanced settings.\nScroll up/down to change volume.\nRight click to toggle mute."
|
tooltipText: "Microphone: " + Math.round(AudioService.inputVolume * 100) + "%\nLeft click to toggle mute.\nRight click for settings.\nScroll to modify volume."
|
||||||
|
|
||||||
onWheel: function (delta) {
|
onWheel: function (delta) {
|
||||||
wheelAccumulator += delta
|
wheelAccumulator += delta
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ Item {
|
||||||
suffix: "%"
|
suffix: "%"
|
||||||
forceOpen: displayMode === "alwaysShow"
|
forceOpen: displayMode === "alwaysShow"
|
||||||
forceClose: displayMode === "alwaysHide"
|
forceClose: displayMode === "alwaysHide"
|
||||||
tooltipText: "Volume: " + Math.round(AudioService.volume * 100) + "%\nLeft click for advanced settings.\nScroll up/down to change volume.\nRight click to toggle mute."
|
tooltipText: "Volume: " + Math.round(AudioService.volume * 100) + "%\nLeft click to toggle mute.\nRight click for settings.\nScroll to modify volume."
|
||||||
|
|
||||||
onWheel: function (delta) {
|
onWheel: function (delta) {
|
||||||
wheelAccumulator += delta
|
wheelAccumulator += delta
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue