Exemple #1
0
        public static void ApplyTimelineControlBackgroundColor(UIStyle style, Color background)
        {
            TimelineControl timelineControl = style.GetComponent <TimelineControl>();

            if (timelineControl != null)
            {
                timelineControl.BackgroundColor = background;
            }
        }
Exemple #2
0
        public static void ApplyHierarchyColors(UIStyle style, Color enabledItem, Color disabledItem)
        {
            HierarchyView hierarchy = style.GetComponent <HierarchyView>();

            if (hierarchy != null)
            {
                hierarchy.EnabledItemColor  = enabledItem;
                hierarchy.DisabledItemColor = disabledItem;
            }
        }
Exemple #3
0
        public static void ApplyMainButtonColor(UIStyle uiStyle, Color normal, Color pointerOver, Color focused)
        {
            MainMenuButton mainMenuButton = uiStyle.GetComponent <MainMenuButton>();

            if (mainMenuButton != null)
            {
                mainMenuButton.NormalColor      = normal;
                mainMenuButton.PointerOverColor = pointerOver;
                mainMenuButton.FocusedColor     = focused;
            }
        }
Exemple #4
0
        public static void ApplyToolCmdItemColor(UIStyle style, Color normalColor, Color pointerOverColor, Color pressedColor)
        {
            ToolCmdItem cmdItem = style.GetComponent <ToolCmdItem>();

            if (cmdItem != null)
            {
                cmdItem.NormalColor      = normalColor;
                cmdItem.PointerOverColor = pointerOverColor;
                cmdItem.PressedColor     = pressedColor;
            }
        }
Exemple #5
0
        public static void ApplyMenuItemColor(UIStyle uiStyle, Color selectionColor, Color textColor, Color disabledSelectionColor, Color disabledTextColor)
        {
            MenuItem menuItem = uiStyle.GetComponent <MenuItem>();

            if (menuItem != null)
            {
                menuItem.SelectionColor         = selectionColor;
                menuItem.TextColor              = textColor;
                menuItem.DisabledSelectionColor = disabledSelectionColor;
                menuItem.DisableTextColor       = disabledTextColor;
            }
        }