void StyleUI() { UIStyler.Style(deleteButton, saveButton); new UIStyler.ShadowBuilder() .WithOffset(new CGSize(1, 1)) .Apply(deleteButton, saveButton); Fonts.ApplyFont(Fonts.MainFont, directionHeaderLabel, speedLabel); Fonts.ApplyFont(Fonts.MainFontBold, titleLabel, deleteButton.TitleLabel, saveButton.TitleLabel); Colors.ApplyBackgroundColor(Colors.Primary, directionHeaderView, speedHeaderView); View.LayoutIfNeeded(); }
void StyleUI() { UIStyler.Style(deleteButton, saveButton); new UIStyler.ShadowBuilder() .WithOffset(new CGSize(1, 1)) .Apply(deleteButton, saveButton); Fonts.ApplyFont(Fonts.MainFont, timeHeaderLabel, timeUnitLabel); Fonts.ApplyFont(Fonts.MainFont, sleepTextField); Fonts.ApplyFont(Fonts.MainFontBold, titleLabel, deleteButton.TitleLabel, saveButton.TitleLabel); timeHeaderView.BackgroundColor = Colors.Primary; View.LayoutIfNeeded(); }
void StyleUI() { UIStyler.Style(connectButton); new UIStyler.ShadowBuilder() .WithOffset(new CGSize(0, 2)) .WithColor(Colors.PrimaryDark) .Apply(connectBox); Fonts.ApplyFont(Fonts.MainFont, wifiNameField); Fonts.ApplyFont(Fonts.MainFont, statusLabel); Fonts.ApplyFont(Fonts.MainFontBold, titleLabel, connectButton.TitleLabel); connectBox.BackgroundColor = Colors.Primary; View.LayoutIfNeeded(); }
void StyleUI() { UIStyler.Style(backButton, runButton, addMoveBlockButton, addSleepBlockButton); UIStyler.ShadowBuilder shadowBuilder = new UIStyler.ShadowBuilder() .WithColor(Colors.PrimaryDark) .WithOffset(new CGSize(0, 2)); shadowBuilder.Apply(headerView); shadowBuilder.WithOffset(new CGSize(0, -2)) .WithColor(UIColor.Black) .Apply(footerView); shadowBuilder.WithOffset(new CGSize(1, 1)) .Apply(addMoveBlockButton, addSleepBlockButton); Fonts.ApplyFont(Fonts.MainFontBold, backButton.TitleLabel, titleLabel, runButton.TitleLabel, addMoveBlockButton.TitleLabel, addSleepBlockButton.TitleLabel); headerView.BackgroundColor = Colors.Primary; View.LayoutIfNeeded(); }