Skip to content

Extract common logic from AddToPlaylistFooterButton#36829

Open
LiquidPL wants to merge 2 commits intoppy:masterfrom
LiquidPL:sheared-button-with-icon
Open

Extract common logic from AddToPlaylistFooterButton#36829
LiquidPL wants to merge 2 commits intoppy:masterfrom
LiquidPL:sheared-button-with-icon

Conversation

@LiquidPL
Copy link
Contributor

@LiquidPL LiquidPL commented Mar 5, 2026

Depends on #36802 and ppy/osu-resources#408.

This moves out the common layout from AddToPlaylistFooterButton to
a separate ShearedFooterButton, that is intended to be used
in other screens which I'm currently working on migrating to the
new footer.

It also adds a new 'add' icon to be used on the playlists button.

Pushing this ahead of time (without any other buttons using it yet)
mostly to get the new icon on the add to playlist button.

I've set the icon size to 20. Could get it smaller, howvever
I think it should be a bit taller than the button label.

Before After
image image

LiquidPL added 2 commits March 3, 2026 17:44
This commit rearranges the contents of `ShearedButtons` to be more
independent of each other in regards to sizing. Thanks to that,
the custom logic related to enabling autosizing is no longer
necessary. With and height are no longer set via the constructor,
and can be freely configured using the initializer syntax.

Additionally, this allows the button to use relative sizing without
having to resort to any hackery with `Size`.
Depends on ppy#36802 and ppy/osu-resources#408.

This moves out the common layout from `AddToPlaylistFooterButton` to
a separate `ShearedFooterButton`, that is intended to be used
in other screens which I'm currently working on migrating them to the
new footer.

It also adds a new 'add' icon to be used on the playlists button.

Pushing this ahead of time (without any other buttons using it yet)
mostly to get the new icon on the add to playlist button.

I've set the icon size to `20`. Could get it smaller, howvever
I think it should be a *bit* taller than the button label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant