mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +00:00
refactor(search): simplify search component names
This commit is contained in:
@@ -7,7 +7,7 @@ import hu.bbara.purefin.ui.screen.library.LibraryScreen
|
||||
import hu.bbara.purefin.ui.screen.login.LoginScreen
|
||||
import hu.bbara.purefin.ui.screen.AppScreen
|
||||
import hu.bbara.purefin.ui.screen.episode.EpisodeScreen
|
||||
import hu.bbara.purefin.ui.screen.home.components.search.HomeSearchFullScreen
|
||||
import hu.bbara.purefin.ui.screen.home.components.search.SearchFullScreen
|
||||
import hu.bbara.purefin.ui.screen.movie.MovieScreen
|
||||
import hu.bbara.purefin.ui.screen.series.SeriesScreen
|
||||
|
||||
@@ -23,7 +23,7 @@ fun EntryProviderScope<Route>.appRouteEntryBuilder() {
|
||||
CompositionLocalProvider(
|
||||
LocalNavSharedAnimatedVisibilityScope provides LocalNavAnimatedContentScope.current
|
||||
) {
|
||||
HomeSearchFullScreen()
|
||||
SearchFullScreen()
|
||||
}
|
||||
}
|
||||
entry<Route.MovieRoute> {
|
||||
|
||||
@@ -62,7 +62,7 @@ import hu.bbara.purefin.ui.theme.AppTheme
|
||||
|
||||
@OptIn(ExperimentalLayoutApi::class, ExperimentalSharedTransitionApi::class)
|
||||
@Composable
|
||||
fun HomeSearchFullScreen(
|
||||
fun SearchFullScreen(
|
||||
modifier: Modifier = Modifier
|
||||
) {
|
||||
val scheme = MaterialTheme.colorScheme
|
||||
@@ -388,9 +388,9 @@ private fun CategoryCard(
|
||||
|
||||
@Preview(showBackground = true)
|
||||
@Composable
|
||||
private fun HomeSearchFullScreenPreview() {
|
||||
private fun SearchFullScreenPreview() {
|
||||
AppTheme {
|
||||
HomeSearchFullScreen(modifier = Modifier.fillMaxSize())
|
||||
SearchFullScreen(modifier = Modifier.fillMaxSize())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ import hu.bbara.purefin.model.MediaKind
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun HomeSearchOverlay(
|
||||
fun SearchOverlay(
|
||||
visible: Boolean,
|
||||
topPadding: Dp,
|
||||
onDismiss: () -> Unit,
|
||||
@@ -138,7 +138,7 @@ fun HomeSearchOverlay(
|
||||
modifier = Modifier.background(MaterialTheme.colorScheme.surface)
|
||||
) {
|
||||
items(searchResults, key = { result -> "${result.type}:${result.id}" }) { item ->
|
||||
HomeSearchResultCard(
|
||||
SearchResultCard(
|
||||
item = item,
|
||||
onClick = {
|
||||
when (item.type) {
|
||||
@@ -22,7 +22,7 @@ import hu.bbara.purefin.feature.search.SearchResult
|
||||
import hu.bbara.purefin.ui.common.image.PurefinAsyncImage
|
||||
|
||||
@Composable
|
||||
internal fun HomeSearchResultCard(
|
||||
internal fun SearchResultCard(
|
||||
item: SearchResult,
|
||||
onClick: () -> Unit,
|
||||
modifier: Modifier = Modifier
|
||||
Reference in New Issue
Block a user