예제 #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        private void HandleValueChanged(NavItem <float> pNavItem)
        {
            Color col = DemoEnvironment.HsvToColor(vHueSlider.RangeValue, 1, 0.666f);

            Color colFade = col;

            colFade.a = 0.25f;

            SegmentSettings.Fill(vRootSettings, vHueSettings);
            vHueSettings.SelectionColor   = col;
            vHueSettings.SliderTrackColor = colFade;
            vHueSettings.SliderFillColor  = colFade;
        }
예제 #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        private void HandleValueChanged(ISelectableItem pItem)
        {
            Color col = DemoEnvironment.HsvToColor(vHueSlider.RangeValue, 1, 0.666f);

            Color colFade = col;

            colFade.a = 0.25f;

            vHueSettings.FillWith(vDefaultSettings, false);
            vHueSettings.Renderer         = typeof(UiItemSliderRenderer);
            vHueSettings.SelectionColor   = col;
            vHueSettings.SliderTrackColor = colFade;
            vHueSettings.SliderFillColor  = colFade;
        }