mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
feat(core): boolean to disable systemAppearanceChanged (theme) (#8827)
This commit is contained in:
@ -148,9 +148,14 @@ export function orientationChanged(rootView: View, newOrientation: 'portrait' |
|
||||
applyCssClass(rootModalView, ORIENTATION_CSS_CLASSES, newOrientationCssClass);
|
||||
});
|
||||
}
|
||||
export let autoSystemAppearanceChanged = true;
|
||||
|
||||
export function setAutoSystemAppearanceChanged(value: boolean) {
|
||||
autoSystemAppearanceChanged = value;
|
||||
}
|
||||
|
||||
export function systemAppearanceChanged(rootView: View, newSystemAppearance: 'dark' | 'light'): void {
|
||||
if (!rootView) {
|
||||
if (!rootView || !autoSystemAppearanceChanged) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user