Exemple #1
0
            static void Initialize()
            {
                var backgroundTexture = StyleHelpers.CreateTextureWithBorder(new Color32(181, 181, 181, 255));

                backgroundStyle.normal.background = backgroundTexture;
                backgroundStyle.border            = new RectOffset(3, 3, 3, 3);

                var borderColor = new Color32(181, 181, 181, 255);
                var whiteBackgroundWithBorderTexture = StyleHelpers.CreateTextureWithBorder(new Color32(210, 210, 210, 255), borderColor);
                var blueBackgroundWithBorderTexture  = StyleHelpers.CreateTextureWithBorder(new Color32(62, 125, 231, 255), borderColor);

                actionItemRowStyle.normal.background = whiteBackgroundWithBorderTexture;
                actionItemRowStyle.border            = new RectOffset(3, 3, 3, 3);

                actionItemRowStyle.onFocused.background = blueBackgroundWithBorderTexture;
                actionItemRowStyle.border = new RectOffset(3, 3, 3, 3);
                actionItemRowStyle.onNormal.background = blueBackgroundWithBorderTexture;
                actionItemRowStyle.border    = new RectOffset(3, 3, 3, 3);
                actionSetItemStyle.alignment = TextAnchor.MiddleLeft;

                actionItemLabelStyle.alignment = TextAnchor.MiddleLeft;

                yellowRect.normal.background = StyleHelpers.CreateTextureWithBorder(new Color(256f / 256f, 230f / 256f, 148f / 256f));
                yellowRect.border            = new RectOffset(2, 2, 2, 2);
                orangeRect.normal.background = StyleHelpers.CreateTextureWithBorder(new Color(246f / 256f, 192f / 256f, 129f / 256f));
                orangeRect.border            = new RectOffset(2, 2, 2, 2);
                greenRect.normal.background  = StyleHelpers.CreateTextureWithBorder(new Color(168 / 256f, 208 / 256f, 152 / 256f));
                greenRect.border             = new RectOffset(2, 2, 2, 2);
                blueRect.normal.background   = StyleHelpers.CreateTextureWithBorder(new Color(147 / 256f, 184 / 256f, 187 / 256f));
                blueRect.border            = new RectOffset(2, 2, 2, 2);
                pinkRect.normal.background = StyleHelpers.CreateTextureWithBorder(new Color(200 / 256f, 149 / 256f, 175 / 256f));
                pinkRect.border            = new RectOffset(2, 2, 2, 2);
            }
Exemple #2
0
            static void Initialize()
            {
                var darkGreyBackgroundWithBorderTexture = StyleHelpers.CreateTextureWithBorder(new Color32(221, 223, 221, 255));

                foldoutBackgroundStyle.normal.background = darkGreyBackgroundWithBorderTexture;
                foldoutBackgroundStyle.border            = new RectOffset(3, 3, 3, 3);
                foldoutBackgroundStyle.margin            = new RectOffset(1, 1, 3, 3);
            }
Exemple #3
0
            static void Initialize()
            {
                var darkGreyBackgroundWithBorderTexture = StyleHelpers.CreateTextureWithBorder(new Color32(181, 181, 181, 255), Color.grey);

                darkGreyBackgroundWithBorder.normal.background = darkGreyBackgroundWithBorderTexture;
                darkGreyBackgroundWithBorder.border            = new RectOffset(3, 3, 3, 3);

                var whiteBackgroundWithBorderTexture = StyleHelpers.CreateTextureWithBorder(Color.white, Color.grey);

                whiteBackgroundWithBorder.normal.background = whiteBackgroundWithBorderTexture;
                whiteBackgroundWithBorder.border            = new RectOffset(3, 3, 3, 3);

                columnHeaderLabel.alignment    = TextAnchor.MiddleLeft;
                columnHeaderLabel.fontStyle    = FontStyle.Bold;
                columnHeaderLabel.padding.left = 10;
            }