Files
2016-12-20 10:55:49 +02:00

16 lines
537 B
TypeScript

import { StackLayout } from "ui/layouts/stack-layout";
import { View, unsetValue, eachDescendant } from "ui/core/view";
export function resetStyles(args) {
var stackLayout = <StackLayout>args.object.parent;
eachDescendant(stackLayout, function (v: View) {
v.style.fontFamily = unsetValue;
v.style.fontSize = unsetValue;
v.style.fontStyle = unsetValue;
v.style.fontWeight = unsetValue;
v.style.color = unsetValue;
v.style.textAlignment = unsetValue;
return true;
});
}