diff --git a/config/config.inc.php b/config/config.inc.php index 96d0b62..db53c1c 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -12,7 +12,7 @@ /* Config relating to the display of CD covers */ /* music_directory must match you MPD music_directory config */ $_CONFIG['music_directory'] = '/var/lib/mpd/music'; - $_CONFIG['album_cover_name'] = 'folder.jpg'; + $_CONFIG['album_cover_name'] = '{:artist:} - {:album:}.jpg'; /* Template to use for displaying the pages */ $_CONFIG['template'] = 'default'; diff --git a/lib/js/neompc.js b/lib/js/neompc.js index e19b757..1d8f9cf 100644 --- a/lib/js/neompc.js +++ b/lib/js/neompc.js @@ -113,7 +113,7 @@ $(document).ready(function(){ containment: $('#slider_container'), start: function() { this.rel = '1'; - vol_int = setInterval('ajax_control(\'volume\', new_volume);', 250); + vol_int = setInterval('ajax_control(\'volume\', new_volume);', 100); if (typeof(hide_vol) != 'undefined') { clearTimeout(hide_vol); } diff --git a/templates/default/browse.html b/templates/default/browse.html index 57dc6fc..3259eb2 100644 --- a/templates/default/browse.html +++ b/templates/default/browse.html @@ -8,12 +8,12 @@ --> -
+
+
{:if $browse_parent_link:} {:/if:}

{:$browse_header|escape:'html':}

-
{:else:} +

(Empty playlist)

+ {:/if:} + diff --git a/templates/default/playlist_item.html b/templates/default/playlist_item.html index f28444a..76a70c3 100644 --- a/templates/default/playlist_item.html +++ b/templates/default/playlist_item.html @@ -4,7 +4,7 @@
  • {:/if:} Remove from Playlist - + {:$playlist_item.Pos+1|string_format:"%02d":} {:if $playlist_item.Title:} {:$playlist_item.Title:} diff --git a/templates/default/styles.css b/templates/default/styles.css index 977ec50..0ca9331 100644 --- a/templates/default/styles.css +++ b/templates/default/styles.css @@ -65,22 +65,22 @@ p { width: 106px; text-shadow: 0 0 12px rgba(150, 210, 255, 0.9); } -#browse_parent { +#list_header { height: 30px; padding: 0; width: 320px; margin: 0 auto; } -#browse_parent p { +#list_header p { padding: 8px 10px; text-align: left; } -#browse_parent a#browse_back { +#list_header a#browse_back { display: block; float: left; - width: 45px; + width: 30px; height: 30px; - margin-right: 10px; + margin-right: 5px; background: url(templates/{:$template:}/images/back.png) center center no-repeat; } #page { @@ -102,10 +102,23 @@ p { #list ul.list { margin-top: 0; } -#list ul li { - padding: 3px 10px 3px 10px; +#list ul .browse { + display: block; + padding: 5px 10px 5px 35px; border-top: 1px solid white; border-bottom: 1px solid #aaa; +} +#list ul .playlist_item { + display: block; + padding: 5px 10px 5px 10px; + border-top: 1px solid white; + border-bottom: 1px solid #aaa; +} +#list ul li.dir { + background: url(templates/{:$template:}/images/folder.png) 10px center no-repeat; +} +#list ul li.track { + background: url(templates/{:$template:}/images/music.png) 10px center no-repeat; } #list li .pos { float: left; @@ -119,14 +132,12 @@ p { li .play { display: block; } -li .remove { +li .remove .add .play { float: right; - padding: 5px 0px 3px; + padding: 5px 0px 3px 5px; display: block; } -li.playing { - background: #ccc; - border-bottom: 1px solid #999; +li.playing a { } li .title { font-weight: bold; @@ -165,10 +176,9 @@ li .title { #page #album { color: #888; } -#buttons { - width: 280px; - margin: 0px auto; - padding-top: 10px; +#buttons { + float: right; + margin: 5px 10px 0px 0px; text-align: right; }