diff --git a/Changes.md b/Changes.md index bbd3fd8a666..4fa9c5895fa 100644 --- a/Changes.md +++ b/Changes.md @@ -19,6 +19,7 @@ Improvements - SceneInspector : - Added support for dragging inspector labels, such as those containing the names of attributes, options, output parameters, parameters, primitive variables, and sets. - Set names beginning with "__" such as "__lights" or "__cameras" are now displayed as-is, rather than being transformed to "Lights" or "Cameras". +- ColorChooser : Added channel names to identify sliders. Fixes ----- diff --git a/python/GafferUI/ColorChooser.py b/python/GafferUI/ColorChooser.py index b944416a72c..a2c5991dc02 100644 --- a/python/GafferUI/ColorChooser.py +++ b/python/GafferUI/ColorChooser.py @@ -130,7 +130,10 @@ def __init__( self, color=imath.Color3f( 1 ), **kw ) : for component in "rgbahsv" : with GafferUI.ListContainer( GafferUI.ListContainer.Orientation.Horizontal, spacing = 4 ) : - numericWidget = GafferUI.NumericWidget( 0.0 ) + with GafferUI.ListContainer( GafferUI.ListContainer.Orientation.Horizontal, spacing = 8 ) : + GafferUI.Label( component.capitalize() ) + numericWidget = GafferUI.NumericWidget( 0.0 ) + numericWidget.setFixedCharacterWidth( 6 ) numericWidget.component = component self.__numericWidgets[component] = numericWidget