void SetupEncounterAndInfectedButtons() { MessageView.Subviews[0].Layer.CornerRadius = 12; MessageView.Subviews[0].Layer.BorderWidth = 1; MessageView.Subviews[0].Layer.BorderColor = ColorHelper.PRIMARY_COLOR.CGColor; AreYouInfectetView.Subviews[0].Layer.CornerRadius = 12; AreYouInfectetView.Subviews[0].Layer.BorderWidth = 1; AreYouInfectetView.Subviews[0].Layer.BorderColor = ColorHelper.PRIMARY_COLOR.CGColor; MessageLbl.Font = StyleUtil.Font(StyleUtil.FontType.FontBold, 18, 22); MessageLbl.Text = InfectionStatusViewModel.INFECTION_STATUS_MESSAGE_HEADER_TEXT; NewRegistrationLbl.Font = StyleUtil.Font(StyleUtil.FontType.FontRegular, 14, 18); NewRegistrationLbl.Text = _viewModel.NewMessageSubheaderTxt; AreYouInfectetLbl.Font = StyleUtil.Font(StyleUtil.FontType.FontBold, 18, 22); AreYouInfectetLbl.Text = InfectionStatusViewModel.INFECTION_STATUS_REGISTRATION_HEADER_TEXT; LogInAndRegisterLbl.Font = StyleUtil.Font(StyleUtil.FontType.FontRegular, 14, 18); LogInAndRegisterLbl.Text = InfectionStatusViewModel.INFECTION_STATUS_REGISTRATION_SUBHEADER_TEXT; // We take the fairly complicated UIViews from the storyboard and embed them into UIButtons _messageViewBtn = new UIButton(); _messageViewBtn.TranslatesAutoresizingMaskIntoConstraints = false; StyleUtil.EmbedViewInsideButton(MessageView, _messageViewBtn); _areYouInfectedBtn = new UIButton(); _areYouInfectedBtn.TranslatesAutoresizingMaskIntoConstraints = false; StyleUtil.EmbedViewInsideButton(AreYouInfectetView, _areYouInfectedBtn); }
public override void ViewDidLoad() { base.ViewDidLoad(); NSAttributedStringDocumentAttributes documentAttributes = new NSAttributedStringDocumentAttributes { DocumentType = NSDocumentType.HTML, StringEncoding = NSStringEncoding.UTF8 }; NSError error = null; NSAttributedString attributedString = new NSAttributedString(NSData.FromString(ForceUpdateViewModel.FORCE_UPDATE_MESSAGE, NSStringEncoding.UTF8), documentAttributes, ref error); if (error != null) { LogUtils.LogMessage(Enums.LogSeverity.ERROR, error.LocalizedDescription); } //Ensuring text is resiezed correctly when font size is increased StyleUtil.InitLabekWithSpacingAndHTMLFormatting( TextLabel, StyleUtil.FontType.FontBold, attributedString, 1.28, 24, 30, UITextAlignment.Center); TextLabel.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; StyleUtil.InitButtonStyling(AppStoreLinkButton, ForceUpdateViewModel.FORCE_UPDATE_BUTTON_APPSTORE_IOS); AppStoreLinkButton.AccessibilityTraits = UIAccessibilityTrait.Link; FhiLogo.AccessibilityLabel = ForceUpdateViewModel.SMITTESPORING_FHI_LOGO_ACCESSIBILITY; TextLabel.AccessibilityLabel = AccessibilityUtils.RemovePoorlySpokenSymbolsString(ForceUpdateViewModel.FORCE_UPDATE_MESSAGE); }
public override void ViewDidLoad() { base.ViewDidLoad(); TitleLabel.Text = TitleText; BodyText.Text = Content; StyleUtil.InitButtonStyling(OkBtn, OkBtnText); }
protected internal virtual void ApplyStyles(ISvgNodeRenderer parent, ISvgNodeRenderer child) { if (parent != null && child != null) { IDictionary <String, String> childStyles = child.GetAttributeMapCopy(); if (childStyles == null) { childStyles = new Dictionary <String, String>(); } IDictionary <String, String> parentStyles = parent.GetAttributeMapCopy(); String parentFontSize = parent.GetAttribute(SvgConstants.Attributes.FONT_SIZE); if (parentFontSize == null) { parentFontSize = "0"; } ICollection <IStyleInheritance> inheritanceRules = new HashSet <IStyleInheritance>(); inheritanceRules.Add(new CssInheritance()); inheritanceRules.Add(new SvgAttributeInheritance()); foreach (KeyValuePair <String, String> parentAttribute in parentStyles) { childStyles = StyleUtil.MergeParentStyleDeclaration(childStyles, parentAttribute.Key, parentAttribute.Value , parentFontSize, inheritanceRules); } child.SetAttributesAndStyles(childStyles); } }
void SetTexts() { InitTitle(TitleLabel, ConsentViewModel.WELCOME_PAGE_CONSENT_TITLE); InitSubTitle(Header1Lbl, ConsentViewModel.CONSENT_ONE_TITLE); InitBodyText(Paragraph1Lbl, ConsentViewModel.CONSENT_ONE_PARAGRAPH); InitSubTitle(Header2Lbl, ConsentViewModel.CONSENT_TWO_TITLE); InitBodyText(Paragraph2Lbl, ConsentViewModel.CONSENT_TWO_PARAGRAPH); InitSubTitle(Header3Lbl, ConsentViewModel.CONSENT_THREE_TITLE); InitBodyText(Paragraph3Lbl, ConsentViewModel.CONSENT_THREE_PARAGRAPH); InitSubTitle(Header4Lbl, ConsentViewModel.CONSENT_FOUR_TITLE); InitBodyText(Paragraph4Lbl, ConsentViewModel.CONSENT_FOUR_PARAGRAPH); InitSubTitle(Header5Lbl, ConsentViewModel.CONSENT_FIVE_TITLE); InitBodyText(Paragraph5Lbl, ConsentViewModel.CONSENT_FIVE_PARAGRAPH); InitSubTitle(Header6Lbl, ConsentViewModel.CONSENT_SIX_TITLE); InitBodyText(Paragraph6Lbl, ConsentViewModel.CONSENT_SIX_PARAGRAPH); InitSubTitle(Header7Lbl, ConsentViewModel.CONSENT_SEVEN_TITLE); InitBodyText(Paragraph7Lbl, ConsentViewModel.CONSENT_SEVEN_PARAGRAPH); InitSubTitle(Header8Lbl, ConsentViewModel.CONSENT_EIGHT_TITLE); InitBodyText(Paragraph8Lbl, ConsentViewModel.CONSENT_EIGHT_PARAGRAPH); InitSubTitle(Header9Lbl, ConsentViewModel.CONSENT_NINE_TITLE); InitBodyText(Paragraph9Lbl, ConsentViewModel.CONSENT_NINE_PARAGRAPH); InitButtonStyling(NextBtn, WelcomeViewModel.NEXT_PAGE_BUTTON_TEXT); InitButtonSecondaryStyling(BackBtn, WelcomeViewModel.PREVIOUS_PAGE_BUTTON_TEXT); WarningLbl.Font = StyleUtil.Font(FontType.FontRegular, 18, 24); WarningLbl.Text = ConsentViewModel.CONSENT_REQUIRED; AcceptSwitchBtn.AccessibilityLabel = ConsentViewModel.SWITCH_ACCESSIBILITY_CONSENT_SWITCH_DESCRIPTOR; AcceptTextLbl.IsAccessibilityElement = false; AcceptTextLbl.Text = ConsentViewModel.GIVE_CONSENT_TEXT; ActivityIndicator.AccessibilityElementsHidden = true; }
public override void ViewDidLoad() { base.ViewDidLoad(); _spinner = StyleUtil.ShowSpinner(View, AppDelegate.ShouldOperateIn12_5Mode ? UIActivityIndicatorViewStyle.WhiteLarge : UIActivityIndicatorViewStyle.Large); }
void SetupLearnMoreButton() { if (AppDelegate.ShouldOperateIn12_5Mode) { BoxView.Layer.CornerRadius = 12; BoxView.Layer.BackgroundColor = ColorHelper.INFO_BUTTON_BACKGROUND.CGColor; BoxView.Layer.BorderWidth = 1; BoxView.Layer.BorderColor = ColorHelper.PRIMARY_COLOR.CGColor; } else { UIView stackView = BoxView.Subviews[0]; stackView.Layer.CornerRadius = 12; stackView.Layer.MasksToBounds = true; stackView.Layer.BackgroundColor = ColorHelper.INFO_BUTTON_BACKGROUND.CGColor; stackView.Layer.BorderWidth = 1; stackView.Layer.BorderColor = ColorHelper.PRIMARY_COLOR.CGColor; } _learnMoreViewBtn = new UIButton { TranslatesAutoresizingMaskIntoConstraints = false, AccessibilityTraits = UIAccessibilityTrait.Link }; StyleUtil.EmbedViewInsideButton(BoxView, _learnMoreViewBtn); }
private void OnAppDailyNumbersChanged(object _ = null) { DispatchQueue.MainQueue.DispatchAsync(() => { _dailyNumbersButton.AccessibilityLabel = _viewModel.NewDailyNumbersAccessibilityText; StyleUtil.InitLabelWithSpacing(dailyNumbersUpdatedLbl, StyleUtil.FontType.FontRegular, InfectionStatusViewModel.INFECTION_STATUS_DAILY_NUMBERS_LAST_UPDATED_TEXT, 1.14, 12, 16); }); }
public virtual IDictionary <String, String> ResolveStyles(INode node, AbstractCssContext context) { IDictionary <String, String> styles = ResolveNativeStyles(node, context); //Load in and merge inherited declarations from parent if (node.ParentNode() is IStylesContainer) { IStylesContainer parentNode = (IStylesContainer)node.ParentNode(); IDictionary <String, String> parentStyles = parentNode.GetStyles(); if (parentStyles == null && !(node.ParentNode() is IDocumentNode)) { ILog logger = LogManager.GetLogger(typeof(iText.Svg.Css.Impl.SvgStyleResolver)); logger.Error(iText.StyledXmlParser.LogMessageConstant.ERROR_RESOLVING_PARENT_STYLES); } ICollection <IStyleInheritance> inheritanceRules = new HashSet <IStyleInheritance>(); inheritanceRules.Add(new CssInheritance()); inheritanceRules.Add(new SvgAttributeInheritance()); if (parentStyles != null) { foreach (KeyValuePair <String, String> entry in parentStyles) { String parentFontSizeString = parentStyles.Get(CommonCssConstants.FONT_SIZE); if (parentFontSizeString == null) { parentFontSizeString = "0"; } styles = StyleUtil.MergeParentStyleDeclaration(styles, entry.Key, entry.Value, parentFontSizeString, inheritanceRules ); } } } return(styles); }
void SetTexts() { InitTitle(TitleLabel, ConsentViewModel.WELCOME_PAGE_CONSENT_TITLE); InitSubTitle(About_header, ConsentViewModel.CONSENT_ONE_TITLE); InitBodyText(About_section1, ConsentViewModel.CONSENT_ONE_PARAGRAPH_SECTION_ONE); InitBodyText(About_section2, ConsentViewModel.CONSENT_ONE_PARAGRAPH_SECTION_TWO); InitSubTitle(HowItWorks_header, ConsentViewModel.CONSENT_TWO_TITLE); InitBodyText(HowItWorks_section1, ConsentViewModel.CONSENT_TWO_PARAGRAPH_SECTION_ONE); InitBodyText(HowItWorks_section2, ConsentViewModel.CONSENT_TWO_PARAGRAPH_SECTION_TWO); InitBodyText(Samtykke_section1, ConsentViewModel.CONSENT_THREE_PARAGRAPH_SECTION_ONE); InitBodyText(Samtykke_section2, ConsentViewModel.CONSENT_THREE_PARAGRAPH_SECTION_TWO); InitBodyText(ContactInformation_section, ConsentViewModel.CONSENT_FOUR_PARAGRAPH); InitBodyText(MoreInformation_section, ConsentViewModel.CONSENT_FIVE_PARAGRAPH); InitSubTitle(SamtykkeBottom_header, ConsentViewModel.CONSENT_SIX_TITLE); InitBodyText(SamtykkeBottom_section, ConsentViewModel.CONSENT_SIX_PARAGRAPH, FontType.FontItalic); InitButtonStyling(NextBtn, WelcomeViewModel.NEXT_PAGE_BUTTON_TEXT); InitButtonSecondaryStyling(BackBtn, WelcomeViewModel.PREVIOUS_PAGE_BUTTON_TEXT); WarningLbl.Font = StyleUtil.Font(FontType.FontBold, 22, 24); WarningLbl.Text = ConsentViewModel.CONSENT_REQUIRED; AcceptSwitchBtn.AccessibilityLabel = ConsentViewModel.SWITCH_ACCESSIBILITY_CONSENT_SWITCH_DESCRIPTOR; AcceptTextLbl.IsAccessibilityElement = false; AcceptTextLbl.Font = StyleUtil.Font(FontType.FontMedium, 18, 20); AcceptTextLbl.Text = ConsentViewModel.GIVE_CONSENT_TEXT; ActivityIndicator.AccessibilityElementsHidden = true; }
public void ShowSpinner(UIView parentView, UIActivityIndicatorViewStyle style) { _spinner = StyleUtil.AddSpinnerToView(parentView, style); StyleUtil.CenterView(_spinner, this); Selected = true; _spinner.StartAnimating(); }
void SetStyling() { StyleUtil.InitLabelWithSpacing(TitleLbl, StyleUtil.FontType.FontBold, QuestionnaireCountriesViewModel.COUNTRY_QUESTIONAIRE_HEADER_TEXT, 1.14, 32, 38); StyleUtil.InitLabelWithSpacing(SubtitleLbl, StyleUtil.FontType.FontRegular, QuestionnaireCountriesViewModel.COUNTRY_QUESTIONAIRE_INFORMATION_TEXT, 1.28, 20, 22); StyleUtil.InitLabelWithSpacing(ListExplainLbl, StyleUtil.FontType.FontRegular, QuestionnaireCountriesViewModel.COUNTRY_QUESTIONAIRE_FOOTER, 1.28, 16, 20); StyleUtil.InitButtonStyling(NextBtn, QuestionnaireCountriesViewModel.COUNTRY_QUESTIONAIRE_BUTTON_TEXT); SetButtonViewStyle(); }
void SetupLearnMoreButton() { BoxView.Subviews[0].Layer.CornerRadius = 12; _learnMoreViewBtn = new UIButton(); _learnMoreViewBtn.TranslatesAutoresizingMaskIntoConstraints = false; _learnMoreViewBtn.AccessibilityTraits = UIAccessibilityTrait.Link; StyleUtil.EmbedViewInsideButton(LearnMoreView, _learnMoreViewBtn); }
public SettingsPageContentLabel(IntPtr handle) : base(handle) { Lines = 100; TextColor = UIColor.White; TranslatesAutoresizingMaskIntoConstraints = false; TextColor = UIColor.White; StyleUtil.InitLabelWithSpacing(this, FontType.FontRegular, Text ?? "", 1.28, 16, 22); }
public void Update(MessageItemViewModel message) { StyleUtil.InitLabelWithSpacing(Label1, StyleUtil.FontType.FontRegular, message.Title, 1.14, 16, 28); StyleUtil.InitLabelWithSpacing(Label2, StyleUtil.FontType.FontRegular, DateUtils.GetDateFromDateTime(message.TimeStamp, "d. MMMMM"), 1.14, 12, 17); StyleUtil.InitLabelWithSpacing(Label3, StyleUtil.FontType.FontRegular, MessageItemViewModel.MESSAGES_RECOMMENDATIONS, 1.14, 12, 17); IndicatorView.Alpha = message.IsRead ? 0 : 1; this.BackgroundColor = message.IsRead ? new UIColor(new nfloat(1), new nfloat(0.1)) : new UIColor(new nfloat(1), new nfloat(0.25)); IndicatorView.Layer.CornerRadius = IndicatorView.Layer.Frame.Height / 2; }
private void SetStyling() { StyleUtil.InitLabelWithSpacing(Label, StyleUtil.FontType.FontBold, MESSAGES_HEADER, 1.14, 24, 36); StyleUtil.InitLabelWithSpacing(LabelLastUpdate, StyleUtil.FontType.FontRegular, LastUpdateString, 1.14, 12, 14, UITextAlignment.Left); StyleUtil.InitLabelWithSpacing(NoItemsLabel1, StyleUtil.FontType.FontRegular, MESSAGES_NO_ITEMS_TITLE, 1.14, 16, 18); StyleUtil.InitLabelWithSpacing(NoItemsLabel2, StyleUtil.FontType.FontRegular, MESSAGES_NO_ITEMS_DESCRIPTION, 1.14, 12, 14, UITextAlignment.Left); BackButton.AccessibilityLabel = SettingsViewModel.SETTINGS_CHILD_PAGE_ACCESSIBILITY_BACK_BUTTON; SetLogoBasedOnAppLanguage(); }
void SetStyling() { StyleUtil.InitLabelWithSpacing(TitleLbl, StyleUtil.FontType.FontBold, QuestionnaireCountriesViewModel.COUNTRY_QUESTIONAIRE_HEADER_TEXT, 1.14, 24, 38); StyleUtil.InitLabelWithSpacing(SubtitleLbl, StyleUtil.FontType.FontRegular, QuestionnaireCountriesViewModel.COUNTRY_QUESTIONAIRE_INFORMATION_TEXT, 1.28, 16, 20); StyleUtil.InitLabelWithSpacing(ListExplainLbl, StyleUtil.FontType.FontRegular, QuestionnaireCountriesViewModel.COUNTRY_QUESTIONAIRE_FOOTER, 1.28, 16, 20); NextBtn.SetTitle(QuestionnaireCountriesViewModel.COUNTRY_QUESTIONAIRE_BUTTON_TEXT, UIControlState.Normal); ButtonView.Alpha = 0.9f; ButtonView.BackgroundColor = "#001F34".ToUIColor(); }
private void SetStyling() { TitleLabel.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_HEADER); TitleLabel.AccessibilityLabel = QuestionnaireViewModel.REGISTER_QUESTIONAIRE_ACCESSIBILITY_RECEIPT_HEADER; ContentLabelOne.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_TEXT); ContentLabelTwo.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_DESCRIPTION); BoxTitleLabel.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_INNER_HEADER, StyleUtil.FontType.FontBold); StyleUtil.InitLabelWithSpacing(BoxContentLabelTwo, StyleUtil.FontType.FontRegular, QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_INNER_READ_MORE, 1.28, 12, 16); StyleUtil.InitButtonStyling(ToStartPageBtn, QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_DISMISS); }
private void SetTexts() { HeaderLabel.SetAttributedText(HEADER_TEXT); BodyText1.SetAttributedText(CONSENT3_BODYTEXT_1); StyleUtil.InitLabel(ShareHeader, StyleUtil.FontType.FontBold, CONSENT3_SHAREDATA_HEADER, 16, 22); BodyText2.SetAttributedText(CONSENT3_BODYTEXT_2); ConsentEU_Explanation.SetAttributedText(CONSENT3_EU_CONSENT_BUTTON_BODYTEXT); Consent_onlyNorway_Explanation.SetAttributedText(CONSENT3_ONLY_NORWAY_CONSENT_BUTTON_BODYTEXT); StyleUtil.InitLabel(ConsentText, StyleUtil.FontType.FontItalic, CONSENT3_CONSENTTOSHARE, 16, 22); }
public override void ViewDidLoad() { base.ViewDidLoad(); StyleUtil.InitButtonStyling(StartButton, InitializerViewModel.LAUNCHER_PAGE_START_BTN); StyleUtil.InitLabel(ContinueInEnLbl, StyleUtil.FontType.FontSemiBold, InitializerViewModel.LAUNCHER_PAGE_CONTINUE_IN_ENG, 16, 24); ContinueInEnLbl.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; StyleUtil.InitLabel(InitializerAppName, StyleUtil.FontType.FontBold, InitializerViewModel.LAUNCHER_PAGE_TITLE, 50, 50); InitializerAppName.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; HeaderView.SizeToFit(); }
void UpdateLayout() { SetPreviousButtonHidden(_currentPageIndex == 0); PageControl.CurrentPage = _currentPageIndex; PageControl.UpdateCurrentPageDisplay(); StyleUtil.InitButtonStyling(NextBtn, _currentPageIndex == 4 ? WelcomeViewModel.WELCOME_PAGE_BACKGROUND_LIMITATIONS_NEXT_BUTTON : WelcomeViewModel.NEXT_PAGE_BUTTON_TEXT); }
void SetStyling() { DeleteBtnWidthConstraint.Active = false; StyleUtil.InitButtonStyling(DeleteConsentBtn, ConsentViewModel.WITHDRAW_CONSENT_BUTTON_TEXT); PageTitle.SetAttributedText(ConsentViewModel.WELCOME_PAGE_CONSENT_TITLE); BottomStackView.Layer.MasksToBounds = false; BottomStackView.Layer.ShadowColor = UIColor.Gray.CGColor; BottomStackView.Layer.ShadowOffset = new CGSize(0f, 10f); BottomStackView.Layer.ShadowOpacity = 1; BottomStackView.Layer.ShadowRadius = 9; }
void SetupTextAndStyling() { TextContainerView.Layer.CornerRadius = 12; TextLabel.Text = _displayText; TextLabel.Font = StyleUtil.Font(StyleUtil.FontType.FontRegular, 17); CloseBtn.SetTitle(_buttonText, UIControlState.Normal); CloseBtn.Font = StyleUtil.Font(StyleUtil.FontType.FontBold, 17); _stylingAlreadySet = true; }
void InitPrivacyPolicyButton() { _privacyPolicyButton = new UIButton(UIButtonType.System); _privacyPolicyButton.Frame = new CGRect(0, 0, 0, 0); _privacyPolicyButton.TouchUpInside += (sender, e) => { ConsentViewModel.OpenPrivacyPolicyLink(); }; _privacyPolicyButton.AccessibilityTraits = UIAccessibilityTrait.Link; StyleUtil.InitLinkButtonStyling(_privacyPolicyButton, ConsentViewModel.CONSENT_SEVEN_LINK_TEXT); }
private void SetStyling() { CloseButton.TintColor = ColorHelper.PRIMARY_COLOR; TitleLabel.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_HEADER); ContentLabelOne.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_TEXT); ContentLabelTwo.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_DESCRIPTION); BoxTitleLabel.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_INNER_HEADER, StyleUtil.FontType.FontBold); StyleUtil.InitLabelWithSpacing(BoxContentLabelTwo, StyleUtil.FontType.FontRegular, QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_INNER_READ_MORE, 1.28, 12, 16); StyleUtil.InitButtonStyling(ToStartPageBtn, QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_DISMISS); }
private void SetupStyling() { HeaderLabel.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; BodyText1.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; ShareHeader.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; BodyText2.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; ConsentEU_Explanation.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; Consent_onlyNorway_Explanation.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; ConsentText.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; StyleUtil.InitButtonStyling(NextButtonWithEUConsent, EU_CONSENT_NEXT_EU_CONSENT_BUTTON_TEXT); StyleUtil.InitButtonStyling(NextButtonOnlyNorwayConsent, EU_CONSENT_NEXT_ONLY_NORWAY_CONSENT_BUTTON_TEXT); }
public void SetupStyling() { HeaderLabel.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; DescriptionLabel.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; LookUp_Header.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; LookUp_Text.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; Notification_Header.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; Notification_Text.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; Consent_BeAware_Text.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; Consent_Explanation_Text.TextColor = ColorHelper.TEXT_COLOR_ON_BACKGROUND; StyleUtil.InitButtonStyling(LogInWithIDPortenBtn, InformationAndConsentViewModel.INFORMATION_CONSENT_ID_PORTEN_BUTTON_TEXT); }
private void StyleStartButton() { StartButton.SemanticContentAttribute = UISemanticContentAttribute.ForceRightToLeft; StartButton.ContentEdgeInsets = new UIEdgeInsets(0, 0, 0, 20); StartButton.TitleEdgeInsets = new UIEdgeInsets(0, -6, 0, 6); StartButton.ImageEdgeInsets = new UIEdgeInsets(0, 6, 0, -6); StyleUtil.InitButtonStyling(StartButton, InitializerViewModel.LAUNCHER_PAGE_START_BTN); if (OnboardingStatusHelper.Status == OnboardingStatus.CountriesOnboardingCompleted) { StartButton.Hidden = true; } }
public override void Run(List <Variable> variablesList) { var style = new StyleUtil(); var textResult = Text; foreach (var variable in variablesList) { textResult = textResult.Replace("@(" + variable.Name + ")", variable.Value); } Console.Write(Text + " "); Console.Write(" (Tekan Enter untuk Melanjutkan)"); Console.ReadLine(); }
public void UpdateCell(CountryDetailsViewModel country) { StyleUtil.InitLabelWithSpacing(CountryNameLabel, StyleUtil.FontType.FontRegular, country.Name, 1.14, 16, 28); CheckboxImage.Image = (country.Checked ? UIImage.FromBundle("CheckboxChecked") : UIImage.FromBundle("CheckboxUnchecked")); if (country.Checked) { AccessibilityTraits |= UIAccessibilityTrait.Selected; } else { AccessibilityTraits &= ~UIAccessibilityTrait.Selected; } }