OptionButton theming - how to get rid of the PopupMenu grey background

Godot Version

4.3

Question

I have successfully (after much faffing!) themed a OptionButton and its PopupMenu (Love godot, but this could be documented better :slight_smile: ) - however I still have a grey background on the popup I cannot shift.

CleanShot 2024-09-14 at 19.08.15

I cant find any setting in the Theme to get rid of this.

I found OptionButton popupmenu background styling - #10 by zdrmlpzdrmlp which indicates I might need to do this with some GDScript?

1 Like

try comparing the fps difference between custom made window/popup vs godot’s built in popup menu. it will tell a lot
by i meant custom made is not by using Window’s type node as its base. just a simple Control

Hi @zdrmlpzdrmlp - thanks for the reply. I’m not considering using a anything but the default Control bases popup.

The question was more “is there no way to control that transparency within the Theme config?”

As it stands, it seems that is something you need code for.

I simply made a script on the node with

func _ready():
    get_popup().transparent = true

Shame its not in the Theme settings… unless I’m missing something :slight_smile: Looks much better with transparency:

image

1 Like