From 392c1ae954cedf5f6aac06acf43b15ec40de1fe0 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Tue, 30 Oct 2018 20:53:10 +0700 Subject: [PATCH] =?UTF-8?q?Use=20separatorColor=20dividers=20in=20Open=20Q?= =?UTF-8?q?uickly=20(=E2=8C=98T)=20and=20friends?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not too fond of how this looks in Dark Mode but I think it’s better than the previous colors, which stem from back when the window had more of a 3D look. --- Applications/TextMate/src/Favorites.mm | 4 ++-- Frameworks/OakFilterList/src/BundleItemChooser.mm | 4 ++-- Frameworks/OakFilterList/src/FileChooser.mm | 4 ++-- Frameworks/OakFilterList/src/SymbolChooser.mm | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Applications/TextMate/src/Favorites.mm b/Applications/TextMate/src/Favorites.mm index 9836f237..79a524c9 100644 --- a/Applications/TextMate/src/Favorites.mm +++ b/Applications/TextMate/src/Favorites.mm @@ -69,8 +69,8 @@ static NSUInteger const kOakSourceIndexFavorites = 1; OakScopeBarView* scopeBar = [OakScopeBarView new]; scopeBar.labels = self.sourceListLabels; - OakBackgroundFillView* topDivider = OakCreateHorizontalLine([NSColor darkGrayColor], [NSColor colorWithCalibratedWhite:0.551 alpha:1]); - OakBackgroundFillView* bottomDivider = OakCreateHorizontalLine([NSColor grayColor], [NSColor lightGrayColor]); + OakBackgroundFillView* topDivider = OakCreateHorizontalLine(OakBackgroundFillViewStyleDivider); + OakBackgroundFillView* bottomDivider = OakCreateHorizontalLine(OakBackgroundFillViewStyleDivider); NSDictionary* views = @{ @"scopeBar": scopeBar, diff --git a/Frameworks/OakFilterList/src/BundleItemChooser.mm b/Frameworks/OakFilterList/src/BundleItemChooser.mm index 061b197e..c5880e17 100644 --- a/Frameworks/OakFilterList/src/BundleItemChooser.mm +++ b/Frameworks/OakFilterList/src/BundleItemChooser.mm @@ -471,8 +471,8 @@ static std::vector relevant_items_in_scope (scope::context_t self.scopeBar = [OakScopeBarView new]; self.scopeBar.labels = _sourceListLabels; - self.topDivider = OakCreateHorizontalLine([NSColor darkGrayColor], [NSColor colorWithCalibratedWhite:0.551 alpha:1]), - self.bottomDivider = OakCreateHorizontalLine([NSColor grayColor], [NSColor lightGrayColor]); + self.topDivider = OakCreateHorizontalLine(OakBackgroundFillViewStyleDivider), + self.bottomDivider = OakCreateHorizontalLine(OakBackgroundFillViewStyleDivider); self.selectButton = OakCreateButton(@"Select"); self.selectButton.font = [NSFont messageFontOfSize:[NSFont smallSystemFontSize]]; diff --git a/Frameworks/OakFilterList/src/FileChooser.mm b/Frameworks/OakFilterList/src/FileChooser.mm index fb3ad890..a90ce0ce 100644 --- a/Frameworks/OakFilterList/src/FileChooser.mm +++ b/Frameworks/OakFilterList/src/FileChooser.mm @@ -264,8 +264,8 @@ static NSDictionary* globs_for_path (std::string const& path) _progressIndicator.controlSize = NSControlSizeSmall; _progressIndicator.displayedWhenStopped = NO; - OakBackgroundFillView* topDivider = OakCreateHorizontalLine([NSColor darkGrayColor], [NSColor colorWithCalibratedWhite:0.551 alpha:1]); - OakBackgroundFillView* bottomDivider = OakCreateHorizontalLine([NSColor grayColor], [NSColor lightGrayColor]); + OakBackgroundFillView* topDivider = OakCreateHorizontalLine(OakBackgroundFillViewStyleDivider); + OakBackgroundFillView* bottomDivider = OakCreateHorizontalLine(OakBackgroundFillViewStyleDivider); NSDictionary* views = @{ @"scopeBar": scopeBar, diff --git a/Frameworks/OakFilterList/src/SymbolChooser.mm b/Frameworks/OakFilterList/src/SymbolChooser.mm index 8c148990..d1651fa0 100644 --- a/Frameworks/OakFilterList/src/SymbolChooser.mm +++ b/Frameworks/OakFilterList/src/SymbolChooser.mm @@ -41,7 +41,7 @@ static SymbolChooserItem* CreateItem (OakDocument* document, text::pos_t const& { self.window.title = @"Jump to Symbol"; - OakBackgroundFillView* bottomDivider = OakCreateHorizontalLine([NSColor grayColor], [NSColor lightGrayColor]); + OakBackgroundFillView* bottomDivider = OakCreateHorizontalLine(OakBackgroundFillViewStyleDivider); NSDictionary* views = @{ @"scrollView": self.scrollView,