diff options
author | avenjamin <avenjamin@gmail.com> | 2010-06-14 15:22:43 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2010-06-14 15:22:43 +0000 |
commit | 8bb33b515e95606566e8286b5714e7e3be01ffad (patch) | |
tree | ac72bbe840328426af5fb7e08410f3a89f727794 /Frameworks/PSMTabBar/PSMTabBarControl.m | |
parent | f2e7ed60ebafc4ff0e2f1155116153f0d9e79d2e (diff) | |
download | sequelpro-8bb33b515e95606566e8286b5714e7e3be01ffad.tar.gz sequelpro-8bb33b515e95606566e8286b5714e7e3be01ffad.tar.bz2 sequelpro-8bb33b515e95606566e8286b5714e7e3be01ffad.zip |
Initial stage of re styling the tab bar to actually look half decent.
- Change line 373 of PSMTabBarControl to "SequelPro" to see new tabs.
- The drawing of the tab edges needs to be redone on the very edge of each tab instead of being inset by a number pixels to resolve a few issues.
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabBarControl.m')
-rw-r--r-- | Frameworks/PSMTabBar/PSMTabBarControl.m | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarControl.m b/Frameworks/PSMTabBar/PSMTabBarControl.m index 9242f8a1..5b72f1e6 100644 --- a/Frameworks/PSMTabBar/PSMTabBarControl.m +++ b/Frameworks/PSMTabBar/PSMTabBarControl.m @@ -16,6 +16,7 @@ #import "PSMUnifiedTabStyle.h" #import "PSMCardTabStyle.h" #import "PSMAdiumTabStyle.h" +#import "PSMSequelProTabStyle.h" #import "PSMTabDragAssistant.h" #import "PSMTabBarController.h" @@ -367,22 +368,32 @@ - (void)setStyleNamed:(NSString *)name { id <PSMTabStyle> newStyle; -/* - if ([name isEqualToString:@"Aqua"]) { - newStyle = [[PSMAquaTabStyle alloc] init]; - } else if ([name isEqualToString:@"Unified"]) { - newStyle = [[PSMUnifiedTabStyle alloc] init]; - } else if ([name isEqualToString:@"Adium"]) { - newStyle = [[PSMAdiumTabStyle alloc] init]; + + // Hardcode style to Metal + name = @"Metal"; + + if ([name isEqualToString:@"Aqua"]) { + //newStyle = [[PSMAquaTabStyle alloc] init]; + + } else if ([name isEqualToString:@"Unified"]) { + //newStyle = [[PSMUnifiedTabStyle alloc] init]; + + } else if ([name isEqualToString:@"Adium"]) { + //newStyle = [[PSMAdiumTabStyle alloc] init]; + } else if ([name isEqualToString:@"Card"]) { - newStyle = [[PSMCardTabStyle alloc] init]; - } else { -*/ - newStyle = [[PSMMetalTabStyle alloc] init]; -/* - } -*/ - + //newStyle = [[PSMCardTabStyle alloc] init]; + + } else if ([name isEqualToString:@"Metal"]) { + newStyle = [[PSMMetalTabStyle alloc] init]; + + } else if ([name isEqualToString:@"SequelPro"]) { + newStyle = [[PSMSequelProTabStyle alloc] init]; + + } else { + newStyle = [[PSMMetalTabStyle alloc] init]; + } + [self setStyle:newStyle]; [newStyle release]; } |