Fucked around some... MenuController still doesn't do much.
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Thu, 1 May 2003 04:07:46 +0000 (04:07 +0000)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Thu, 1 May 2003 04:07:46 +0000 (04:07 +0000)
AquaPaused.tif [new file with mode: 0755]
AquaPlaying.tiff [new file with mode: 0755]
GraphitePaused.tiff [new file with mode: 0755]
GraphitePlaying.tiff [new file with mode: 0755]
MenuController.m

diff --git a/AquaPaused.tif b/AquaPaused.tif
new file mode 100755 (executable)
index 0000000..be90a5a
Binary files /dev/null and b/AquaPaused.tif differ
diff --git a/AquaPlaying.tiff b/AquaPlaying.tiff
new file mode 100755 (executable)
index 0000000..24f564e
Binary files /dev/null and b/AquaPlaying.tiff differ
diff --git a/GraphitePaused.tiff b/GraphitePaused.tiff
new file mode 100755 (executable)
index 0000000..ba84bdd
Binary files /dev/null and b/GraphitePaused.tiff differ
diff --git a/GraphitePlaying.tiff b/GraphitePlaying.tiff
new file mode 100755 (executable)
index 0000000..4c21d68
Binary files /dev/null and b/GraphitePlaying.tiff differ
index 86d74c9..0ac43d1 100755 (executable)
 
 @implementation MenuController
 
 
 @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.
 - (NSMenu *)menu
 {
     // dynamically create menu from supplied data and layout information.
@@ -67,6 +75,7 @@
 
 - (void)updateMenu
 {
 
 - (void)updateMenu
 {
+    
     [_currentMenu update];
 }
 
     [_currentMenu update];
 }
 
 {
 }
 
 {
 }
 
+- (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
 @end