Skip to content

Commit

Permalink
Enable to take in progressColour (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
laiyichin authored Mar 2, 2023
1 parent 14aab7b commit 305f4bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion media-ui/api/current.api
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ package com.google.android.horologist.media.ui.components.animated {
}

public final class AnimatedMediaControlButtonsKt {
method @androidx.compose.runtime.Composable @com.google.android.horologist.media.ui.ExperimentalHorologistMediaUiApi public static void AnimatedMediaControlButtons(kotlin.jvm.functions.Function0<kotlin.Unit> onPlayButtonClick, kotlin.jvm.functions.Function0<kotlin.Unit> onPauseButtonClick, boolean playPauseButtonEnabled, boolean playing, kotlin.jvm.functions.Function0<kotlin.Unit> onSeekToPreviousButtonClick, boolean seekToPreviousButtonEnabled, kotlin.jvm.functions.Function0<kotlin.Unit> onSeekToNextButtonClick, boolean seekToNextButtonEnabled, optional androidx.compose.ui.Modifier modifier, com.google.android.horologist.media.ui.state.model.TrackPositionUiModel trackPositionUiModel, optional androidx.wear.compose.material.ButtonColors colors);
method @androidx.compose.runtime.Composable @com.google.android.horologist.media.ui.ExperimentalHorologistMediaUiApi public static void AnimatedMediaControlButtons(kotlin.jvm.functions.Function0<kotlin.Unit> onPlayButtonClick, kotlin.jvm.functions.Function0<kotlin.Unit> onPauseButtonClick, boolean playPauseButtonEnabled, boolean playing, kotlin.jvm.functions.Function0<kotlin.Unit> onSeekToPreviousButtonClick, boolean seekToPreviousButtonEnabled, kotlin.jvm.functions.Function0<kotlin.Unit> onSeekToNextButtonClick, boolean seekToNextButtonEnabled, optional androidx.compose.ui.Modifier modifier, com.google.android.horologist.media.ui.state.model.TrackPositionUiModel trackPositionUiModel, optional long progressColour, optional androidx.wear.compose.material.ButtonColors colors);
}

public final class AnimatedMediaInfoDisplayKt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ package com.google.android.horologist.media.ui.components.animated
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.wear.compose.material.ButtonColors
import androidx.wear.compose.material.ButtonDefaults
import androidx.wear.compose.material.MaterialTheme
import com.google.android.horologist.media.ui.ExperimentalHorologistMediaUiApi
import com.google.android.horologist.media.ui.components.ControlButtonLayout
import com.google.android.horologist.media.ui.components.PlayPauseProgressButton
Expand All @@ -46,6 +48,7 @@ public fun AnimatedMediaControlButtons(
seekToNextButtonEnabled: Boolean,
modifier: Modifier = Modifier,
trackPositionUiModel: TrackPositionUiModel,
progressColour: Color = MaterialTheme.colors.primary,
colors: ButtonColors = MediaButtonDefaults.mediaButtonDefaultColors
) {
ControlButtonLayout(
Expand All @@ -66,7 +69,8 @@ public fun AnimatedMediaControlButtons(
playing = playing,
trackPositionUiModel = trackPositionUiModel,
modifier = Modifier.size(ButtonDefaults.LargeButtonSize),
colors = colors
colors = colors,
progressColour = progressColour
)
} else {
AnimatedPlayPauseButton(
Expand Down

0 comments on commit 305f4bb

Please sign in to comment.