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; } }
public void SetLastnameEditTextTheme(IEditTextTheme theme) { (Context as Activity)?.RunOnUiThread(() => { _holder.LastnameEditText.SetTheme(theme); }); }
public void SetEmailEditTextTheme(IEditTextTheme themeName) { (Context as Activity)?.RunOnUiThread(() => { _holder.EmailEditText.SetTheme(themeName); }); }
public void SetSkypeEditTextTheme(IEditTextTheme theme) { InvokeOnMainThread(() => { _skypeTextField.SetTheme(theme); }); }
public void SetConfirmPasswordEditTextTheme(IEditTextTheme themeName) { InvokeOnMainThread(() => { _confirmPassEditText.SetTheme(themeName); }); }
public void SetConfirmPasswordEditTextTheme(IEditTextTheme themeName) { (Context as Activity)?.RunOnUiThread(() => { _holder.ConfirmPasswordEditText.SetTheme(themeName); }); }
public void SetPhoneEditTextTheme(IEditTextTheme theme) { InvokeOnMainThread(() => { _phoneTextField.SetTheme(theme); }); }
public void SetCountryEditTextTheme(IEditTextTheme theme) { InvokeOnMainThread(() => { _countryTextField.SetTheme(theme); }); }
public void SetEmailEditTextTheme(IEditTextTheme theme) { InvokeOnMainThread(() => { _emailEditText.SetTheme(theme); }); }
public void SetPhoneNumberEditTextTheme(IEditTextTheme themeName) { (Context as Activity)?.RunOnUiThread(() => { _holder.PhoneNumberEditText.SetTheme(themeName); }); }
public void SetCountryEditTextTheme(IEditTextTheme theme) { (Context as Activity)?.RunOnUiThread(() => { _holder.CountryEditText.SetTheme(theme); }); }
public void SetStatusEditTextTheme(IEditTextTheme theme) { InvokeOnMainThread(() => { _statusTextField.SetTheme(theme); }); }
public void SetNameEditTextTheme(IEditTextTheme theme) { InvokeOnMainThread(() => { _nameTextField.SetTheme(theme); }); }
public void SetPasswordEditTextTheme(IEditTextTheme theme) { InvokeOnMainThread(() => { _passEditText.SetTheme(theme); }); }
public void SetEmailEditTextTheme(IEditTextTheme theme) { InvokeOnMainThread(() => { _emailTextField.SetTheme(theme); _emailTextField.TextColor = UIColor.Gray; }); }
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); }
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); } }
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); }