From b7a32153d828f4002861b7c46f9089635836ad1c Mon Sep 17 00:00:00 2001 From: vakrilov Date: Tue, 7 Mar 2017 15:27:20 +0200 Subject: [PATCH] Fix: Make status-bar properties CSS again --- tns-core-modules/ui/page/page-common.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tns-core-modules/ui/page/page-common.ts b/tns-core-modules/ui/page/page-common.ts index df680f475..4906f1db4 100644 --- a/tns-core-modules/ui/page/page-common.ts +++ b/tns-core-modules/ui/page/page-common.ts @@ -1,6 +1,7 @@ import { Page as PageDefinition, NavigatedData, ShownModallyData } from "ui/page"; import { - ContentView, View, eachDescendant, Property, Color, isIOS, booleanConverter, resetCSSProperties + ContentView, View, eachDescendant, Property, CssProperty, Color, isIOS, + booleanConverter, resetCSSProperties, Style } from "ui/content-view"; import { Frame, topmost as topmostFrame, resolvePageFromEntry } from "ui/frame"; import { ActionBar } from "ui/action-bar"; @@ -303,11 +304,12 @@ enableSwipeBackNavigationProperty.register(PageBase); /** * Property backing statusBarStyle. */ -export const statusBarStyleProperty = new Property({ name: "statusBarStyle" }); -statusBarStyleProperty.register(PageBase); +export const statusBarStyleProperty = new CssProperty({ name: "statusBarStyle", cssName: "status-bar-style" }); +statusBarStyleProperty.register(Style); /** * Property backing androidStatusBarBackground. */ -export const androidStatusBarBackgroundProperty = new Property({ name: "androidStatusBarBackground", equalityComparer: Color.equals, valueConverter: (v) => new Color(v) }); -androidStatusBarBackgroundProperty.register(PageBase); \ No newline at end of file +export const androidStatusBarBackgroundProperty = new CssProperty({ name: "androidStatusBarBackground", cssName:"android-status-bar-background", + equalityComparer: Color.equals, valueConverter: (v) => new Color(v) }); +androidStatusBarBackgroundProperty.register(Style); \ No newline at end of file