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

Visually line up the selected tab with the underlying panel with borders #48561

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 8, 2021

It's not perfect due to the lack of per-border colors in StyleBoxFlat, but it looks good enough at a glance.

This closes #48552.

Note: Not cherry-pickable to the 3.x branch as this only applies to the new editor theme.

Preview

Border Size is set to 2 to make the remaining visual discrepancy more noticeable. With Border Size set to 1, the visual discrepancy is hardly visible.

image

@YeldhamDev
Copy link
Member

I'm quite sure this PR isn't relevant anymore.

@Calinou
Copy link
Member Author

Calinou commented Aug 3, 2022

I'm quite sure this PR isn't relevant anymore.

Without this PR, I can still reproduce the original issue as of 4.0.alpha 1839cae:

image

@YeldhamDev
Copy link
Member

Oh yeah, I didn't set the border thick enough before, now I can see it. I wonder if the custom border size feature is worthy.

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me, could use a rebase.

@Calinou Calinou force-pushed the editor-theme-selected-tab-border-lineup branch from 8a07885 to dc0ac50 Compare August 3, 2022 09:32
@Calinou
Copy link
Member Author

Calinou commented Aug 3, 2022

Rebased and tested again, it works as expected:

image

@akien-mga akien-mga merged commit 9b742f8 into godotengine:master Aug 3, 2022
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the editor-theme-selected-tab-border-lineup branch August 3, 2022 14:14
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.

Tab doesn't have border in new editor theme when using non default theme border size
3 participants