diff --git a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListenedCategoriesView.kt b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListenedCategoriesView.kt index 742b4d2f828..419124bd70c 100644 --- a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListenedCategoriesView.kt +++ b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListenedCategoriesView.kt @@ -17,12 +17,12 @@ import androidx.compose.ui.platform.LocalView import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.intl.Locale import androidx.compose.ui.unit.dp -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCover -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCoverType +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCover +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCoverType +import au.com.shiftyjelly.pocketcasts.compose.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastLogoWhite import au.com.shiftyjelly.pocketcasts.endofyear.components.StoryPrimaryText import au.com.shiftyjelly.pocketcasts.endofyear.components.StorySecondaryText -import au.com.shiftyjelly.pocketcasts.endofyear.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.utils.podcastDynamicBackground import au.com.shiftyjelly.pocketcasts.repositories.endofyear.stories.StoryListenedCategories import au.com.shiftyjelly.pocketcasts.utils.extensions.pxToDp diff --git a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListenedNumbersView.kt b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListenedNumbersView.kt index c055a384452..ea81cca4ad3 100644 --- a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListenedNumbersView.kt +++ b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListenedNumbersView.kt @@ -19,11 +19,11 @@ import androidx.compose.ui.platform.LocalView import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.intl.Locale import androidx.compose.ui.unit.dp -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCover +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCover +import au.com.shiftyjelly.pocketcasts.compose.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastLogoWhite import au.com.shiftyjelly.pocketcasts.endofyear.components.StoryPrimaryText import au.com.shiftyjelly.pocketcasts.endofyear.components.StorySecondaryText -import au.com.shiftyjelly.pocketcasts.endofyear.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.utils.podcastDynamicBackground import au.com.shiftyjelly.pocketcasts.localization.R import au.com.shiftyjelly.pocketcasts.models.db.helper.TopPodcast diff --git a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListeningTimeView.kt b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListeningTimeView.kt index df02359d564..8bc05597429 100644 --- a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListeningTimeView.kt +++ b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryListeningTimeView.kt @@ -19,12 +19,12 @@ import androidx.compose.ui.platform.LocalView import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.intl.Locale import androidx.compose.ui.unit.dp -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCover -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCoverType +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCover +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCoverType +import au.com.shiftyjelly.pocketcasts.compose.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastLogoWhite import au.com.shiftyjelly.pocketcasts.endofyear.components.StoryPrimaryText import au.com.shiftyjelly.pocketcasts.endofyear.components.StorySecondaryText -import au.com.shiftyjelly.pocketcasts.endofyear.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.utils.podcastDynamicBackground import au.com.shiftyjelly.pocketcasts.repositories.endofyear.stories.StoryListeningTime import au.com.shiftyjelly.pocketcasts.settings.stats.StatsHelper diff --git a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryLongestEpisodeView.kt b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryLongestEpisodeView.kt index e47edd1154f..796f5d6e512 100644 --- a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryLongestEpisodeView.kt +++ b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryLongestEpisodeView.kt @@ -17,13 +17,13 @@ import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalView import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCover -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCoverType +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCover +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCoverType +import au.com.shiftyjelly.pocketcasts.compose.components.RectangleCover +import au.com.shiftyjelly.pocketcasts.compose.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastLogoWhite -import au.com.shiftyjelly.pocketcasts.endofyear.components.RectangleCover import au.com.shiftyjelly.pocketcasts.endofyear.components.StoryPrimaryText import au.com.shiftyjelly.pocketcasts.endofyear.components.StorySecondaryText -import au.com.shiftyjelly.pocketcasts.endofyear.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.utils.podcastDynamicBackground import au.com.shiftyjelly.pocketcasts.localization.R import au.com.shiftyjelly.pocketcasts.repositories.endofyear.stories.StoryLongestEpisode diff --git a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryTopPodcastView.kt b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryTopPodcastView.kt index 91d2d74d5af..6bdfe16022d 100644 --- a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryTopPodcastView.kt +++ b/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/views/stories/StoryTopPodcastView.kt @@ -17,13 +17,13 @@ import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalView import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCover -import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastCoverType +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCover +import au.com.shiftyjelly.pocketcasts.compose.components.PodcastCoverType +import au.com.shiftyjelly.pocketcasts.compose.components.RectangleCover +import au.com.shiftyjelly.pocketcasts.compose.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.components.PodcastLogoWhite -import au.com.shiftyjelly.pocketcasts.endofyear.components.RectangleCover import au.com.shiftyjelly.pocketcasts.endofyear.components.StoryPrimaryText import au.com.shiftyjelly.pocketcasts.endofyear.components.StorySecondaryText -import au.com.shiftyjelly.pocketcasts.endofyear.components.transformPodcastCover import au.com.shiftyjelly.pocketcasts.endofyear.utils.podcastDynamicBackground import au.com.shiftyjelly.pocketcasts.localization.R import au.com.shiftyjelly.pocketcasts.repositories.endofyear.stories.StoryTopPodcast diff --git a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/components/PodcastCover.kt b/modules/services/compose/src/main/java/au/com/shiftyjelly/pocketcasts/compose/components/PodcastCover.kt similarity index 91% rename from modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/components/PodcastCover.kt rename to modules/services/compose/src/main/java/au/com/shiftyjelly/pocketcasts/compose/components/PodcastCover.kt index 53968f9d7a3..66e27e4bad2 100644 --- a/modules/features/endofyear/src/main/java/au/com/shiftyjelly/pocketcasts/endofyear/components/PodcastCover.kt +++ b/modules/services/compose/src/main/java/au/com/shiftyjelly/pocketcasts/compose/components/PodcastCover.kt @@ -1,10 +1,11 @@ -package au.com.shiftyjelly.pocketcasts.endofyear.components +package au.com.shiftyjelly.pocketcasts.compose.components import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.Card +import androidx.compose.material.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.draw.drawWithContent @@ -12,7 +13,6 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.drawscope.withTransform import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import au.com.shiftyjelly.pocketcasts.compose.components.PodcastImage @Composable fun PodcastCover( @@ -31,8 +31,8 @@ fun PodcastCover( @Composable fun RectangleCover( coverWidth: Dp, - backgroundColor: Color, modifier: Modifier = Modifier, + backgroundColor: Color = MaterialTheme.colors.surface, ) { Box( modifier = modifier.size(coverWidth)