summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-11-13 07:16:17 +0000
committerritsuka <[email protected]>2014-11-13 07:16:17 +0000
commit1a09abd0c948542884edf019a26f7aeb28825647 (patch)
tree5ad319f3eb5a73b38b18d57a48b13a8a182c1d5b /macosx/PictureController.m
parent3db705fd761c286f8ff96dbe0687b44375756289 (diff)
MacGui: revert the picture settings panel appearance to aqua on Yosemite.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6514 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.m')
-rw-r--r--macosx/PictureController.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/PictureController.m b/macosx/PictureController.m
index cfb34049b..2c225eb70 100644
--- a/macosx/PictureController.m
+++ b/macosx/PictureController.m
@@ -155,6 +155,14 @@ static void *HBPictureControllerContext = &HBPictureControllerContext;
{
[[self window] setExcludedFromWindowsMenu:YES];
+ // Set the panel appearance explicity to aqua.
+ // can be removed when Apple will fix UI appearance on Yosemite.
+ if (NSClassFromString(@"NSVisualEffectView")) {
+ [self.window setAppearance:[NSClassFromString(@"NSAppearance") appearanceNamed:@"NSAppearanceNameAqua"]];
+ }
+
+ [[self window] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
+
/* Populate the user interface */
[fWidthStepper setValueWraps: NO];
[fHeightStepper setValueWraps: NO];