Grey-out value box slider icon when control is disabled

This commit is contained in:
Wojtek Figat
2024-08-28 15:49:37 +02:00
parent 0dbcdc3217
commit 353315bb43

View File

@@ -195,7 +195,7 @@ namespace FlaxEditor.GUI.Input
var style = Style.Current;
// Draw sliding UI
Render2D.DrawSprite(style.Scalar, SlideRect, style.Foreground);
Render2D.DrawSprite(style.Scalar, SlideRect, EnabledInHierarchy ? style.Foreground : style.ForegroundDisabled);
// Check if is sliding
if (_isSliding)