1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-2620 Global Search | Object's connections ui (#1389)

Co-authored-by: Evgenii Kozlov <ubuphobos@gmail.com>
This commit is contained in:
Konstantin Ivanov 2024-07-12 08:42:39 +02:00 committed by GitHub
parent f169b4d456
commit b9fbfdd226
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -513,6 +513,11 @@ private fun GlobalSearchItem(
color = colorResource(id = R.color.text_secondary)
)
}
if (globalSearchItemView.links.isNotEmpty() || globalSearchItemView.backlinks.isNotEmpty()) {
SmallRectangle(
modifier = Modifier.align(Alignment.CenterEnd)
)
}
MaterialTheme(
typography = typography,
shapes = MaterialTheme.shapes.copy(medium = RoundedCornerShape(16.dp)),
@ -539,6 +544,18 @@ private fun GlobalSearchItem(
}
}
@Composable
fun SmallRectangle(modifier: Modifier) {
Box(
modifier = modifier
.size(6.dp, 28.dp)
.background(
shape = RoundedCornerShape(topStart = 4.dp, bottomStart = 4.dp),
color = colorResource(id = R.color.glyph_active)
)
)
}
@Composable
private fun DefaultMetaBlockWithHighlights(
text: String,