From 51508d96a494bda94333e29f74a5c86cb15969df Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Wed, 5 Dec 2018 12:13:28 +0000 Subject: [PATCH] [UI] Added volume slider hiding when mouse not in area. --- src/MpvPlayerBackend.cpp | 1 - src/qml/UIComponents/.VolumeButton.qml.kate-swp | Bin 0 -> 192 bytes src/qml/UIComponents/VolumeButton.qml | 11 +++++++---- src/qml/YouTubeButtonLayout.qml | 15 +++++++++++++++ 4 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 src/qml/UIComponents/.VolumeButton.qml.kate-swp diff --git a/src/MpvPlayerBackend.cpp b/src/MpvPlayerBackend.cpp index d8294e8..3abb98a 100644 --- a/src/MpvPlayerBackend.cpp +++ b/src/MpvPlayerBackend.cpp @@ -533,7 +533,6 @@ MpvPlayerBackend::handle_mpv_event(mpv_event* event) } } else if (strcmp(prop->name, "mute") == 0 || strcmp(prop->name, "volume") == 0) { - return; double volume = getProperty("volume").toDouble(); bool mute = getProperty("mute").toBool(); if (mute || volume == 0) { diff --git a/src/qml/UIComponents/.VolumeButton.qml.kate-swp b/src/qml/UIComponents/.VolumeButton.qml.kate-swp new file mode 100644 index 0000000000000000000000000000000000000000..77ac264164dbbd2af49c6d7300271f18b53e1fbb GIT binary patch literal 192 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vn323(3U-L{b{@69U$ym3qG3trHv$ zl+grYZP#E=Af*MwAi$vj1qfjdpfF=Tg3k%!=OOr9Aighx&kf?2BKSNYehGrl3*x6D K_