Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add mute keyboard shortcut
  • Loading branch information
adazem009 committed Aug 25, 2024
commit 1bc8c0b4c772217552575eff8c4678f0453aaad3
1 change: 1 addition & 0 deletions res/icons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ qt_add_resources(
green_flag.svg
stop.svg
turbo.svg
mute.svg
)
9 changes: 9 additions & 0 deletions res/icons/mute.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ ApplicationWindow {
AppMenuBar.fps60Mode = !AppMenuBar.fps60Mode
break;

case Qt.ControlModifier:
AppMenuBar.mute = !AppMenuBar.mute
break;

default:
player.stop()
player.start()
Expand All @@ -96,6 +100,13 @@ ApplicationWindow {
}
}

IconLabel {
icon.name: "mute"
icon.color: "transparent"
text: ""
visible: AppMenuBar.mute
}

IconLabel {
icon.name: "turbo"
icon.color: "transparent"
Expand Down