Commit 40f745de authored by Marvin Scholz's avatar Marvin Scholz

macOS: Use dark appearance for panel modals

parent 045e723d
......@@ -670,6 +670,14 @@
- (void)addProfile:(id)sender
{
/* show panel */
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpartial-availability"
#ifdef MAC_OS_X_VERSION_10_10
if (OSX_YOSEMITE_AND_HIGHER) {
[[_textfieldPanel window] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]];
}
#endif
#pragma clang diagnostic pop
[_textfieldPanel setTitleString:_NS("Duplicate current profile for a new profile")];
[_textfieldPanel setSubTitleString:_NS("Enter a name for the new profile:")];
[_textfieldPanel setCancelButtonString:_NS("Cancel")];
......@@ -728,6 +736,14 @@
- (void)removeProfile:(id)sender
{
/* show panel */
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpartial-availability"
#ifdef MAC_OS_X_VERSION_10_10
if (OSX_YOSEMITE_AND_HIGHER) {
[[_popupPanel window] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]];
}
#endif
#pragma clang diagnostic pop
[_popupPanel setTitleString:_NS("Remove a preset")];
[_popupPanel setSubTitleString:_NS("Select the preset you would like to remove:")];
[_popupPanel setOkButtonString:_NS("Remove")];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment