mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix-next(css-class): set class before showing window (#8022)
This commit is contained in:
@@ -300,14 +300,18 @@ class IOSApplication implements IOSApplicationDefinition {
|
|||||||
// setup view as styleScopeHost
|
// setup view as styleScopeHost
|
||||||
rootView._setupAsRootView({});
|
rootView._setupAsRootView({});
|
||||||
}
|
}
|
||||||
|
|
||||||
setViewControllerView(rootView);
|
setViewControllerView(rootView);
|
||||||
|
|
||||||
const haveController = this._window.rootViewController !== null;
|
const haveController = this._window.rootViewController !== null;
|
||||||
this._window.rootViewController = controller;
|
this._window.rootViewController = controller;
|
||||||
|
|
||||||
|
setRootViewSystemAppearanceCssClass(rootView);
|
||||||
|
|
||||||
if (!haveController) {
|
if (!haveController) {
|
||||||
this._window.makeKeyAndVisible();
|
this._window.makeKeyAndVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
setRootViewSystemAppearanceCssClass(rootView);
|
|
||||||
rootView.on(iosView.traitCollectionColorAppearanceChangedEvent, () => {
|
rootView.on(iosView.traitCollectionColorAppearanceChangedEvent, () => {
|
||||||
const userInterfaceStyle = controller.traitCollection.userInterfaceStyle;
|
const userInterfaceStyle = controller.traitCollection.userInterfaceStyle;
|
||||||
const newSystemAppearance = getSystemAppearanceValue(userInterfaceStyle);
|
const newSystemAppearance = getSystemAppearanceValue(userInterfaceStyle);
|
||||||
|
|||||||
Reference in New Issue
Block a user