From: Joseph Spiros Date: Thu, 1 May 2003 04:07:46 +0000 (+0000) Subject: Fucked around some... MenuController still doesn't do much. X-Git-Tag: v1.0~115 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/0ab2d6bec7f56617e1c7ed073168753d48d1707e Fucked around some... MenuController still doesn't do much. --- diff --git a/AquaPaused.tif b/AquaPaused.tif new file mode 100755 index 0000000..be90a5a Binary files /dev/null and b/AquaPaused.tif differ diff --git a/AquaPlaying.tiff b/AquaPlaying.tiff new file mode 100755 index 0000000..24f564e Binary files /dev/null and b/AquaPlaying.tiff differ diff --git a/GraphitePaused.tiff b/GraphitePaused.tiff new file mode 100755 index 0000000..ba84bdd Binary files /dev/null and b/GraphitePaused.tiff differ diff --git a/GraphitePlaying.tiff b/GraphitePlaying.tiff new file mode 100755 index 0000000..4c21d68 Binary files /dev/null and b/GraphitePlaying.tiff differ diff --git a/MenuController.m b/MenuController.m index 86d74c9..0ac43d1 100755 --- a/MenuController.m +++ b/MenuController.m @@ -11,6 +11,14 @@ @implementation MenuController +- (id)init +{ + if ( (self = [super init]) ) { + _menuLayout = [[NSMutableArray alloc] initWithCapacity: + } + return self; +} + - (NSMenu *)menu { // dynamically create menu from supplied data and layout information. @@ -67,6 +75,7 @@ - (void)updateMenu { + [_currentMenu update]; } @@ -74,4 +83,23 @@ { } +- (NSString *)systemUIColor +{ + NSDictionary *tmpDict; + NSNumber *tmpNumber; + if ( (tmpDict = [NSDictionary dictionaryWithContentsOfFile:[@"~/Library/Preferences/.GlobalPreferences.plist" stringByExpandingTildeInPath]]) ) { + if ( (tmpNumber = [tmpDict objectForKey:@"AppleAquaColorVariant"]) ) { + if ( ([tmpNumber intValue == 1) ) { + return @"Aqua"; + } else { + return @"Graphite"; + } + } else { + return @"Aqua"; + } + } else { + return @"Aqua"; + } +} + @end