public void OnGUI(Rect rect, Colors.NoteColorCollection colors) { ///////// // //if (InstantEditorEditorSettings.EditorColor.Value == NoteColor.DarkUnityPro) //{ /////Debug.LogWarning("YEAH FUNCIONÓ!"); // // Seteo color de Letra: Blaquecino, por tener fondo negruzco: // //GUI.contentColor = colors._miColorDeLetraPersonalizadoNormal; // // Cambia color del estilo a LETRAS BLANCAS, PORQUE FONDO ES NEGRO: // Assets.Styles.TextArea.normal.textColor = colors._miColorDeLetraPersonalizadoNormal; Assets.Styles.TooBigMessageText.normal.textColor = colors._miColorDeLetraPersonalizadoNormal; //}//End if ///////// var headerRect = GetHeaderRect(rect); GUIUtils.ColorRect(headerRect, colors.header, Color.clear); EditorGUILayout.LabelField(_isFileTooBig ? TooMuchTextMessage : _title, Assets.Styles.HeaderFileNameText); if (!_isFileTooBig) { DrawSaveButton(headerRect); DrawRestoreButton(headerRect); } DrawColorPickerButton(headerRect); }
public void OnGUI(Rect rect, Colors.NoteColorCollection colors) { var headerRect = GetHeaderRect(rect); GUIUtils.ColorRect(headerRect, colors.header, Color.clear); EditorGUILayout.LabelField(_isFileTooBig ? TooMuchTextMessage : _title, Assets.Styles.HeaderFileNameText); if (!_isFileTooBig) { DrawSaveButton(headerRect); DrawRestoreButton(headerRect); } DrawColorPickerButton(headerRect); }
static void DrawNoteBackground(Rect rect, Color backgroundColor) { GUIUtils.ColorRect(rect, backgroundColor, Color.clear); }