Fucked around some... MenuController still doesn't do much.
[MenuTunes.git] / MenuController.m
index 86d74c9..0ac43d1 100755 (executable)
 
 @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];
 }
 
 {
 }
 
+- (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