Example #1
0
        public static void SetTheme(this UITextField editText, IEditTextTheme theme)
        {
            SetTheme((UIView)editText, (IViewTheme)theme);

            if (theme.HintTextColor != null)
            {
            }

            if (theme.TextColor != null)
            {
                editText.TextColor = (UIColor)theme.TextColor;
            }

            if (theme.TextSize > 0)
            {
                editText.Font = FontStyleFromEnum(theme.TextStyle, (int)theme.TextSize);
            }

            if (theme.CornerRadius > 0)
            {
                editText.Layer.CornerRadius = theme.CornerRadius;
            }

            if (theme.BorderWidth > 0)
            {
                editText.Layer.BorderWidth = theme.BorderWidth;
            }

            if (theme.BorderColor != null)
            {
                editText.Layer.BorderColor = ((UIColor)theme.BorderColor).CGColor;
            }
        }
Example #2
0
 public void SetLastnameEditTextTheme(IEditTextTheme theme)
 {
     (Context as Activity)?.RunOnUiThread(() =>
     {
         _holder.LastnameEditText.SetTheme(theme);
     });
 }
Example #3
0
 public void SetEmailEditTextTheme(IEditTextTheme themeName)
 {
     (Context as Activity)?.RunOnUiThread(() =>
     {
         _holder.EmailEditText.SetTheme(themeName);
     });
 }
Example #4
0
 public void SetSkypeEditTextTheme(IEditTextTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _skypeTextField.SetTheme(theme);
     });
 }
 public void SetConfirmPasswordEditTextTheme(IEditTextTheme themeName)
 {
     InvokeOnMainThread(() =>
     {
         _confirmPassEditText.SetTheme(themeName);
     });
 }
Example #6
0
 public void SetConfirmPasswordEditTextTheme(IEditTextTheme themeName)
 {
     (Context as Activity)?.RunOnUiThread(() =>
     {
         _holder.ConfirmPasswordEditText.SetTheme(themeName);
     });
 }
Example #7
0
 public void SetPhoneEditTextTheme(IEditTextTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _phoneTextField.SetTheme(theme);
     });
 }
Example #8
0
 public void SetCountryEditTextTheme(IEditTextTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _countryTextField.SetTheme(theme);
     });
 }
Example #9
0
 public void SetEmailEditTextTheme(IEditTextTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _emailEditText.SetTheme(theme);
     });
 }
Example #10
0
 public void SetPhoneNumberEditTextTheme(IEditTextTheme themeName)
 {
     (Context as Activity)?.RunOnUiThread(() =>
     {
         _holder.PhoneNumberEditText.SetTheme(themeName);
     });
 }
Example #11
0
 public void SetCountryEditTextTheme(IEditTextTheme theme)
 {
     (Context as Activity)?.RunOnUiThread(() =>
     {
         _holder.CountryEditText.SetTheme(theme);
     });
 }
Example #12
0
 public void SetStatusEditTextTheme(IEditTextTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _statusTextField.SetTheme(theme);
     });
 }
Example #13
0
 public void SetNameEditTextTheme(IEditTextTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _nameTextField.SetTheme(theme);
     });
 }
Example #14
0
 public void SetPasswordEditTextTheme(IEditTextTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _passEditText.SetTheme(theme);
     });
 }
Example #15
0
 public void SetEmailEditTextTheme(IEditTextTheme theme)
 {
     InvokeOnMainThread(() =>
     {
         _emailTextField.SetTheme(theme);
         _emailTextField.TextColor = UIColor.Gray;
     });
 }
Example #16
0
 public ForgotPassStylesHolderIOS(ThemeParser <T> themeParser)
 {
     EmailEditTextTheme  = themeParser.GetThemeByName <IEditTextTheme>(_emailEditTextTheme);
     ViewTheme           = themeParser.GetThemeByName <IImageViewTheme>(_viewTheme);
     RecoveryButtonTheme = themeParser.GetThemeByName <IButtonTheme>(_recoveryButtonTheme);
     HeaderLabelTheme    = themeParser.GetThemeByName <ITextViewTheme>(_headerLabelTheme);
     LogoImageViewTheme  = themeParser.GetThemeByName <IImageViewTheme>(_logoImageViewTheme);
     BackButtonTheme     = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     EmailLabelTheme     = themeParser.GetThemeByName <ITextViewTheme>(_emailLabelTheme);
     EmailStateSuccess   = themeParser.GetThemeByName <IEditTextTheme>(_emailStateSuccess);
     EmailStateFail      = themeParser.GetThemeByName <IEditTextTheme>(_emailStateFail);
 }
Example #17
0
        public static void SetTheme(this EditText editText, IEditTextTheme theme)
        {
            SetTheme((TextView)editText, (ITextViewTheme)theme);

            if (theme.HintTextColor != null)
            {
                editText.SetHintTextColor((Color)theme.HintTextColor);
            }

            if (theme.BackgroundTint != null)
            {
                editText.Background.SetColorFilter((Color)theme.BackgroundTint, PorterDuff.Mode.SrcAtop);
            }
        }
Example #18
0
 public CreatePostStylesHolderDroid(ThemeParser <T> themeParser)
 {
     DividingLineTheme          = themeParser.GetThemeByName <IViewTheme>(_dividingLineTheme);
     NameTheme                  = themeParser.GetThemeByName <ITextViewTheme>(_nameTheme);
     TitleTheme                 = themeParser.GetThemeByName <ITextViewTheme>(_titleTheme);
     AvatarTheme                = themeParser.GetThemeByName <IImageViewTheme>(_avatarTheme);
     BackButtonTheme            = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     AttachImageButtonTheme     = themeParser.GetThemeByName <IImageButtonTheme>(_attachImageButtonTheme);
     CancelAttachButtonTheme    = themeParser.GetThemeByName <IImageButtonTheme>(_cancelAttachButtonTheme);
     PublishTextViewTheme       = themeParser.GetThemeByName <IButtonTheme>(_publishTextViewTheme);
     ToolBarViewTheme           = themeParser.GetThemeByName <IViewTheme>(_toolBarViewTheme);
     ToolsStateNoneTheme        = themeParser.GetThemeByName <IButtonTheme>(_toolsStateNoneTheme);
     ToolsStateFailTheme        = themeParser.GetThemeByName <IButtonTheme>(_toolsStateFailTheme);
     PriceTextViewTheme         = themeParser.GetThemeByName <IButtonTheme>(_priceTextViewTheme);
     BuySellStateNoneTheme      = themeParser.GetThemeByName <IButtonTheme>(_buySellStateNoneTheme);
     BuySellStateFailTheme      = themeParser.GetThemeByName <IButtonTheme>(_buySellStateFailTheme);
     AccessModeStateNoneTheme   = themeParser.GetThemeByName <IButtonTheme>(_accessModeStateNoneTheme);
     AccessModeStateFailTheme   = themeParser.GetThemeByName <IButtonTheme>(_accessModeStateFailTheme);
     ForecastTimeStateNoneTheme = themeParser.GetThemeByName <IButtonTheme>(_forecastTimeStateNoneTheme);
     ForecastTimeStateFailTheme = themeParser.GetThemeByName <IButtonTheme>(_forecastTimeStateFailTheme);
     CommentStateNoneTheme      = themeParser.GetThemeByName <IEditTextTheme>(_commentStateNoneTheme);
     CommentStateFailTheme      = themeParser.GetThemeByName <IEditTextTheme>(_commentStateFailTheme);
 }
 public void SetLastNameEditTextTheme(IEditTextTheme themeName)
 {
     _lastNameEditText.SetTheme(themeName);
 }
 public void SetNameEditTextTheme(IEditTextTheme themeName)
 {
     _firstNameEditText.SetTheme(themeName);
 }