This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

hi guys
image

got that frame around flat button, after she was pressed or keyboard switching on another,
how can i fix this?
or only swap for texture button will help?

Godot version 3.2.4
in Engine by (16 points)

1 Answer

+3 votes

You can change this behavior with a theme. In the button's properties, give it a theme (near the bottom). In that theme, click "Edit Theme" then "Add Class Items" and put in Button. Then your theme should have received extra properties on the right. In Button/Styles set Focus to a new StyleBoxEmpty.
You can save your theme to a file to give multiple buttons the same theme.

This rectangle indicates that your button is selected, which is an important information when trying to use your interface with a keyboard or a controller. You may want to make it look better instead of just removing the information.

by (2,720 points)

it didn't work in theme parameters, but works in button custom style parameters lol

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.