chore: remove deprecated systemPreferences APIs (#39696)

This commit is contained in:
David Sanders
2023-09-11 08:34:13 -07:00
committed by GitHub
parent d182794179
commit aceb432f45
9 changed files with 45 additions and 147 deletions

View File

@@ -377,6 +377,14 @@ if (process.platform === 'darwin') {
console.log(value);
const value2 = systemPreferences.getUserDefault('Foo', 'boolean');
console.log(value2);
// @ts-expect-error Removed API
console.log(systemPreferences.getAppLevelAppearance());
// @ts-expect-error Removed API
systemPreferences.setAppLevelAppearance('dark');
// @ts-expect-error Removed API
console.log(systemPreferences.appLevelAppearance);
// @ts-expect-error Removed API
console.log(systemPreferences.getColor('alternate-selected-control-text'));
}
// Create the window.