void ApplyTheme()
        {
            View.BackgroundColor = Theme.Current.BackgroundColor;

            ThemeUtils.ApplyCurrentFont(Input);

            DescriptionTopLbl.Font      = Theme.Current.MessageFont;
            DescriptionTopLbl.TextColor = Theme.Current.DescriptionDimmedColor;

            DescriptionBottomlbl.Font      = Theme.Current.MessageFont;
            DescriptionBottomlbl.TextColor = Theme.Current.TitleTextColor;

            SausageButtons.ApplyCurrentTheme(ContinueBtn);
            SausageButtons.UpdateBackgoundColor(ContinueBtn);
        }
示例#2
0
        void ApplyCurrentTheme()
        {
            NavBarBlendView.BackgroundColor = Theme.Current.BackgroundColor;

            ThemeUtils.ApplyCurrentFont(Input);
            ThemeUtils.ApplyCurrentFont(NickName);

            SausageButtons.ApplyCurrentTheme(ContinueBtn);
            SausageButtons.UpdateBackgoundColor(ContinueBtn);

            SwitchSignUpType.Font = Theme.Current.SausageSwitchIdentityButtonFont;
            UIColor switchSignUpTypeColor = UIColor.FromPatternImage(ImageUtils.GetGradientImage(
                                                                         Theme.Current.MainGradientEndColor.CGColor, Theme.Current.MainGradientStartColor.CGColor, SwitchSignUpType.Bounds.Size));

            SwitchSignUpType.SetTitleColor(switchSignUpTypeColor, UIControlState.Normal);
            SwitchSignUpType.Layer.BorderColor = switchSignUpTypeColor.CGColor;

            GetStartedLabel.Font = Theme.Current.BadgeValueFont;
            CGSize getStartedLabelSize = GetStartedLabel.Text.StringSize(GetStartedLabel.Font);

            GetStartedLabel.TextColor = UIColor.FromPatternImage(ImageUtils.GetGradientImage(
                                                                     Theme.Current.MainGradientStartColor.CGColor, Theme.Current.MainGradientEndColor.CGColor, getStartedLabelSize));
        }