Hide volume control when disabled

General discussion about RuneAudio. Do not post any support or feature requests here.

Hide volume control when disabled

Postby guyb » 09 Sep 2015, 07:03

Hi all,

Is there a way to hide the volume controls on the Playback page when you have Volume Control set to 'disabled' as once disabled they serve no purpose?

Thanks

Guy
guyb
 
Posts: 33
Joined: 08 Sep 2015, 14:10

Re: Hide volume control when disabled

Postby mika-nl » 10 Sep 2015, 08:01

guyb wrote:Hi all,

Is there a way to hide the volume controls on the Playback page when you have Volume Control set to 'disabled' as once disabled they serve no purpose?

Thanks

Guy

Sounds nice +1
mika-nl
 
Posts: 25
Joined: 23 Apr 2015, 19:27

Re: Hide volume control when disabled

Postby Aquarius » 10 Sep 2015, 08:53

I'd like that too !
It would simplify the layout especially on cramped screen. See for instance the 800*480 screen of the new official raspberry pi screen. I would love to use a Rpi running the UI on that screen to control the Rpi playing music. Also, smartphone screens would also get simplier.
-- Aquarius
Hifi Gear: RuneAudio/Volumio on Raspberry Pi B + Hifibery Digi, Atoll ST200 (network streamer, DAC, pre-amp), Emotiva XPA-2, Bowers & Wilkins 683
Aquarius
 
Posts: 110
Joined: 26 Aug 2014, 08:42

Re: Hide volume control when disabled

Postby hondagx35 » 10 Sep 2015, 09:15

Hi all,

See for instance the 800*480 screen of the new official raspberry pi screen. I would love to use a Rpi running the UI on that screen to control the Rpi playing music

We are working on this, Display is already ordered.


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Hide volume control when disabled

Postby waves » 23 Oct 2015, 12:33

Anyone who wants to make small UI modifications like that and knows a bit of javascript can do it themselves. Check these threads for some pointers and examples
disable-timeknob-and-coverart-if-webradio-t784.html
touch-gesture-actions-proof-of-concept-t937.html
add-general-toggle-for-a-more-minimal-ui-mode-t800.html
waves
 
Posts: 125
Joined: 31 Dec 2014, 10:33

Re: Hide volume control when disabled

Postby R101 » 27 Nov 2016, 12:18

waves wrote:Anyone who wants to make small UI modifications like that and knows a bit of javascript can do it themselves. Check these threads for some pointers and examples
disable-timeknob-and-coverart-if-webradio-t784.html
touch-gesture-actions-proof-of-concept-t937.html
add-general-toggle-for-a-more-minimal-ui-mode-t800.html


I don't know anything about Javascript and would welcome an idiot's guide on how to do this. I was rather hoping that there would have been an update by now which would make it easy to hide unwanted functions.
(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: Hide volume control when disabled

Postby irishwill2008 » 30 Nov 2016, 12:55

guyb wrote:Hi all,

Is there a way to hide the volume controls on the Playback page when you have Volume Control set to 'disabled' as once disabled they serve no purpose?

Thanks

Guy


Do something like
Code: Select all
if($this->conf['mixer_type'] == 'disabled') { //do stuff }


Have the IF and ELSE.. else with the normal div, if that shows the div with style display:none.
Not sure if the $this will work on playback.php but experiment ;)
irishwill2008
 
Posts: 157
Joined: 26 Jul 2016, 14:49
Location: Ireland

Re: Hide volume control when disabled

Postby rern » 10 Dec 2016, 01:25

This RuneUI Enhancement might be what you want.
It has some other more minimalism and features, such as lyrics, as well.
rAudio @ https://github.com/rern/rAudio-1
Raspberry Pi 4B
Raspberry Pi 3B > SMSL M8 DAC
Raspberry Pi Zero W
User avatar
rern
 
Posts: 723
Joined: 14 Jul 2016, 08:15

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 0 guests
cron