Esempio n. 1
0
            public override void ApplyTo(FlatButton button)
            {
                base.ApplyTo(button);

                if (button == null)
                {
                    return;
                }

                button.SetFillColor(GetColor(x => x.ColorBackgroundNormal, Theme.CompanyColor), UIControlState.Normal);
                button.SetFillColor(GetColor(x => x.ColorBackgroundSelected, Theme.CompanyColor), UIControlState.Selected);
                button.SetFillColor(GetColor(x => x.ColorBackgroundSelected, Theme.CompanyColor), UIControlState.Highlighted);

                button.SetTitleColor(GetColor(x => x.ColorTextNormal, Theme.LabelTextColor), UIControlState.Normal);
                button.SetTitleColor(GetColor(x => x.ColorTextSelected, Theme.LabelTextColor.ColorWithAlpha(0.5f)), UIControlState.Selected);
                button.SetTitleColor(GetColor(x => x.ColorTextSelected, Theme.LabelTextColor.ColorWithAlpha(0.5f)), UIControlState.Highlighted);

                button.SetStrokeColor(GetColor(x => x.ColorBorder, Theme.LabelTextColor));
            }
Esempio n. 2
0
            public override void ApplyTo(FlatButton button)
            {
                base.ApplyTo(button);

                if (button == null)
                {
                    return;
                }

                button.SetFillColor(GetColor(x => x.ColorBackgroundNormal, UIColor.Clear), UIControlState.Normal);
                button.SetFillColor(GetColor(x => x.ColorBackgroundSelected, UIColor.Blue), UIControlState.Selected);
                button.SetFillColor(GetColor(x => x.ColorBackgroundSelected, UIColor.Blue), UIControlState.Highlighted);

                button.SetTitleColor(GetColor(x => x.ColorTextNormal, UIColor.Blue), UIControlState.Normal);
                button.SetTitleColor(GetColor(x => x.ColorTextSelected, UIColor.White), UIControlState.Selected);
                button.SetTitleColor(GetColor(x => x.ColorTextSelected, UIColor.White), UIControlState.Highlighted);

                button.SetStrokeColor(GetColor(x => x.ColorBorder, UIColor.Blue));
            }