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

Add new footer back button and fix shearing being different between components #28183

Merged
merged 10 commits into from
May 28, 2024

Conversation

frenzibyte
Copy link
Member

@frenzibyte frenzibyte commented May 16, 2024

Preview:

CleanShot 2024-05-16 at 07 31 11

One debatable part here is that I've had to make ShearedButton accept different heights in order for the back button to match the reference design.

This is probably an indicator that the footer will look bigger than most components of the screen as I mentioned before. I think it's best to leave the footer as-is until it is fully integrated with the mod overlay, at which point adjusting the footer's measurements would be an easy thing to do.

Also includes a test case in `TestSceneShearedButton`s to ensure the buttons' shear factors don't change on different heights (I've encountered issues with that previously).
When shear factors differ between components that are close to each other (`BackButtonV2` and `ScreenFooterButton` in this case), they look completely ugly.
@peppy peppy self-requested a review May 28, 2024 06:50
Comment on lines +59 to +60
DarkerColour = Color4Extensions.FromHex("#DE31AE");
LighterColour = Color4Extensions.FromHex("#FF86DD");
Copy link
Member

Choose a reason for hiding this comment

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

I'm not 100% on these colours but will amend once things come together if they don't work.

@peppy peppy merged commit 182ca14 into ppy:master May 28, 2024
11 of 17 checks passed
@frenzibyte frenzibyte deleted the footer-v2-back-button branch May 28, 2024 09:49
@Joehuu Joehuu mentioned this pull request Jun 11, 2024
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.

2 participants