From f4957e259b41f2ce4f1eaac6e0f75b82d34995b7 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 18 Jun 2010 00:45:03 +0000 Subject: Enable the "Sequel Pro" tab style by default, and include the following fixes: - Fix display of the overflow menu - Improve tab spacing and internal layout - Improve tab names for documents to correctly show the database for background documents in additional cases - Update strings files --- Frameworks/PSMTabBar/PSMTabBarControl.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Frameworks/PSMTabBar/PSMTabBarControl.m') diff --git a/Frameworks/PSMTabBar/PSMTabBarControl.m b/Frameworks/PSMTabBar/PSMTabBarControl.m index 3650fc93..1023444d 100644 --- a/Frameworks/PSMTabBar/PSMTabBarControl.m +++ b/Frameworks/PSMTabBar/PSMTabBarControl.m @@ -141,7 +141,7 @@ _cellMaxWidth = 280; _cellOptimumWidth = 130; _tearOffStyle = PSMTabBarTearOffAlphaWindow; - style = [[PSMMetalTabStyle alloc] init]; + style = [[PSMSequelProTabStyle alloc] init]; // the overflow button/menu NSRect overflowButtonRect = NSMakeRect([self frame].size.width - [style rightMarginForTabBarControl] + 1, 0, [style rightMarginForTabBarControl] - 1, [self frame].size.height); @@ -369,9 +369,6 @@ { id newStyle; - // Hardcode style to Metal - name = @"Metal"; - if ([name isEqualToString:@"Aqua"]) { //newStyle = [[PSMAquaTabStyle alloc] init]; @@ -385,13 +382,13 @@ //newStyle = [[PSMCardTabStyle alloc] init]; } else if ([name isEqualToString:@"Metal"]) { - newStyle = [[PSMMetalTabStyle alloc] init]; + //newStyle = [[PSMMetalTabStyle alloc] init]; } else if ([name isEqualToString:@"SequelPro"]) { newStyle = [[PSMSequelProTabStyle alloc] init]; } else { - newStyle = [[PSMMetalTabStyle alloc] init]; + newStyle = [[PSMSequelProTabStyle alloc] init]; } [self setStyle:newStyle]; -- cgit v1.2.3