summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXColor.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXColor.c')
-rw-r--r--macosx/tkMacOSXColor.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c
index 924eebf..7694b1d 100644
--- a/macosx/tkMacOSXColor.c
+++ b/macosx/tkMacOSXColor.c
@@ -280,11 +280,6 @@ SetCGColorComponents(
OSStatus err = noErr;
NSColor *bgColor, *color = nil;
CGFloat rgba[4] = {0, 0, 0, 1};
-#if MAC_OS_X_VERSION_MAX_ALLOWED < 101400
- NSInteger colorVariant;
- static CGFloat graphiteAccentRGBA[4] =
- {152.0 / 255, 152.0 / 255, 152.0 / 255, 1.0};
-#endif
if (!sRGB) {
sRGB = [NSColorSpace sRGBColorSpace];
@@ -372,10 +367,10 @@ SetCGColorComponents(
case 8:
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
if (@available(macOS 14, *)) {
+ color = [[NSColor controlAccentColor] colorUsingColorSpace:sRGB];
#else
- if (false) {
+ if(false) {
#endif
- color = [[NSColor controlAccentColor] colorUsingColorSpace:sRGB];
} else {
color = [[NSColor
colorForControlTint:[NSColor currentControlTint]]