Пример #1
0
        /// <inheritdoc/>
        public virtual void Setup(IInspector setInspector)
        {
            inspector = setInspector;
            inspector.State.OnInspectedTargetsChanged -= OnInspectedTargetsChanged;
            inspector.State.OnInspectedTargetsChanged += OnInspectedTargetsChanged;

            items        = ToolbarUtility.GetItemsForToolbar(setInspector, this);
            visibleItems = items;
            UpdateVisibleItems();
            updateToolbarItemBounds         = true;
            inspector.State.OnWidthChanged += UpdateToolbarItemBounds;

                        #if UNITY_2019_3_OR_NEWER
            if (DrawGUI.IsProSkin)
            {
                lineAboveColor = inspector.Preferences.theme.ComponentSeparatorLine;
                lineBelowColor = inspector.Preferences.theme.ComponentSeparatorLine;
                //lineBelowColor = new Color32(32, 32, 32, 255);
            }
            else
            {
                lineAboveColor = new Color32(153, 153, 153, 255);
                lineBelowColor = new Color32(153, 153, 153, 255);
                //lineBelowColor = inspector.Preferences.theme.ComponentSeparatorLine;
            }
            //new Color32(165, 165, 165, 255) what I had for light skin for both
                        #endif
        }
Пример #2
0
        /// <inheritdoc/>
        public virtual void Setup(IInspector setInspector)
        {
            inspector = setInspector;
            inspector.State.OnInspectedTargetsChanged -= OnInspectedTargetsChanged;
            inspector.State.OnInspectedTargetsChanged += OnInspectedTargetsChanged;

            items        = ToolbarUtility.GetItemsForToolbar(setInspector, this);
            visibleItems = items;
            UpdateVisibleItems();
            updateToolbarItemBounds         = true;
            inspector.State.OnWidthChanged += UpdateToolbarItemBounds;
        }