+1 vote

There's a field called 'Hover' in Theme > Tree > Styles, but changing the color does nothing (hovering over a TreeItem doesn't change bg color)

Changing other fields in the Theme works, so my setup should be fine.

in Engine by (23 points)
edited by

1 Answer

0 votes

It might be the problem I experienced:
I set up a background color for each TreeItem, and then for that control a bg color for when it's selected.
Selecting individual tree items doesn't change BG color of individual tree items, this apparently because tree items are drawn in front of the Tree control, that is in charge of drawing the selected background.

The only solution I've found is to set 50% transparency of the individual custom colored tree items.

selected bg any non transparent color, treeitem bg anycolor with some degree of transparency

by (110 points)
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.