public virtual void SetUp() { Variables = new Dictionary<string, object>() { {"StringVariable", "HelloWorld"} }; Settings = new TemplateSettings(Variables); Template = new Template(Settings); }
void ApplySettings (TemplateSettings settings) { SetBackground (settings.BackgroundColor, settings.BackgroundImage); SetTopBar (settings.TopBarHeight, settings.TopBarColor); SetBottomBar (settings.BottomBarHeight, settings.BottomBarColor); }
public void Apply (TemplateSettings settings) { if (Snippets != null) { foreach (StyleSnippet snippet in Snippets) snippet.Apply (settings); } if (hasColor) { settings.SnippetColors.Add (Id, Color); } if (TextStyle != null) { settings.SnippetTextStyles.Add (Id, TextStyle); } }
public abstract void Load (ScreenElement e, TemplateSettings settings);
public Unless(TemplateSettings settings, string name, string args) : base(settings, name, args) { _expression = args; }