mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fix: Make status-bar properties CSS again
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
import { Page as PageDefinition, NavigatedData, ShownModallyData } from "ui/page";
|
import { Page as PageDefinition, NavigatedData, ShownModallyData } from "ui/page";
|
||||||
import {
|
import {
|
||||||
ContentView, View, eachDescendant, Property, Color, isIOS, booleanConverter, resetCSSProperties
|
ContentView, View, eachDescendant, Property, CssProperty, Color, isIOS,
|
||||||
|
booleanConverter, resetCSSProperties, Style
|
||||||
} from "ui/content-view";
|
} from "ui/content-view";
|
||||||
import { Frame, topmost as topmostFrame, resolvePageFromEntry } from "ui/frame";
|
import { Frame, topmost as topmostFrame, resolvePageFromEntry } from "ui/frame";
|
||||||
import { ActionBar } from "ui/action-bar";
|
import { ActionBar } from "ui/action-bar";
|
||||||
@ -303,11 +304,12 @@ enableSwipeBackNavigationProperty.register(PageBase);
|
|||||||
/**
|
/**
|
||||||
* Property backing statusBarStyle.
|
* Property backing statusBarStyle.
|
||||||
*/
|
*/
|
||||||
export const statusBarStyleProperty = new Property<PageBase, "light" | "dark">({ name: "statusBarStyle" });
|
export const statusBarStyleProperty = new CssProperty<Style, "light" | "dark">({ name: "statusBarStyle", cssName: "status-bar-style" });
|
||||||
statusBarStyleProperty.register(PageBase);
|
statusBarStyleProperty.register(Style);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property backing androidStatusBarBackground.
|
* Property backing androidStatusBarBackground.
|
||||||
*/
|
*/
|
||||||
export const androidStatusBarBackgroundProperty = new Property<PageBase, Color>({ name: "androidStatusBarBackground", equalityComparer: Color.equals, valueConverter: (v) => new Color(v) });
|
export const androidStatusBarBackgroundProperty = new CssProperty<Style, Color>({ name: "androidStatusBarBackground", cssName:"android-status-bar-background",
|
||||||
androidStatusBarBackgroundProperty.register(PageBase);
|
equalityComparer: Color.equals, valueConverter: (v) => new Color(v) });
|
||||||
|
androidStatusBarBackgroundProperty.register(Style);
|
Reference in New Issue
Block a user