Skip to content

Commit 2a34368

Browse files
vchimevMartoYankov
authored andcommitted
feat(application): add system appearance changed event to typings (#8034)
1 parent 04c6539 commit 2a34368

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

‎nativescript-core/application/application.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ export const lowMemoryEvent: string;
5252
*/
5353
export const orientationChangedEvent: string;
5454

55+
/**
56+
* String value used when hooking to systemAppearanceChanged event.
57+
*/
58+
export const systemAppearanceChangedEvent: string;
59+
5560
/**
5661
* Event data containing information for the application events.
5762
*/

‎nativescript-core/ui/enums/enums.d.ts‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ export module AnimationCurve {
641641
}
642642

643643
/**
644-
* @deprecated use `UserInterfaceStyle` instead.
644+
* @deprecated use `SystemAppearance` instead.
645645
*
646646
* Specifies the types of the status bar style.
647647
*/
@@ -657,8 +657,24 @@ export module StatusBarStyle {
657657
export const dark: string;
658658
}
659659

660+
/**
661+
* Specifies the types of the system appearance.
662+
*/
663+
export module SystemAppearance {
664+
/**
665+
* The light system appearance.
666+
*/
667+
export const light: string;
668+
669+
/**
670+
* The dark system appearance.
671+
*/
672+
export const dark: string;
673+
}
660674

661675
/**
676+
* @deprecated use `SystemAppearance` instead.
677+
*
662678
* Specifies the types of the user interface style.
663679
*/
664680
export module UserInterfaceStyle {

0 commit comments

Comments
 (0)