Skip to content
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

Editor: Popup stylebox is not transparent. #70627

Closed
pegasusearl opened this issue Dec 27, 2022 · 7 comments
Closed

Editor: Popup stylebox is not transparent. #70627

pegasusearl opened this issue Dec 27, 2022 · 7 comments

Comments

@pegasusearl
Copy link

pegasusearl commented Dec 27, 2022

Godot version

v4.0.beta10.official [d0398f6]

System information

Manjaro Linux x86_64, Vulkan, NVIDIA GeForce GTX 1650

Issue description

Hello, I'm not sure if it's bug or not. Maybe it's supposed to work this way now that we have multi-window?

In Godot 4, when using custom theme utilizing transparency on Popups derivative object, it's not rendered transparent.
Screenshot from 2022-12-27 19-30-44

While in Godot 3, it rendered properly.
Screenshot from 2022-12-27 19-33-27

Steps to reproduce

Assign Custom Editor Theme that uses transparency on Popup derivative items such as PopupMenu or TooltipPanel.

  • Open the minimal reproduction project.
  • Go to Editor > Editor Settings > Interface/Theme
  • Then assign Custom Theme to theme.tres inside the attached minimal reproduction project.

Test by opening MenuBar and by trying to show Tooltips in the editor.

output.mp4

Menubar is using StyleBoxFlat, using shadows. The shadow is rendered without transparency and it's cropped to only shows the panel. Outside rounded corner is not transparent as well.

Tooltips is using StyleBoxTexture, everything is rendered without being cropped but no transparency.

Minimal reproduction project

MinimalUiReproduction.zip

@KoBeWi
Copy link
Member

KoBeWi commented Dec 27, 2022

You need to enable transparent property in Popup.

@pegasusearl
Copy link
Author

You need to enable transparent property in Popup.

Ah good to know.
hmm but it looks like it's for runtime only since it's in the Node's property rather than the theme/stylebox, I can't find a way to do it for editor.

@KoBeWi
Copy link
Member

KoBeWi commented Dec 27, 2022

image

@Calinou
Copy link
Member

Calinou commented Dec 27, 2022

This requires transparent windows to be rendered correctly in Godot 4, unless Single Window Mode is enabled in the editor settings. (This is not required for running projects as the Embed Subwindows project setting is enabled by default.)

@Calinou Calinou added this to the 4.0 milestone Dec 29, 2022
@iacore
Copy link

iacore commented Jan 1, 2023

Maybe this is related to #70814

@Kubulambula
Copy link
Contributor

For anyone encountering this issue:
Enabling transparent_bg in addition with enabling transparent solved this issue for me

@YuriSizov YuriSizov modified the milestones: 4.0, 4.x Feb 21, 2023
@Calinou
Copy link
Member

Calinou commented Jul 27, 2023

Closing in favor of #76071, as this is due to the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants