Skip to content

Commit

Permalink
feat: Use updated minimal NSColorWell style for Groups.
Browse files Browse the repository at this point in the history
Only on macOS Ventura (13.0+), as AppKit changes were introduced here.

Somewhat fixes #5011

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
  • Loading branch information
nevack committed Feb 23, 2023
1 parent 450e98f commit 4113721
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions macosx/GroupsPrefsController.mm
Expand Up @@ -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];
}

Expand Down

0 comments on commit 4113721

Please sign in to comment.