private void AddStyleProperties() { StyleProperties = Rule.Style.Value.GetUIComponents(Rule.Line, this); if (StyleProperties.OfType <ColorPropertyPanel>().FirstOrDefault() is ColorPropertyPanel colorProperty) { colorProperty.OnValueChanged += (Color32 c) => Editor.RefreshSelectedItem(); } }
private void AfterStyleChanged() { Editor.RefreshSelectedItem(); StopLayout(); ClearStyleProperties(); AddStyleProperties(); StartLayout(); }