diff --git a/src/qml/CustomMenuItem.qml b/src/qml/CustomMenuItem.qml index ceeb8e6..99594fa 100644 --- a/src/qml/CustomMenuItem.qml +++ b/src/qml/CustomMenuItem.qml @@ -14,7 +14,7 @@ MenuItem { implicitHeight: 20 contentItem: Text { - rightPadding: menuItem.arrow.width + rightPadding: menuItem.indicator.width text: menuItem.text font.family: notoFont.name opacity: 1 diff --git a/src/qml/main.qml b/src/qml/main.qml index d30fefa..e586203 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -374,6 +374,7 @@ ApplicationWindow { property string doubleSpeed: "}" property string increaseVolume: "*" property string decreaseVolume: "/" + property string mute: "m" } MenuBar { @@ -582,14 +583,21 @@ ApplicationWindow { onTriggered: { player.command(["add", "volume", "2"]) } - shortcut: keybinds.cycleAudio + shortcut: keybinds.increaseVolume } Action { text: "Decrease Volume" onTriggered: { player.command(["add", "volume", "-2"]) } - shortcut: keybinds.cycleAudio + shortcut: keybinds.decreaseVolume + } + Action { + text: "Mute" + onTriggered: { + player.command(["cycle", "mute"]) + } + shortcut: keybinds.mute } }