Skip to content

Commit

Permalink
Modifications merged. Mac dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlamhauge committed Dec 16, 2018
2 parents 410f2dd + 0b8bc56 commit aaa9a74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions app/data/Info.plist
Expand Up @@ -45,6 +45,8 @@
</array>
</dict>
</array>
<key>NSRequiresAquaSystemAppearance</key>
<string>True</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
Expand Down
11 changes: 6 additions & 5 deletions core_lib/src/external/macosx/macosxnative.mm
Expand Up @@ -28,11 +28,12 @@ void setMouseCoalescingEnabled(bool enabled)

bool isDarkMode()
{
NSAppearance* apperance = NSAppearance.currentAppearance;

#ifdef __MAC_10_14
return apperance.name == NSAppearanceNameDarkAqua;
#endif
// #ifdef __MAC_10_14
// #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_14
// NSAppearance* apperance = NSAppearance.currentAppearance;
// return apperance.name == NSAppearanceNameDarkAqua;
// #endif
// #endif

return false;
}
Expand Down

0 comments on commit aaa9a74

Please sign in to comment.