Mercurial > minori
diff src/sys/osx/dark_theme.cc @ 195:975a3f0965e2
locale: only attempt loading locales after QApplication is init'd
also the general application stuff and anime list is separated in settings
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 07 Dec 2023 11:14:01 -0500 |
parents | 8548dc425697 |
children | f0ff06a45c42 |
line wrap: on
line diff
--- a/src/sys/osx/dark_theme.cc Thu Dec 07 03:17:05 2023 -0500 +++ b/src/sys/osx/dark_theme.cc Thu Dec 07 11:14:01 2023 -0500 @@ -4,7 +4,6 @@ #include <objc/message.h> #include <CoreFoundation/CoreFoundation.h> -#include <AvailabilityMacros.h> #include <QOperatingSystemVersion> @@ -19,10 +18,10 @@ static CFStringRef NSAppearanceNameAqua = nullptr; static CFStringRef NSAppearanceNameDarkAqua = nullptr; -static const CFStringRef kLaunchServicesBundleID = CFSTR("com.apple.AppKit"); +static const CFStringRef kAppKitBundleID = CFSTR("com.apple.AppKit"); bool RetrieveAppearanceNames() { - CFBundleRef appkit_bundle = CFBundleGetBundleWithIdentifier(kLaunchServicesBundleID); + CFBundleRef appkit_bundle = CFBundleGetBundleWithIdentifier(kAppKitBundleID); if (!appkit_bundle) return false;