diff options
author | dmoagx <post@wickenrode.com> | 2013-10-23 00:34:52 +0000 |
---|---|---|
committer | dmoagx <post@wickenrode.com> | 2013-10-23 00:34:52 +0000 |
commit | b3b87db97d6b607ed78a671115e3e56a76077503 (patch) | |
tree | 4b8241025d09961037dcadfc8adffe9f4ee28741 /Frameworks/PSMTabBar/PSMTabBarCell.m | |
parent | 546f436290721d208381769bef646a8ab9d42212 (diff) | |
download | sequelpro-b3b87db97d6b607ed78a671115e3e56a76077503.tar.gz sequelpro-b3b87db97d6b607ed78a671115e3e56a76077503.tar.bz2 sequelpro-b3b87db97d6b607ed78a671115e3e56a76077503.zip |
* 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
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabBarCell.m')
-rw-r--r-- | Frameworks/PSMTabBar/PSMTabBarCell.m | 14 |
1 files changed, 14 insertions, 0 deletions
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 |