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

Fix toolbar buttons not being clickable at screen edges #26530

Merged
merged 2 commits into from Jan 15, 2024

Conversation

Susko3
Copy link
Member

@Susko3 Susko3 commented Jan 14, 2024

out.mp4

The buttons are expanded so the currently padded region is also clickable. With this change, the buttons can be clicked at the very edge of the screen.

The PR simply nests the button content into a container and applies the padding there.

The only visual change is the position of the position of the tooltip text. I the new position aligns better with the button (I'm guessing the tooltip position change in the new design was unintentional):

master This PR
image image

Also, on master, the text is misaligned as the gamemode buttons have different padding (3f vs 5f).

image

@@ -42,52 +42,59 @@ private void load(OsuConfigManager config)
clockDisplayMode = config.GetBindable<ToolbarClockDisplayMode>(OsuSetting.ToolbarClockDisplayMode);
prefer24HourTime = config.GetBindable<bool>(OsuSetting.Prefer24HourTime);

Padding = new MarginPadding(3);

Children = new Drawable[]
Copy link
Member

Choose a reason for hiding this comment

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

This was old code, but can make this Child for less indent.

@peppy peppy self-requested a review January 15, 2024 04:44
@peppy
Copy link
Sponsor Member

peppy commented Jan 15, 2024

I really hate how this feels but sure it's what people seem to want.

@peppy peppy merged commit 0f521d6 into ppy:master Jan 15, 2024
15 of 17 checks passed
peppy added a commit to peppy/osu that referenced this pull request Jan 15, 2024
…target

Fix toolbar buttons not being clickable at screen edges
@Susko3 Susko3 deleted the expand-toolbar-button-click-target branch January 15, 2024 08:18
dani211e added a commit to dani211e/osu-tools that referenced this pull request Jan 18, 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.

None yet

3 participants