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 /Source/SPWindowController.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 'Source/SPWindowController.m')
-rw-r--r-- | Source/SPWindowController.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m index aa208286..2d1f5058 100644 --- a/Source/SPWindowController.m +++ b/Source/SPWindowController.m @@ -110,6 +110,7 @@ enum { // Set up a new tab with the connection view as the identifier, add the view, and add it to the tab view NSTabViewItem *newItem = [[[NSTabViewItem alloc] initWithIdentifier:newTableDocument] autorelease]; + [newItem setColor:nil]; //cocoa defaults to [NSColor controlColor] but we want the tabstyle to choose a default color [newItem setView:[newTableDocument databaseView]]; [tabView addTabViewItem:newItem]; |