Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fun PlaybackControls(
intervals = seekBarIntervals,
modifier =
Modifier
.padding(vertical = 8.dp)
.padding(vertical = 4.dp)
.fillMaxWidth(.95f),
)
Row(
Expand Down Expand Up @@ -555,6 +555,9 @@ fun PlaybackButtons(
}
}

private val buttonPadding = 4.dp
private val buttonSize = 40.dp

@Composable
fun PlaybackButton(
@DrawableRes iconRes: Int,
Expand All @@ -573,11 +576,11 @@ fun PlaybackButton(
containerColor = AppColors.TransparentBlack25,
focusedContainerColor = selectedColor,
),
contentPadding = PaddingValues(8.dp),
contentPadding = PaddingValues(buttonPadding),
modifier =
modifier
.padding(8.dp)
.size(56.dp, 56.dp)
.padding(buttonPadding)
.size(buttonSize)
.onFocusChanged { onControllerInteraction.invoke() },
) {
Icon(
Expand Down Expand Up @@ -607,11 +610,11 @@ fun PlaybackFaButton(
containerColor = AppColors.TransparentBlack25,
focusedContainerColor = selectedColor,
),
contentPadding = PaddingValues(8.dp),
contentPadding = PaddingValues(buttonPadding),
modifier =
modifier
.padding(8.dp)
.size(56.dp, 56.dp)
.padding(buttonPadding)
.size(buttonSize)
.onFocusChanged { onControllerInteraction.invoke() },
) {
Box(
Expand All @@ -621,7 +624,7 @@ fun PlaybackFaButton(
text = stringResource(iconRes),
fontFamily = FontAwesome,
color = MaterialTheme.colorScheme.onSurface,
fontSize = 28.sp,
fontSize = 22.sp,
modifier = Modifier.align(Alignment.Center),
)
}
Expand Down
Loading
Loading