From 41137218db211ea44ed2eb692f4befcc4b07066a Mon Sep 17 00:00:00 2001 From: Dzmitry Neviadomski Date: Fri, 24 Feb 2023 01:14:40 +0300 Subject: [PATCH] feat: Use updated minimal NSColorWell style for Groups. Only on macOS Ventura (13.0+), as AppKit changes were introduced here. Somewhat fixes #5011 Signed-off-by: Dzmitry Neviadomski --- macosx/GroupsPrefsController.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/macosx/GroupsPrefsController.mm b/macosx/GroupsPrefsController.mm index 448e62b9dff..16e7e9adf50 100644 --- a/macosx/GroupsPrefsController.mm +++ b/macosx/GroupsPrefsController.mm @@ -41,6 +41,11 @@ - (void)awakeFromNib [self.fSelectedColorView addObserver:self forKeyPath:@"color" options:0 context:NULL]; + if (@available(macOS 13.0, *)) + { + self.fSelectedColorView.colorWellStyle = NSColorWellStyleMinimal; + } + [self updateSelectedGroup]; }