private void UpdateUIOnColorChange() { labelNarratorsColor.Text = HtmlUtils.ColorToHtml(Color.FromArgb(_configs.Narrator)); labelMoodsColor.Text = HtmlUtils.ColorToHtml(Color.FromArgb(_configs.Moods)); labelNarratorsColor.BackColor = Color.FromArgb(_configs.Narrator); labelMoodsColor.BackColor = Color.FromArgb(_configs.Moods); }
protected static string ApplyColor(Color color, string text) => string.Format(writeFormat, HtmlUtils.ColorToHtml(color), text.Trim());