void ReleaseDesignerOutlets()
 {
     if (BoyButton != null)
     {
         BoyButton.Dispose();
         BoyButton = null;
     }
     if (BubbleImg != null)
     {
         BubbleImg.Dispose();
         BubbleImg = null;
     }
     if (BubbleImgTopOffset != null)
     {
         BubbleImgTopOffset.Dispose();
         BubbleImgTopOffset = null;
     }
     if (ContinueBtn != null)
     {
         ContinueBtn.Dispose();
         ContinueBtn = null;
     }
     if (GirlButton != null)
     {
         GirlButton.Dispose();
         GirlButton = null;
     }
     if (Input != null)
     {
         Input.Dispose();
         Input = null;
     }
     if (NavBarBlendView != null)
     {
         NavBarBlendView.Dispose();
         NavBarBlendView = null;
     }
     if (NavBarBlendViewHeightConstraint != null)
     {
         NavBarBlendViewHeightConstraint.Dispose();
         NavBarBlendViewHeightConstraint = null;
     }
     if (NickName != null)
     {
         NickName.Dispose();
         NickName = null;
     }
     if (SwitchSignUpType != null)
     {
         SwitchSignUpType.Dispose();
         SwitchSignUpType = null;
     }
     if (ThemeSelectorContainerView != null)
     {
         ThemeSelectorContainerView.Dispose();
         ThemeSelectorContainerView = null;
     }
 }
        void ApplyCurrentTheme()
        {
            NavBarBlendView.BackgroundColor = Theme.Current.MainColor;

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

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

            SwitchSignUpType.SetTitleColor(Theme.Current.MainSaturatedColor, UIControlState.Normal);
            SwitchSignUpType.Font = Theme.Current.SausageSwitchIdentityButtonFont;
            SwitchSignUpType.Layer.BorderColor = Theme.Current.MainSaturatedColor.CGColor;

            BubbleImg.Image = Theme.Current.ApplyEffects(Theme.Current.SignUpIcon);
        }
Example #3
0
        void UpdateText()
        {
            switch (viewModel.Identity)
            {
            case SignUpIdentity.Email:
                Input.Placeholder  = Strings.LoginScreen.InputEmailPlaceholder;
                Input.KeyboardType = UIKeyboardType.EmailAddress;
                SwitchSignUpType.SetTitle(Strings.LoginScreen.UseMobile, UIControlState.Normal);
                break;

            case SignUpIdentity.Mobile:
                Input.Placeholder  = Strings.LoginScreen.InputMobilePlaceholder;
                Input.KeyboardType = UIKeyboardType.PhonePad;
                SwitchSignUpType.SetTitle(Strings.LoginScreen.UseEmail, UIControlState.Normal);
                break;
            }

            // Change keyboard type
            resigner.AdjustKeyboard();
        }
Example #4
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.MainGradientStartColor.CGColor, Theme.Current.MainGradientEndColor.CGColor, SwitchSignUpType.Bounds.Size));

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

            BubbleImg.Image     = Theme.Current.SignUpIcon.ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate);
            BubbleImg.TintColor = UIColor.FromPatternImage(ImageUtils.GetGradientImage(
                                                               Theme.Current.MainGradientStartColor.CGColor, Theme.Current.MainGradientEndColor.CGColor, BubbleImg.Image.Size));
        }
Example #5
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));
        }