Mercurial > minori
diff src/sys/osx/dark_theme.cc @ 196:f0ff06a45c42
date: use std::optional for values
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 07 Dec 2023 16:28:11 -0500 |
parents | 975a3f0965e2 |
children | 862d0d8619f6 |
line wrap: on
line diff
--- a/src/sys/osx/dark_theme.cc Thu Dec 07 11:14:01 2023 -0500 +++ b/src/sys/osx/dark_theme.cc Thu Dec 07 16:28:11 2023 -0500 @@ -48,6 +48,7 @@ if (!RetrieveAppearanceNames()) return false; + // NSArray* array = @[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]; CFArrayRef array = []() -> CFArrayRef { CFStringRef refs[] = {NSAppearanceNameAqua, NSAppearanceNameDarkAqua}; return CFArrayCreate(NULL, reinterpret_cast<const void**>(refs), 2, &kCFTypeArrayCallBacks);