[UI] Fixed volume keybinds. Added mute keybind.
This commit is contained in:
parent
9f3d8d9e06
commit
2d3222c724
|
@ -14,7 +14,7 @@ MenuItem {
|
||||||
implicitHeight: 20
|
implicitHeight: 20
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
rightPadding: menuItem.arrow.width
|
rightPadding: menuItem.indicator.width
|
||||||
text: menuItem.text
|
text: menuItem.text
|
||||||
font.family: notoFont.name
|
font.family: notoFont.name
|
||||||
opacity: 1
|
opacity: 1
|
||||||
|
|
|
@ -374,6 +374,7 @@ ApplicationWindow {
|
||||||
property string doubleSpeed: "}"
|
property string doubleSpeed: "}"
|
||||||
property string increaseVolume: "*"
|
property string increaseVolume: "*"
|
||||||
property string decreaseVolume: "/"
|
property string decreaseVolume: "/"
|
||||||
|
property string mute: "m"
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuBar {
|
MenuBar {
|
||||||
|
@ -582,14 +583,21 @@ ApplicationWindow {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
player.command(["add", "volume", "2"])
|
player.command(["add", "volume", "2"])
|
||||||
}
|
}
|
||||||
shortcut: keybinds.cycleAudio
|
shortcut: keybinds.increaseVolume
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
text: "Decrease Volume"
|
text: "Decrease Volume"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
player.command(["add", "volume", "-2"])
|
player.command(["add", "volume", "-2"])
|
||||||
}
|
}
|
||||||
shortcut: keybinds.cycleAudio
|
shortcut: keybinds.decreaseVolume
|
||||||
|
}
|
||||||
|
Action {
|
||||||
|
text: "Mute"
|
||||||
|
onTriggered: {
|
||||||
|
player.command(["cycle", "mute"])
|
||||||
|
}
|
||||||
|
shortcut: keybinds.mute
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue