+
+ if ( ! exitEffectValid ) {
+ [vanishEffectPopup selectItemAtIndex:[[vanishEffectPopup menu] indexOfItemWithRepresentedObject:NSClassFromString(@"ITDissolveWindowEffect")]];
+ [self setStatusWindowExitEffect:NSClassFromString(@"ITDissolveWindowEffect")];
+ } else {
+ [vanishEffectPopup selectItemAtIndex:[[vanishEffectPopup menu] indexOfItemWithRepresentedObject:[[sw exitEffect] class]]];
+ }
+
+ [(MainController *)controller showCurrentTrackInfo];
+
+ } else if ( [sender tag] == 2020) {
+
+ // Update screen selection.
+ [[StatusWindow sharedWindow] setScreen:[[NSScreen screens] objectAtIndex:[sender indexOfSelectedItem]]];
+ [df setInteger:[sender indexOfSelectedItem] forKey:@"statusWindowScreenIndex"];
+ [(MainController *)controller showCurrentTrackInfo];
+
+ } else if ( [sender tag] == 2030) {
+
+ [self setStatusWindowEntryEffect:[[sender selectedItem] representedObject]];
+ [(MainController *)controller showCurrentTrackInfo];
+
+ } else if ( [sender tag] == 2040) {
+
+ [self setStatusWindowExitEffect:[[sender selectedItem] representedObject]];
+ [(MainController *)controller showCurrentTrackInfo];
+
+ } else if ( [sender tag] == 2050) {
+ float newTime = ( -([sender floatValue]) );
+ [df setFloat:newTime forKey:@"statusWindowAppearanceSpeed"];
+ [[sw entryEffect] setEffectTime:newTime];
+ } else if ( [sender tag] == 2060) {
+ float newTime = ( -([sender floatValue]) );
+ [df setFloat:newTime forKey:@"statusWindowVanishSpeed"];
+ [[sw exitEffect] setEffectTime:newTime];
+ } else if ( [sender tag] == 2070) {
+ [df setFloat:[sender floatValue] forKey:@"statusWindowVanishDelay"];
+ [sw setExitDelay:[sender floatValue]];
+ } else if ( [sender tag] == 2080) {
+ [df setBool:SENDER_STATE forKey:@"showSongInfoOnChange"];
+ } else if ( [sender tag] == 2090) {
+
+ int setting = [sender indexOfSelectedItem];
+
+ if ( setting == 0 ) {
+ [(ITTSWBackgroundView *)[sw contentView] setBackgroundMode:ITTSWBackgroundApple];
+ [backgroundColorWell setEnabled:NO];
+ [backgroundColorPopup setEnabled:NO];
+ } else if ( setting == 1 ) {
+ [(ITTSWBackgroundView *)[sw contentView] setBackgroundMode:ITTSWBackgroundReadable];
+ [backgroundColorWell setEnabled:NO];
+ [backgroundColorPopup setEnabled:NO];
+ } else if ( setting == 2 ) {
+ [(ITTSWBackgroundView *)[sw contentView] setBackgroundMode:ITTSWBackgroundColored];
+ [backgroundColorWell setEnabled:YES];
+ [backgroundColorPopup setEnabled:YES];
+ }
+
+ [df setInteger:setting forKey:@"statusWindowBackgroundMode"];
+ [(MainController *)controller showCurrentTrackInfo];
+
+ } else if ( [sender tag] == 2091) {
+ [self setCustomColor:[sender color] updateWell:NO];
+ [(MainController *)controller showCurrentTrackInfo];
+ } else if ( [sender tag] == 2092) {
+
+ int selectedItem = [sender indexOfSelectedItem];
+
+ if ( selectedItem == 1 ) { // An NSPopUpButton in PullDown mode uses item 0 as its title. Its first selectable item is 1.
+ [self setCustomColor:[NSColor colorWithCalibratedRed:0.92549 green:0.686275 blue:0.0 alpha:1.0] updateWell:YES];
+ } else if ( selectedItem == 2 ) {
+ [self setCustomColor:[NSColor colorWithCalibratedRed:0.380392 green:0.670588 blue:0.0 alpha:1.0] updateWell:YES];
+ } else if ( selectedItem == 3 ) {
+ [self setCustomColor:[NSColor colorWithCalibratedRed:0.443137 green:0.231373 blue:0.619608 alpha:1.0] updateWell:YES];
+ } else if ( selectedItem == 4 ) {
+ [self setCustomColor:[NSColor colorWithCalibratedRed:0.831373 green:0.12549 blue:0.509804 alpha:1.0] updateWell:YES];
+ } else if ( selectedItem == 5 ) {
+ [self setCustomColor:[NSColor colorWithCalibratedRed:0.00784314 green:0.611765 blue:0.662745 alpha:1.0] updateWell:YES];
+ } else {
+ [self setCustomColor:[NSColor colorWithCalibratedWhite:0.15 alpha:0.70] updateWell:YES];
+ }
+ [(MainController *)controller showCurrentTrackInfo];
+
+ } else if ( [sender tag] == 2095) {
+ [df setInteger:[sender indexOfSelectedItem] forKey:@"statusWindowSizing"];
+ [(MainController *)controller showCurrentTrackInfo];
+ }
+
+ [df synchronize];