Skip to content

Commit

Permalink
Merge pull request #5902 from ericmehl/colorSliderNames
Browse files Browse the repository at this point in the history
ColorChooser : Add channel names to sliders
  • Loading branch information
johnhaddon authored Jun 19, 2024
2 parents c1c1294 + 69a8825 commit 2ef9c5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1.4.x.x (relative to 1.4.7.0)
=======

Improvements
------------

- ColorChooser : Added channel names to identify sliders.

Fixes
-----

Expand Down
5 changes: 4 additions & 1 deletion python/GafferUI/ColorChooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ef9c5d

Please sign in to comment.