refactor: set appLevelAppearance prop on systemPreferences (#18477)

* refactor: set appLevelAppearance prop on systemPreferences

* ensure backwards compat is tested
This commit is contained in:
Shelley Vohr 2019-05-30 17:12:46 -07:00 committed by GitHub
parent ac35f41e8d
commit 1e3e5a6619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 46 additions and 10 deletions

View file

@ -106,6 +106,9 @@ void SystemPreferences::BuildPrototype(
&SystemPreferences::GetAppLevelAppearance)
.SetMethod("setAppLevelAppearance",
&SystemPreferences::SetAppLevelAppearance)
.SetProperty("appLevelAppearance",
&SystemPreferences::GetAppLevelAppearance,
&SystemPreferences::SetAppLevelAppearance)
.SetMethod("getSystemColor", &SystemPreferences::GetSystemColor)
.SetMethod("canPromptTouchID", &SystemPreferences::CanPromptTouchID)
.SetMethod("promptTouchID", &SystemPreferences::PromptTouchID)