#import "PreferencesController.h"
#import "MainController.h"
+#import <ITKit/ITTSWBackgroundView.h>
#import <ITKit/ITWindowEffect.h>
#import <ITKit/ITCutWindowEffect.h>
#import <ITKit/ITDissolveWindowEffect.h>
[_window setExitMode:ITTransientStatusWindowExitAfterDelay];
[_window setExitDelay:(exitDelay ? exitDelay : 4.0)];
+ [_window setHorizontalPosition:[df integerForKey:@"statusWindowHorizontalPosition"]];
+ [_window setVerticalPosition:[df integerForKey:@"statusWindowVerticalPosition"]];
+
if ( entryTag == 2101 ) {
entryEffect = [[[ITDissolveWindowEffect alloc] initWithWindow:_window] autorelease];
} else if ( entryTag == 2102 ) {
[[_window entryEffect] setEffectTime:(entrySpeed ? entrySpeed : 0.8)];
[[_window exitEffect] setEffectTime:(exitSpeed ? exitSpeed : 0.8)];
+
+ [(ITTSWBackgroundView *)[_window contentView]setBackgroundMode:
+ (ITTSWBackgroundMode)[df integerForKey:@"statusWindowBackgroundMode"]];
+
+ [(ITTSWBackgroundView *)[_window contentView]setBackgroundColor:
+ (NSColor *)[NSUnarchiver unarchiveObjectWithData:[df dataForKey:@"statusWindowBackgroundColor"]]];
}
return self;
[super dealloc];
}
-- (void)readDefaults
-{
- ITHorizontalWindowPosition horizontalPosition = [[NSUserDefaults standardUserDefaults] integerForKey:@"statusWindowHorizontalPosition"];
- ITVerticalWindowPosition verticalPosition = [[NSUserDefaults standardUserDefaults] integerForKey:@"statusWindowVerticalPosition"];
- [_window setHorizontalPosition:horizontalPosition];
- [_window setVerticalPosition:verticalPosition];
-}
-
- (void)showSongInfoWindowWithSource:(ITMTRemotePlayerSource)source
title: (NSString *)title
album: (NSString *)album