public void ApplySkin(GUIControlName control) { var modifiers = GUISkin.Current.GetStyleModifiers(control); foreach (var modifier in modifiers) { this.Push(modifier); } }
internal StyleRuleSet this[GUIControlName name] { get { if (Custom != null && Custom.styles.TryGetValue(name, out var value)) { return(value); } return(this.styles[name]); } }
public StyleRuleSet this[GUIControlName index] { get { if (Rules.TryGetValue(index, out var value)) { return(value); } else { var ruleSet = Rules[index] = new StyleRuleSet(); return(ruleSet); } } }
public IReadOnlyList <StyleModifier> GetStyleModifiers(GUIControlName control) { return(this.styles[control]); }
public StyleRuleSet this[GUIControlName name] => this.styles[name];