private void UpdateStuff() { if (_changelogManager.NewChangelogEntries) { Text = Loc.GetString("changelog-button-new-entries"); StyleClasses.Add(StyleBase.ButtonCaution); } else { Text = Loc.GetString("changelog-button"); StyleClasses.Remove(StyleBase.ButtonCaution); } }
/// <summary> /// Adds a single style class to this selector. /// </summary> public MutableSelectorElement Class(string @class) { StyleClasses ??= new List <string>(); StyleClasses.Add(@class); return(this); }