I have some controls that I need to disable when they're not needed. For things like checkboxes, they go grey and it's obvious they're disabled However, I also have a ColorPickerButton and a label next to it describing its functions. Since disabling the ColorPickerButton causes no visible change, I'd like to change the color of the Label so that the user can see at a glance the control has been disabled. How can I make the label show in disabled grey?
How do I display a label as 'disabled'?
Disabling a label is not supported by Godot. You will have to do it manually, for example by creating a modified theme and switching the label over to that theme when it is disabled.
- Edited
Zini Disabling a label is not supported by Godot. You will have to do it manually, for example by creating a modified theme and switching the label over to that theme when it is disabled.
Since it's inheriting from control it should have a self modulation property. So create a function for 'disabling' the button and label and set the modulation color there too.