From ef7211a0934ab3b4007e65ca2265b6a21b712227 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Wed, 31 Oct 2018 00:07:14 +0700 Subject: [PATCH] Use semantic colors for find dialog history pop-up list --- Frameworks/OakAppKit/src/OakPasteboardSelector.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frameworks/OakAppKit/src/OakPasteboardSelector.mm b/Frameworks/OakAppKit/src/OakPasteboardSelector.mm index 290a121e..9588f0cc 100644 --- a/Frameworks/OakAppKit/src/OakPasteboardSelector.mm +++ b/Frameworks/OakAppKit/src/OakPasteboardSelector.mm @@ -48,6 +48,7 @@ static size_t line_count (std::string const& text) else { static NSDictionary* const attributes = @{ + NSForegroundColorAttributeName: [NSColor controlTextColor], NSParagraphStyleAttributeName: style, NSFontAttributeName: [NSFont controlContentFontOfSize:0], }; @@ -106,7 +107,7 @@ static size_t line_count (std::string const& text) { NSString* moreLinesText = [NSString stringWithFormat:@"%lu more line%s", [lines count] - [clippedLines count], ([lines count] - [clippedLines count]) != 1 ? "s" : ""]; NSDictionary* moreLinesAttributes = @{ - NSForegroundColorAttributeName: ([self isHighlighted] ? [NSColor whiteColor] : [NSColor lightGrayColor]), + NSForegroundColorAttributeName: ([self isHighlighted] ? [NSColor alternateSelectedControlTextColor] : [NSColor secondaryLabelColor]), NSFontAttributeName: [NSFont controlContentFontOfSize:[NSFont systemFontSizeForControlSize:NSControlSizeSmall]], }; NSAttributedString* moreLines = [[NSAttributedString alloc] initWithString:moreLinesText attributes:moreLinesAttributes];