mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
feat(application): add system appearance changed event to typings (#8034)
This commit is contained in:

committed by
Martin Yankov

parent
04c65392a2
commit
2a34368465
@ -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.
|
||||
*/
|
||||
|
18
nativescript-core/ui/enums/enums.d.ts
vendored
18
nativescript-core/ui/enums/enums.d.ts
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user