Index: Slim/Player/Player.pm =================================================================== --- Slim/Player/Player.pm (revision 5292) +++ Slim/Player/Player.pm (working copy) @@ -43,6 +43,7 @@ ,'offDisplaySize' => 0 ,'pitch' => 100 ,'playingDisplayMode' => 0 + ,'playingDisplayModes' => [0..5] ,'power' => 1 ,'powerOffBrightness' => 1 ,'powerOnBrightness' => 4 @@ -1528,16 +1529,15 @@ sub playingModeOptions { my $client = shift; my %options = ( - '0' => $client->string('BLANK') - ,'1' => $client->string('ELAPSED') - ,'2' => $client->string('REMAINING') - ,'3' => $client->string('PROGRESS_BAR') - ,'4' => $client->string('ELAPSED') . ' ' . $client->string('AND') . ' ' . $client->string('PROGRESS_BAR') - ,'5' => $client->string('REMAINING') . ' ' . $client->string('AND') . ' ' . $client->string('PROGRESS_BAR') + '0' => $client->string('BLANK'), + '1' => $client->string('ELAPSED'), + '2' => $client->string('REMAINING'), + '3' => $client->string('PROGRESS_BAR'), + '4' => $client->string('ELAPSED') . ' ' . $client->string('AND') . ' ' . $client->string('PROGRESS_BAR'), + '5' => $client->string('REMAINING') . ' ' . $client->string('AND') . ' ' . $client->string('PROGRESS_BAR'), + '6' => $client->string('SETUP_SHOWBUFFERFULLNESS'), ); - $options{'6'} = $client->string('SETUP_SHOWBUFFERFULLNESS') if $client->prefGet('showbufferfullness'); - return \%options; } Index: Slim/Player/Squeezebox2.pm =================================================================== --- Slim/Player/Squeezebox2.pm (revision 5292) +++ Slim/Player/Squeezebox2.pm (working copy) @@ -26,15 +26,16 @@ use Slim::Utils::Unicode; our $defaultPrefs = { - 'activeFont' => [qw(light standard full)], - 'activeFont_curr' => 1, - 'idleFont' => [qw(light standard full)], - 'idleFont_curr' => 1, - 'idleBrightness' => 2, + 'activeFont' => [qw(light standard full)], + 'activeFont_curr' => 1, + 'idleFont' => [qw(light standard full)], + 'idleFont_curr' => 1, + 'idleBrightness' => 2, 'transitionType' => 0, - 'transitionDuration' => 0, + 'transitionDuration' => 0, 'replayGainMode' => '3', - 'playingDisplayMode' => 6, + 'playingDisplayMode' => 5, + 'playingDisplayModes' => [0..11] }; # Parameters for the vumeter: @@ -151,11 +152,8 @@ '9' => $client->string('VISUALIZER_SPECTRUM_ANALYZER'), '10' => $client->string('VISUALIZER_SPECTRUM_ANALYZER'). ' ' . $client->string('AND') . ' ' . $client->string('ELAPSED'), '11' => $client->string('VISUALIZER_SPECTRUM_ANALYZER'). ' ' . $client->string('AND') . ' ' . $client->string('REMAINING'), + '12' => $client->string('SETUP_SHOWBUFFERFULLNESS'), ); - - if ($client->prefGet('showbufferfullness')) { - $options{'12'} = $client->string('SETUP_SHOWBUFFERFULLNESS'); - } return \%options; } @@ -183,13 +181,8 @@ sub nowPlayingModes { my $client = shift; - my $count = scalar(@modes); - if (!$client->prefGet('showbufferfullness')) { - $count--; - } - - return $count; + return scalar(keys %{$client->playingModeOptions()}); } sub showVisualizer { Index: Slim/Web/Setup.pm =================================================================== --- Slim/Web/Setup.pm (revision 5292) +++ Slim/Web/Setup.pm (working copy) @@ -124,8 +124,11 @@ $pageref->{'Prefs'}{'idlesaver'}{'options'} = Slim::Buttons::Common::hash_of_savers(); $pageref->{'Prefs'}{'offsaver'}{'options'} = Slim::Buttons::Common::hash_of_savers(); } - $pageref->{'Prefs'}{'playingDisplayMode'}{'options'} = $client->playingModeOptions(); - $pageref->{'Prefs'}{'playingDisplayMode'}{'validateArgs'} = [0,scalar($pageref->{'Prefs'}{'playingDisplayMode'}{'options'}),1,1]; } else { + + my $displayHash = $client->playingModeOptions(); + $displayHash->{-1} = ' ' ; + $pageref->{'Prefs'}{'playingDisplayModes'}{'options'} = $displayHash; + $pageref->{'Prefs'}{'playingDisplayModes'}{'validateArgs'} = [$pageref->{'Prefs'}{'playingDisplayModes'}{'options'}]; } else { $pageref->{'GroupOrder'} = ['Default','TitleFormats']; } @@ -148,11 +151,6 @@ $paramref->{'macaddress'} = $client->macaddress; $paramref->{'signalstrength'} = $client->signalStrength; - if ($client->isPlayer()) { - $pageref->{'Prefs'}{'playingDisplayMode'}{'options'} = $client->playingModeOptions(); - $pageref->{'Prefs'}{'playingDisplayMode'}{'validateArgs'} = [0,scalar($pageref->{'Prefs'}{'playingDisplayMode'}{'options'}),1,1]; - } - $client->update(); } #,'template' => 'setup_player.html' @@ -173,13 +171,18 @@ ,'GroupLine' => 1 } ,'Display' => { - 'PrefOrder' => ['playingDisplayMode','showbufferfullness'] + 'PrefOrder' => ['playingDisplayModes'] + ,'PrefsInTable' => 1 ,'Suppress_PrefHead' => 1 ,'Suppress_PrefDesc' => 1 ,'Suppress_PrefLine' => 1 + ,'Suppress_PrefSub' => 1 ,'GroupHead' => string('SETUP_PLAYINGDISPLAYMODE') ,'GroupDesc' => string('SETUP_PLAYINGDISPLAYMODE_DESC') + ,'GroupPrefHead' => '