-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popup's can't have transparent background anymore. #86580
Comments
Have you set |
@AThousandShips hey, no i haven't. How do i set transparent to true in the popup of an optionbutton? |
You get the popup with |
@AThousandShips so if i want to use a theme that has a style like this, i need to also add a script that does this? I only want to have themes and be able to change them. |
Adding a script that sets |
(please don't tag me, it's just us here, I don't need the additional notifications) This is a limitation, transparent backgrounds are expensive and it's not possible to just detect this easily, so it's something you need to do manually If you want to change this you need to open a proposal as this isn't a bug, assuming it works with the correct fix |
Ok, sorry for the tag. I'll look into writing a proposal. |
Closing as per the above 🙂 |
@azagaya See #76071, #81669 (comment). For a potential workaround idea see #76071 (comment) (you'd need to tweak it to your needs). |
Tested versions
Reproducible in 4.2.stable
System information
Windows 11 and Ubuntu 23.04 Godot 4.2 stable, Vulkan Forward +
Issue description
When using a stylebox (either texture, empty or flat) that does not cover the entire rect, the back of the popup will use the clear color instead of being transparent, which causes unpleasant results. This was working ok in 3.x.
This image is an example of an option button, whose popup panel has a style of a rounded flat box.
Steps to reproduce
1- Create option button
2- Add a StyleBoxFlat to the "panel" in the PopupMenu theme.
3- Round the corners of that StyleBox
4- Add items to the option button
5- Run the game and test the option button
Minimal reproduction project (MRP)
ThemeIssues.zip
The text was updated successfully, but these errors were encountered: