Skip to content

Commit 1bc8c0b

Browse files
committed
Add mute keyboard shortcut
1 parent 83c8f58 commit 1bc8c0b

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

res/icons/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ qt_add_resources(
1212
green_flag.svg
1313
stop.svg
1414
turbo.svg
15+
mute.svg
1516
)

res/icons/mute.svg

Lines changed: 9 additions & 0 deletions
Loading

src/app/qml/main.qml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ ApplicationWindow {
7979
AppMenuBar.fps60Mode = !AppMenuBar.fps60Mode
8080
break;
8181

82+
case Qt.ControlModifier:
83+
AppMenuBar.mute = !AppMenuBar.mute
84+
break;
85+
8286
default:
8387
player.stop()
8488
player.start()
@@ -96,6 +100,13 @@ ApplicationWindow {
96100
}
97101
}
98102

103+
IconLabel {
104+
icon.name: "mute"
105+
icon.color: "transparent"
106+
text: ""
107+
visible: AppMenuBar.mute
108+
}
109+
99110
IconLabel {
100111
icon.name: "turbo"
101112
icon.color: "transparent"

0 commit comments

Comments
 (0)