Skip to content

Commit

Permalink
TEMP : Show TMI and color field
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Jul 23, 2024
1 parent 6fd2445 commit a9caaf5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions python/GafferUI/ColorChooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,15 +481,14 @@ def __init__( self, color=imath.Color3f( 1 ), **kw ) :

self.__colorField = _ColorField( color, "h" )
self.__colorValueChangedConnection = self.__colorField.valueChangedSignal().connect( Gaffer.WeakMethod( self.__colorValueChanged ), scoped = False )
# \todo Don't hide color field when we're ready to expose the UI
self.__colorField.setVisible( False )

with GafferUI.GridContainer( spacing = 4 ) :

# sliders and numeric widgets
c, staticComponent = self.__colorField.getColor()
for row, component in enumerate( "rgbahsvtmi" ) :
self.__channelLabels[component] = GafferUI.Label( component.capitalize(), parenting = { "index" : ( 0, row ), "alignment" : ( GafferUI.HorizontalAlignment.Center, GafferUI.VerticalAlignment.Center ) } )
self.__channelLabels[component]._qtWidget().setObjectName( "gafferColorComponentLabel" )

if component != "a" :
if component == staticComponent :
Expand Down Expand Up @@ -545,12 +544,6 @@ def __init__( self, color=imath.Color3f( 1 ), **kw ) :

self.__colorChangedSignal = Gaffer.Signals.Signal2()

# \todo Don't hide TMI sliders when we're ready to expose the new UI
for c in "tmi" :
self.__channelLabels[c].setVisible( False )
self.__numericWidgets[c].setVisible( False )
self.__sliders[c].setVisible( False )

self.__updateUIFromColor()

## The default color starts as the value passed when creating the widget.
Expand Down

0 comments on commit a9caaf5

Please sign in to comment.