|
|
@ -43,7 +43,7 @@ import org.jetbrains.compose.resources.ExperimentalResourceApi |
|
|
|
fun MemoryScreen( |
|
|
|
fun MemoryScreen( |
|
|
|
pictures: SnapshotStateList<PictureData>, |
|
|
|
pictures: SnapshotStateList<PictureData>, |
|
|
|
memoryPage: MemoryPage, |
|
|
|
memoryPage: MemoryPage, |
|
|
|
onSelectRelatedMemory: (index: Int) -> Unit, |
|
|
|
onSelectRelatedMemory: (picture: PictureData) -> Unit, |
|
|
|
onBack: (resetNavigation: Boolean) -> Unit, |
|
|
|
onBack: (resetNavigation: Boolean) -> Unit, |
|
|
|
onHeaderClick: (index: Int) -> Unit, |
|
|
|
onHeaderClick: (index: Int) -> Unit, |
|
|
|
) { |
|
|
|
) { |
|
|
@ -273,7 +273,7 @@ fun Headliner(s: String) { |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
fun RelatedMemoriesVisualizer( |
|
|
|
fun RelatedMemoriesVisualizer( |
|
|
|
pictures: List<PictureData>, |
|
|
|
pictures: List<PictureData>, |
|
|
|
onSelectRelatedMemory: (index: Int) -> Unit |
|
|
|
onSelectRelatedMemory: (picture: PictureData) -> Unit |
|
|
|
) { |
|
|
|
) { |
|
|
|
Box( |
|
|
|
Box( |
|
|
|
modifier = Modifier.padding(10.dp, 0.dp).clip(RoundedCornerShape(10.dp)).fillMaxWidth() |
|
|
|
modifier = Modifier.padding(10.dp, 0.dp).clip(RoundedCornerShape(10.dp)).fillMaxWidth() |
|
|
@ -287,7 +287,7 @@ fun RelatedMemoriesVisualizer( |
|
|
|
SquareThumbnail( |
|
|
|
SquareThumbnail( |
|
|
|
picture = item, |
|
|
|
picture = item, |
|
|
|
isHighlighted = false, |
|
|
|
isHighlighted = false, |
|
|
|
onClick = { onSelectRelatedMemory(index) }) |
|
|
|
onClick = { onSelectRelatedMemory(item) }) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|