Page MenuHome

Icons not attenuated but bright when inactive a button (UI layout)
Closed, DuplicatePublic

Description

System Information
Operating system: Windows 10
Graphics card: GT 640

Blender Version
Broken: (2.80, 8b2b79c2108c, 2019-06-06)

Short description of error

When a button is inactive with a custom external icon, the button itself is attenuated but the custom icon goes brighter instead... and more contrasted(?
So the internal icons are attenuated while the external are not but the opposite

Ref: (active from UILayout: https://docs.blender.org/api/blender2.8/bpy.types.UILayout.html)

Exact steps for others to reproduce the error

EXAMPLE CODE:

test = self.layout
test.emboss='NORMAL'
icon = pcoll["brush_icon"] # CUSTOM ICON
if wm.toggle_test:
    test.active = True
else:
    test.active = False 
test.operator("render.render", text="TEST ICON", icon_value=icon.icon_id) # when is inactive the icon draws brighter that when the ui layout it's active
row = self.layout.row()
row.prop(wm, 'toggle_test', text="", icon='CANCEL', toggle=False)

Details

Type
Bug