CheckBox is leaving an outline around the box and the text when selected. Can it be removed / hidden?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robster
:warning: Old Version Published before Godot 3 was released.

Hi all,

I have checkboxes and checkbuttons and I want to have it so when you select them they don’t get the little dotted outline around them.

I can’t for the life of me find a setting. Is there one or a way to hide it via code for example?

Thanks so much.

:bust_in_silhouette: Reply From: eons

Don’t know if will be possible to change with a theme but you can get rid of that setting the focus mode to NONE, in the inspector (BaseButton section) or with set_focus_mode.
https://godot.readthedocs.io/en/stable/classes/class_control.html#numeric-constants

You will lose the navigation between controls that way.

That did it! Thank you for your help again. It makes sense now. It’s your classic keyboard focus outline and disabling it removes that ability. Much appreciated.

Robster | 2016-12-18 23:31

:bust_in_silhouette: Reply From: alanparsons

If you assign a control’s Focus style to be something other than the default the blue lines will go away.