mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Minor fixes
This commit is contained in:
@ -1,11 +1,10 @@
|
|||||||
import color = require("color");
|
import { Color } from "color";
|
||||||
import page = require("ui/page");
|
import { Page } from "ui/page";
|
||||||
import style = require("ui/styling/style");
|
import { View } from "ui/core/view";
|
||||||
import view = require("ui/core/view");
|
|
||||||
import { unsetValue } from "ui/core/properties";
|
import { unsetValue } from "ui/core/properties";
|
||||||
|
|
||||||
export function applyTap(args) {
|
export function applyTap(args) {
|
||||||
let page = <page.Page>(<view.View>args.object).page;
|
let page = <Page>(<View>args.object).page;
|
||||||
|
|
||||||
reset(page);
|
reset(page);
|
||||||
|
|
||||||
@ -14,16 +13,16 @@ export function applyTap(args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function applyTapOnStyledActionBar(args) {
|
export function applyTapOnStyledActionBar(args) {
|
||||||
let page = <page.Page>(<view.View>args.object).page;
|
let page = <Page>(<View>args.object).page;
|
||||||
|
|
||||||
reset(page);
|
reset(page);
|
||||||
|
|
||||||
page.actionBar.backgroundColor = new color.Color("#5DFC0A");
|
page.actionBar.backgroundColor = new Color("#5DFC0A");
|
||||||
page.css = "#test-element { " + args.object.tag + " }";
|
page.css = "#test-element { " + args.object.tag + " }";
|
||||||
}
|
}
|
||||||
|
|
||||||
export function applyTapWithHiddenActionBar(args) {
|
export function applyTapWithHiddenActionBar(args) {
|
||||||
let page = <page.Page>(<view.View>args.object).page;
|
let page = <Page>(<View>args.object).page;
|
||||||
|
|
||||||
reset(page);
|
reset(page);
|
||||||
|
|
||||||
@ -32,7 +31,7 @@ export function applyTapWithHiddenActionBar(args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function applyTapWithSpan(args) {
|
export function applyTapWithSpan(args) {
|
||||||
let page = <page.Page>(<view.View>args.object).page;
|
let page = <Page>(<View>args.object).page;
|
||||||
|
|
||||||
reset(page);
|
reset(page);
|
||||||
|
|
||||||
@ -41,17 +40,17 @@ export function applyTapWithSpan(args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function applyTapOnStyledActionBarAndSpan(args) {
|
export function applyTapOnStyledActionBarAndSpan(args) {
|
||||||
let page = <page.Page>(<view.View>args.object).page;
|
let page = <Page>(<View>args.object).page;
|
||||||
|
|
||||||
reset(page);
|
reset(page);
|
||||||
|
|
||||||
page.backgroundSpanUnderStatusBar = true;
|
page.backgroundSpanUnderStatusBar = true;
|
||||||
page.actionBar.backgroundColor = new color.Color("#E0115F");
|
page.actionBar.backgroundColor = new Color("#E0115F");
|
||||||
page.css = "#test-element { " + args.object.tag + " }";
|
page.css = "#test-element { " + args.object.tag + " }";
|
||||||
}
|
}
|
||||||
|
|
||||||
export function applyTapWithActionBarHiddenAndSpan(args) {
|
export function applyTapWithActionBarHiddenAndSpan(args) {
|
||||||
let page = <page.Page>(<view.View>args.object).page;
|
let page = <Page>(<View>args.object).page;
|
||||||
|
|
||||||
reset(page);
|
reset(page);
|
||||||
|
|
||||||
@ -60,7 +59,7 @@ export function applyTapWithActionBarHiddenAndSpan(args) {
|
|||||||
page.css = "#test-element { " + args.object.tag + " }";
|
page.css = "#test-element { " + args.object.tag + " }";
|
||||||
}
|
}
|
||||||
|
|
||||||
function reset(page: page.Page) {
|
function reset(page: Page) {
|
||||||
page.css = "";
|
page.css = "";
|
||||||
page.actionBarHidden = false;
|
page.actionBarHidden = false;
|
||||||
page.backgroundSpanUnderStatusBar = false;
|
page.backgroundSpanUnderStatusBar = false;
|
||||||
|
Reference in New Issue
Block a user