Skip to content

Commit

Permalink
Update Player screen margins (#2432)
Browse files Browse the repository at this point in the history
* Update Player Screen margins to match new UX specs.

* Update play button size to match new UX specs.

* Update PlayerScreen.kt's bottom section margin

* Update SetVolumeButton.kt

* Update SetVolumeButton.kt

* Revert SetVolumeButton.kt update

* 🤖 Updates screenshots

---------

Co-authored-by: martenxi <[email protected]>
  • Loading branch information
martenxi and martenxi authored Oct 24, 2024
1 parent 25f5252 commit aa9e060
Show file tree
Hide file tree
Showing 42 changed files with 89 additions and 87 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public fun ControlButtonLayout(
rightButton: @Composable () -> Unit,
modifier: Modifier = Modifier,
) {
val middleSize = if (LocalConfiguration.current.isLargeScreen) 80.dp else 60.dp
val middleSize = if (LocalConfiguration.current.isLargeScreen) 72.dp else 60.dp
Row(
modifier = modifier.height(middleSize),
verticalAlignment = Alignment.CenterVertically,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ public fun PlayerScreen(
modifier = Modifier.fillMaxSize(),
) {
val (topSection, middleSection, bottomSection) = createRefs()
val startGuideline = createGuidelineFromStart(0.0938f)
val endGuideline = createGuidelineFromEnd(0.0938f)
val topGuideline = createGuidelineFromTop(0.12f)
val bottomGuideline = createGuidelineFromBottom(0.063f)
val startGuideline = createGuidelineFromStart(0.063f)
val endGuideline = createGuidelineFromEnd(0.063f)
val topGuideline = createGuidelineFromTop(0.073f)
val bottomGuideline = createGuidelineFromBottom(0.0416f)
val bottomSectionStartGuideline = createGuidelineFromStart(0.1248f)
val bottomSectionEndGuideline = createGuidelineFromEnd(0.1248f)

Box(
modifier = Modifier.constrainAs(topSection) {
Expand Down Expand Up @@ -187,8 +189,8 @@ public fun PlayerScreen(
modifier = Modifier
.constrainAs(bottomSection) {
top.linkTo(middleSection.bottom)
start.linkTo(startGuideline)
end.linkTo(endGuideline)
start.linkTo(bottomSectionStartGuideline)
end.linkTo(bottomSectionEndGuideline)
bottom.linkTo(bottomGuideline)
width = Dimension.fillToConstraints
height = Dimension.fillToConstraints
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aa9e060

Please sign in to comment.