Skip to content

Commit

Permalink
macOS: Use dark appearance for panel modals
Browse files Browse the repository at this point in the history
  • Loading branch information
ePirat committed Jun 24, 2017
1 parent 045e723 commit 40f745d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/gui/macosx/VLCVideoEffectsWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,14 @@ - (IBAction)profileSelectorAction:(id)sender
- (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")];
Expand Down Expand Up @@ -728,6 +736,14 @@ - (void)addProfile:(id)sender
- (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")];
Expand Down

0 comments on commit 40f745d

Please sign in to comment.