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

Don't use rounded corners for PopupMenus in the editor theme #59045

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Mar 11, 2022

PopupMenus use separate windows by default in the editor, and windows no longer support per-pixel transparency for now in 4.0. Even if per-pixel transparency was reimplemented, we can't assume that it'll always work in practice (e.g. when compositing is disabled).

This closes #56009.

Preview

Scaled to 400% with nearest-neighbor filtering.

Before

2022-03-11_21 53 03

After

2022-03-11_21 54 06

@fire-forge
Copy link
Contributor

fire-forge commented Mar 11, 2022

Couldn't the window background color be changed to use the border color instead? That would allow the inner section of the window to have rounded corners while still fixing the corner pixels.

@Riteo
Copy link
Contributor

Riteo commented Mar 26, 2022

tbh I also prefer the non rounded look on these popups, they aren't normal windows after all.

@Chaosus Chaosus added this to the 4.0 milestone Aug 13, 2022
@YuriSizov
Copy link
Contributor

To address the suggestion above, this could work, but I like this PR as an immediate fix. We can experiment more later.

PopupMenus use separate windows by default in the editor, and windows
no longer support per-pixel transparency for now in 4.0.
Even if per-pixel transparency was reimplemented, we can't assume
that it'll always work in practice (e.g. when compositing is disabled).
@Calinou Calinou force-pushed the editor-theme-popup-no-rounded-corners branch from d25dfce to ce8b402 Compare August 18, 2022 20:48
@Calinou
Copy link
Member Author

Calinou commented Aug 18, 2022

Rebased and tested again, it works as expected.

@YuriSizov YuriSizov merged commit 0d95b8b into godotengine:master Aug 18, 2022
@YuriSizov
Copy link
Contributor

Thanks!

@Calinou Calinou deleted the editor-theme-popup-no-rounded-corners branch August 19, 2022 00:08
RedMser added a commit to RedMser/godot that referenced this pull request Sep 2, 2022
Expands godotengine#59045 to apply to all kinds of popups,
since they all render as separate windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editor popup menu's corners are not transparent
6 participants