From d03e45b6330cf1e485bea16a6ee1911da3174903 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Fri, 12 Jun 2015 16:15:19 +0300 Subject: [PATCH] button styler removed --- ui/styling/stylers.android.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ui/styling/stylers.android.ts b/ui/styling/stylers.android.ts index 2c13cc85a..b31a9df1a 100644 --- a/ui/styling/stylers.android.ts +++ b/ui/styling/stylers.android.ts @@ -339,23 +339,6 @@ export class TextViewStyler implements definition.stylers.Styler { } } -export class ButtonStyler implements definition.stylers.Styler { - //Background methods - private static setButtonBackgroundProperty(view: view.View, newValue: any) { - (view.android).setBackgroundColor(newValue); - } - - private static resetButtonBackgroundProperty(view: view.View, nativeValue: any) { - (view.android).setBackgroundResource(constants.btn_default); - } - - public static registerHandlers() { - style.registerHandler(style.backgroundColorProperty, new stylersCommon.StylePropertyChangedHandler( - ButtonStyler.setButtonBackgroundProperty, - ButtonStyler.resetButtonBackgroundProperty), "Button"); - } -} - export class ActivityIndicatorStyler implements definition.stylers.Styler { //Visibility methods public static setActivityIndicatorVisibilityProperty(view: view.View, newValue: any) { @@ -506,7 +489,6 @@ export class BorderStyler implements definition.stylers.Styler { export function _registerDefaultStylers() { style.registerNoStylingClass("Frame"); DefaultStyler.registerHandlers(); - ButtonStyler.registerHandlers(); TextViewStyler.registerHandlers(); ActivityIndicatorStyler.registerHandlers(); SegmentedBarStyler.registerHandlers();