add general toggle for a more minimal UI mode

Suggestions/requests/ideas for RuneAudio core features and functions

Re: add general toggle for a more minimal UI mode

Postby waves » 03 Sep 2016, 12:50

mod: when browsing playlists, click queue button or text "Playlist" to jump to queue view

Caveats:
- This presupposes that you SSH in to your Rune device and edit files there.
- It is a good idea to first make a backup of the files you modify.

Edit this file
Code: Select all
/srv/http/assets/js/runeui.js


find the lines
Code: Select all
// update info and status on Playback tab
function refreshState() {


and add on new lines above them
Code: Select all
// when playlist browsing, click text "Playlist" to show queue again
$('#pl-currentpath').bind("click", function(){ $('#pl-filter-results').click(); });


find the string
Code: Select all
customScroll('pl', current, 500);

and add on new lines below
Code: Select all
if (!$('#pl-filter-results').hasClass('hide'))  //mod when playlist browsing, click to show queue again
  $('#pl-filter-results').click();


Necessary steps to apply the modifications
First, when you are done editing, save runeui.js

Next we minify the file (i.e. convert it into a more compact file that RuneAudio normally uses)
- Copy all the contents of your modified runeui.js file to the clipboard
- Paste into the editbox at http://gpbmike.github.io/refresh-sf/
- Click the button Javascript on the right side of the editbox. The content is now minified
- Copy all the minified text in the editbox
- Edit the file runeui.min.js (make a backup of it first!) and replace all its contents with the minified text from the clipboard. Then save. Then reload RuneAudio in the browser.
waves
 
Posts: 112
Joined: 31 Dec 2014, 10:33

Re: add general toggle for a more minimal UI mode

Postby Runebeginner » 28 Oct 2016, 22:57

Nice! I did some modifications for my liking too. Thanks for your guide!
Runebeginner
 
Posts: 13
Joined: 20 Oct 2016, 07:58

Re: add general toggle for a more minimal UI mode

Postby waves » 04 Nov 2016, 11:07

Runebeginner wrote:Nice! I did some modifications for my liking too. Thanks for your guide!

Hi, great to hear you liked it. If you make some extra modifications or improvements on the above that could be useful for others then consider posting them for others to learn from.
waves
 
Posts: 112
Joined: 31 Dec 2014, 10:33

Re: add general toggle for a more minimal UI mode

Postby dynobot » 13 Dec 2016, 13:12

This is great :D

I'm going to try this ASAP.

I'd also like to add a toggle switch in the settings menu, so I can go back and forth.
User avatar
dynobot
 
Posts: 56
Joined: 19 May 2014, 15:04
Location: GA-USA

support RuneAudio Donate with PayPal

Previous

Return to Feature request

Who is online

Users browsing this forum: No registered users and 0 guests