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 6f2b9db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions atom/browser/mac/atom_application.h
Expand Up @@ -33,6 +33,14 @@ typedef NS_ENUM(NSInteger, LABiometryType) {

#endif

typedef NSString* NSAppearanceName;

@interface NSApplication (MojaveSDK)
@property(readonly, strong) NSAppearance* effectiveAppearance;
@end

BASE_EXPORT extern NSAppearanceName const NSAppearanceNameDarkAqua;

// forward declare Access APIs
typedef NSString* AVMediaType NS_EXTENSIBLE_STRING_ENUM;

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 6f2b9db

Please sign in to comment.