From 2a343684650d54d5b4901b8399172957868cba1d Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Wed, 6 Nov 2019 12:07:34 +0000 Subject: [PATCH] feat(application): add system appearance changed event to typings (#8034) --- nativescript-core/application/application.d.ts | 5 +++++ nativescript-core/ui/enums/enums.d.ts | 18 +++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/nativescript-core/application/application.d.ts b/nativescript-core/application/application.d.ts index 0a1bd4e54..ddab72616 100644 --- a/nativescript-core/application/application.d.ts +++ b/nativescript-core/application/application.d.ts @@ -52,6 +52,11 @@ export const lowMemoryEvent: string; */ export const orientationChangedEvent: string; +/** + * String value used when hooking to systemAppearanceChanged event. + */ +export const systemAppearanceChangedEvent: string; + /** * Event data containing information for the application events. */ diff --git a/nativescript-core/ui/enums/enums.d.ts b/nativescript-core/ui/enums/enums.d.ts index c9006da08..7181606b3 100644 --- a/nativescript-core/ui/enums/enums.d.ts +++ b/nativescript-core/ui/enums/enums.d.ts @@ -641,7 +641,7 @@ export module AnimationCurve { } /** - * @deprecated use `UserInterfaceStyle` instead. + * @deprecated use `SystemAppearance` instead. * * Specifies the types of the status bar style. */ @@ -657,8 +657,24 @@ export module StatusBarStyle { export const dark: string; } +/** + * Specifies the types of the system appearance. + */ +export module SystemAppearance { + /** + * The light system appearance. + */ + export const light: string; + + /** + * The dark system appearance. + */ + export const dark: string; +} /** + * @deprecated use `SystemAppearance` instead. + * * Specifies the types of the user interface style. */ export module UserInterfaceStyle {