Browse Source

FlowchartWindow default EditorStyles labels

Previously was forcing use of white labels, with changes to unity theme in 2019.4.8 using default editorstyle label instead yields more readable results
master
Steve Halliwell 4 years ago
parent
commit
973a70cbc9
  1. 4
      Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

4
Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

@ -302,7 +302,7 @@ namespace Fungus.EditorUtils
if (EditorStyles.whiteLabel != null && handlerStyle == null) if (EditorStyles.whiteLabel != null && handlerStyle == null)
{ {
handlerStyle = new GUIStyle(EditorStyles.whiteLabel); handlerStyle = new GUIStyle(EditorStyles.label);
handlerStyle.wordWrap = true; handlerStyle.wordWrap = true;
handlerStyle.margin.top = 0; handlerStyle.margin.top = 0;
handlerStyle.margin.bottom = 0; handlerStyle.margin.bottom = 0;
@ -914,7 +914,7 @@ namespace Fungus.EditorUtils
GUILayout.BeginVertical(); GUILayout.BeginVertical();
{ {
GUILayout.Label(flowchart.name, EditorStyles.whiteBoldLabel); GUILayout.Label(flowchart.name, EditorStyles.boldLabel);
GUILayout.Space(2); GUILayout.Space(2);

Loading…
Cancel
Save