static WitStyles()

in Scripts/Editor/WitStyles.cs [78:156]


        static WitStyles()
        {
            // Setup icons
            PasteIcon = EditorGUIUtility.IconContent("Clipboard");
            EditIcon = EditorGUIUtility.IconContent("editicon.sml");
            ResetIcon = EditorGUIUtility.IconContent("TreeEditor.Trash");
            AcceptIcon = EditorGUIUtility.IconContent("FilterSelectedOnly");
            ObjectPickerIcon = EditorGUIUtility.IconContent("d_Record Off");
            HelpIcon = EditorGUIUtility.IconContent("_Help");

            // Label Styles
            Label = new GUIStyle();
            Label.fontSize = 11;
            Label.padding = new RectOffset(5, 5, 0, 0);
            Label.margin = new RectOffset(5, 5, 0, 0);
            Label.alignment = TextAnchor.MiddleLeft;
            Label.normal.textColor = Color.white;
            Label.hover.textColor = Color.white;
            Label.active.textColor = Color.white;
            Label.richText = true;
            Label.wordWrap = false;
            LabelWrap = new GUIStyle(Label);
            LabelWrap.wordWrap = true;
            LabelSubheader = new GUIStyle(Label);
            LabelSubheader.fontSize = 14;
            LabelHeader = new GUIStyle(Label);
            LabelHeader.fontSize = 24;
            LabelHeader.padding = new RectOffset(0, 0, 10, 10);
            LabelHeader.margin = new RectOffset(0, 0, 10, 10);
            LabelHeader.wordWrap = true;
            LabelError = new GUIStyle(Label);
            LabelError.wordWrap = true;
            LabelError.normal.textColor = Color.red;
            LabelStatus = new GUIStyle(Label);
            TextureBlack25P = new Texture2D(1, 1);
            TextureBlack25P.SetPixel(0, 0, new Color(0, 0, 0, .25f));
            TextureBlack25P.Apply();
            LabelStatusBackground = new GUIStyle();
            LabelStatusBackground.normal.background = TextureBlack25P;
            LabelStatus.normal.background = TextureBlack25P;
            LabelStatus.wordWrap = true;
            LabelStatus.fontSize++;
            LabelStatus.alignment = TextAnchor.LowerLeft;
            LabelStatus.margin = new RectOffset(0, 0, 0, 0);
            LabelStatus.wordWrap = false;
            LabelStatus.fontSize = 10;
            // Set to blue if not pro
            if (!EditorGUIUtility.isProSkin)
            {
                WitLinkColor = "blue";
            }

            // Button Styles
            TextButton = new GUIStyle(EditorStyles.miniButton);
            TextButton.alignment = TextAnchor.MiddleCenter;
            TextButton.fixedHeight = TextButtonHeight;
            TabButton = new GUIStyle(TextButton);
            TabButton.fixedHeight = TabButtonHeight;
            IconButton = new GUIStyle(Label);
            IconButton.margin = new RectOffset(0, 0, 0, 0);
            IconButton.padding = new RectOffset(0, 0, 0, 0);
            IconButton.fixedWidth = IconButtonSize;
            IconButton.fixedHeight = IconButtonSize;
            HeaderButton = new GUIStyle(Label);
            HeaderButton.normal.textColor = HeaderTextColor;

            // Text Field Styles
            TextField = new GUIStyle(EditorStyles.textField);
            TextField.padding = Label.padding;
            TextField.margin = Label.margin;
            TextField.alignment = Label.alignment;
            TextField.clipping = TextClipping.Clip;
            PasswordField = new GUIStyle(TextField);
            IntField = new GUIStyle(TextField);
            // Miscellaneous
            Foldout = new GUIStyle(EditorStyles.foldout);
            Toggle = new GUIStyle(EditorStyles.toggle);
            Popup = new GUIStyle(EditorStyles.popup);
        }