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:
parent
f169b4d456
commit
b9fbfdd226
1 changed files with 17 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue