public ToolBarPostsStylesHolderIOS(ThemeParser <T> themeParser) { MoreButtonTheme = themeParser.GetThemeByName <IImageButtonTheme>(_moreButtonTheme); TitleTheme = themeParser.GetThemeByName <ITextViewTheme>(_titleTheme); ToolbarViewTheme = themeParser.GetThemeByName <IViewTheme>(_viewTheme); CreatePostButton = themeParser.GetThemeByName <ITextViewTheme>(_createPostTheme); }
public void SetCountryTextViewTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _countryLabel.SetTheme(theme); }); }
public void SetPhoneTextViewTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _phoneLabel.SetTheme(theme); }); }
public void SetNameTheme(ITextViewTheme theme) { Application.SynchronizationContext.Post(_ => { _holder.NameTitleTextView.SetTheme(theme); }, null); }
public void SetHeaderLabelTheme(ITextViewTheme themeName) { (Context as Activity)?.RunOnUiThread(() => { _holder.TitleTextView.SetTheme(themeName); }); }
public void SetTitleTheme(ITextViewTheme theme) { var strAttr = new UIStringAttributes(); strAttr.ForegroundColor = (UIColor)theme.TextColor; _navigationBar.TitleTextAttributes = strAttr; }
public void SetFirstLastNameTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _nameLabel.SetTheme(theme); }); }
public void SetSocialNetworkLabelTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { //_socialNetworksLabel.SetTheme(themeName); }); }
public void SetNoAccountLabelTheme(ITextViewTheme theme) { (Context as Activity)?.RunOnUiThread(() => { _holder.NoAccountTextView.SetTheme(theme); }); }
public void SetPasswordLabelTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _passwordLabel.SetTheme(theme); }); }
public void SetNoAccountLabelTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _noAccountLabel.SetTheme(theme); }); }
public void SetCreatePostTheme(ITextViewTheme theme) { var strAttr = new UITextAttributes(); strAttr.TextColor = (UIColor)theme.TextColor; _createPostButton.SetTitleTextAttributes(strAttr, UIControlState.Normal); }
public static void SetTheme(this UILabel label, ITextViewTheme mainTheme, string mainText, ITextViewTheme attrTheme, string attrText, int position) { SetTheme(label, mainTheme); var firstAttributes = new UIStringAttributes(); if (mainTheme.TextColor != null) { firstAttributes.ForegroundColor = (UIColor)mainTheme.TextColor; } if (mainTheme.TextSize > 0) { firstAttributes.Font = FontStyleFromEnum(mainTheme.TextStyle, (int)mainTheme.TextSize); } var secondAttributes = new UIStringAttributes { Font = FontStyleFromEnum(attrTheme.TextStyle, (int)attrTheme.TextSize), ForegroundColor = (UIColor)attrTheme.TextColor, UnderlineStyle = NSUnderlineStyle.Single //_nativeTheme.UnderlineStyles[linkFontStyle] }; var prettyString = new NSMutableAttributedString(mainText.Insert(position, attrText)); prettyString.SetAttributes(firstAttributes.Dictionary, new NSRange(0, position - 1)); prettyString.SetAttributes(firstAttributes.Dictionary, new NSRange(position + attrText.Length - 1, prettyString.Length - position - attrText.Length)); prettyString.SetAttributes(secondAttributes.Dictionary, new NSRange(position, attrText.Length)); label.AttributedText = prettyString; }
public void SetEnableCell(int index, IViewTheme viewTheme, ITextViewTheme labelTheme) { var indexPath = NSIndexPath.FromRowSection(index, 0); var cell = (ToolViewCell)_toolsCollectionView.CellAt(indexPath); cell?.SetThemes(viewTheme, labelTheme); }
public void SetCurrentPriceTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _currentPriceValueLabel.SetTheme(theme); }); }
public void SetFeatureTextTheme(ITextViewTheme themeName) { InvokeOnMainThread(() => { _featureText.SetTheme(themeName); }); }
public void SetDiffValueTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _profitValueLabel.SetTheme(theme); }); }
public void SetSkypeTextViewTheme(ITextViewTheme theme) { (Context as Activity)?.RunOnUiThread(() => { _holder.SkypeTextView.SetTheme(theme); }); }
public void SetDateTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _dateLabel.SetTheme(theme); }); }
public void SetHeaderLabelTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _forgotPassHeaderLabel.SetTheme(theme); }); }
public void SetContent(string content, string readMore, ITextViewTheme mainTheme, ITextViewTheme attrTheme, int position) { Application.SynchronizationContext.Post(_ => { _holder.ContentTextView.SetTheme(mainTheme, content, attrTheme, readMore, position); }, null); }
public ProfileCellStylesHolderIOS(ThemeParser <T> themeParser) { CellBackgroundTheme = themeParser.GetThemeByName <IViewTheme>(_cellBackgroundTheme); AvatarImageViewTheme = themeParser.GetThemeByName <IImageViewTheme>(_avatarImageViewTheme); NameLabelTheme = themeParser.GetThemeByName <ITextViewTheme>(_nameLabelTheme); YourProfileLabelTheme = themeParser.GetThemeByName <ITextViewTheme>(_yourProfileLabelTheme); }
public void SetProfileLabelTheme(ITextViewTheme theme) { Application.SynchronizationContext.Post(_ => { _holder.ProfileLabelTextView.SetTheme(theme); }, null); }
public void SetTextTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _optionLabel.SetTheme(theme); }); }
public void SetFeatureTextTheme(ITextViewTheme themeName) { (Context as Activity)?.RunOnUiThread(() => { _holder.FeatureTextView.SetTheme(themeName); }); }
public void SetBuySellValueTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _buySellValueLabel.SetTheme(theme); }); }
public void SetEmailTextViewTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _emailLabel.SetTheme(theme); }); }
public void SetForecastTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _forecastTimeValueLabel.SetTheme(theme); }); }
public void SetSkypeTextViewTheme(ITextViewTheme theme) { InvokeOnMainThread(() => { _skypeLabel.SetTheme(theme); }); }
public void SetDiffValueTheme(ITextViewTheme theme) { Application.SynchronizationContext.Post(_ => { _holder.DifferenceValueTextView.SetTheme(theme); }, null); }