Skip to content

Commit

Permalink
fix: dark mode tray opacity on Mojave
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 27, 2019
1 parent 0d5d54c commit d051a58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion atom/browser/mac/atom_application.h
Expand Up @@ -10,13 +10,17 @@
#import <LocalAuthentication/LocalAuthentication.h>

// Forward Declare Appearance APIs
@interface NSApplication (HighSierraSDK)
typedef NSString* NSAppearanceName;

@interface NSApplication (MojaveSDK)
@property(copy, readonly)
NSAppearance* effectiveAppearance API_AVAILABLE(macosx(10.14));
@property(copy, readonly) NSAppearance* appearance API_AVAILABLE(macosx(10.14));
- (void)setAppearance:(NSAppearance*)appearance API_AVAILABLE(macosx(10.14));
@end

BASE_EXPORT extern NSAppearanceName const NSAppearanceNameDarkAqua;

#if !defined(MAC_OS_X_VERSION_10_13_2)

// forward declare Touch ID APIs
Expand Down
1 change: 0 additions & 1 deletion atom/browser/ui/tray_icon_cocoa.mm
Expand Up @@ -7,7 +7,6 @@
#include "atom/browser/mac/atom_application.h"
#include "atom/browser/ui/cocoa/NSString+ANSI.h"
#include "atom/browser/ui/cocoa/atom_menu_controller.h"
#include "base/mac/sdk_forward_declarations.h"
#include "base/strings/sys_string_conversions.h"
#include "ui/display/screen.h"
#include "ui/events/cocoa/cocoa_event_utils.h"
Expand Down

0 comments on commit d051a58

Please sign in to comment.