From b3b87db97d6b607ed78a671115e3e56a76077503 Mon Sep 17 00:00:00 2001 From: dmoagx Date: Wed, 23 Oct 2013 00:34:52 +0000 Subject: * This change adds basic tab coloring support for favorites - ** POC / NEEDS REVIEW ** Known issues: * There might be additional colors be shown when dragging tabs between windows * The color set might need fine tuning * Coloring of items in the favorite outline view is not yet handled --- Frameworks/PSMTabBar/PSMTabBarCell.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Frameworks/PSMTabBar/PSMTabBarCell.m') diff --git a/Frameworks/PSMTabBar/PSMTabBarCell.m b/Frameworks/PSMTabBar/PSMTabBarCell.m index 94b22021..ab330c5c 100644 --- a/Frameworks/PSMTabBar/PSMTabBarCell.m +++ b/Frameworks/PSMTabBar/PSMTabBarCell.m @@ -37,6 +37,7 @@ _countColor = nil; _isEdited = NO; _isPlaceholder = NO; + _backgroundColor = nil; } return self; } @@ -64,6 +65,7 @@ _count = 0; _countColor = nil; _isEdited = NO; + _backgroundColor = nil; if (value) { [self setCurrentStep:(kPSMTabDragAnimationSteps - 1)]; @@ -81,6 +83,7 @@ [_indicator removeFromSuperviewWithoutNeedingDisplay]; [_indicator release]; + [_backgroundColor release]; [super dealloc]; } @@ -307,6 +310,17 @@ //[_controlView update:[[self controlView] automaticallyAnimates]]; // binding notice is too fast } +- (NSColor *)backgroundColor { + return _backgroundColor; +} + +- (void)setBackgroundColor:(NSColor *)aColor +{ + [aColor retain]; + [_backgroundColor release]; + _backgroundColor = aColor; +} + #pragma mark - #pragma mark Bindings -- cgit v1.2.3