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

Adjust media layouts #1938

Merged
merged 2 commits into from
Jan 5, 2024
Merged

Adjust media layouts #1938

merged 2 commits into from
Jan 5, 2024

Conversation

fstanis
Copy link
Contributor

@fstanis fstanis commented Jan 4, 2024

WHAT

Changes media-ui components to use the new recommended redlines (percent-based). This is the first part of a larger set of changes that will follow.

WHY

Makes the UI cleaner on larger devices.

HOW

By using ConstrantLayout for PlayerScreen.

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

@fstanis fstanis requested a review from yschimke January 4, 2024 17:15
@fstanis fstanis force-pushed the media-layout branch 3 times, most recently from 7aeadbb to cc2ab3b Compare January 4, 2024 19:16
Copy link
Collaborator

@yschimke yschimke left a comment

Choose a reason for hiding this comment

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

After addressing comments.

gradle/libs.versions.toml Outdated Show resolved Hide resolved
@@ -37,8 +39,9 @@ public fun UampSettingsButtons(
enabled: Boolean = true,
) {
Row(
modifier = modifier,
modifier = modifier.fillMaxWidth(0.8124f),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be pulled up? Should these components care, or applied by the container above and passed in as modifier, or some box with extra constraints?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is still an open question - currently, one of the ideas is that if there's a single button, the whole lower area should be that one button, meaning that this can't be pulled up. However, I decided to make the current UAMP layout use the same recommended padding (9.38% on each side) so that we can prototype options for two and three button layouts this way.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's discuss in chat, but would be good to double check this is deliberate, given the gaps are there to avoid touching with RSB.

media/ui/build.gradle.kts Outdated Show resolved Hide resolved
@fstanis fstanis enabled auto-merge (squash) January 5, 2024 15:16
@fstanis fstanis merged commit 754aa04 into google:main Jan 5, 2024
4 checks passed
@yschimke
Copy link
Collaborator

yschimke commented Jan 5, 2024

cc @kul3r4

@fstanis fstanis mentioned this pull request Mar 26, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants