Files
hshristov 3a0cc32ff2 Fix for Button padding in android.
Fix for types - isString and isNumber.
Modified several tests to pass on VS Emulator for Android.
Fix page background to be applied in onLoaded method.
Enhancements for dependency-observable - it is now possible to add defaultValueGetter function to extract default value for a property. It can also be cached or not.
Remove android_constants because they are per theme and we cannot use them safely.
Fix for SearchBar reseColorProperty method.
2015-08-28 16:59:52 +03:00

23 lines
1.0 KiB
TypeScript

import stack = require("ui/layouts/stack-layout");
import style = require("ui/styling/style");
import view = require("ui/core/view");
export function resetStyles(args) {
var stackLayout = <stack.StackLayout>args.object.parent.parent;
view.eachDescendant(stackLayout, function (v: view.View) {
v.style._resetValue(style.fontFamilyProperty);
v.style._resetValue(style.fontSizeProperty);
v.style._resetValue(style.fontStyleProperty);
v.style._resetValue(style.fontWeightProperty);
v.style._resetValue(style.colorProperty);
v.style._resetValue(style.textAlignmentProperty);
v.style._resetValue(style.paddingLeftProperty);
v.style._resetValue(style.paddingRightProperty);
v.style._resetValue(style.paddingTopProperty);
v.style._resetValue(style.paddingBottomProperty);
v.style._resetValue(style.borderColorProperty);
v.style._resetValue(style.borderWidthProperty);
v.style._resetValue(style.borderRadiusProperty);
return true;
});
}