mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3314 Navigation | Fix | Navigation panel fixes (#2051)
This commit is contained in:
parent
a86560a800
commit
a3e5d97ba8
24 changed files with 217 additions and 118 deletions
|
@ -112,17 +112,19 @@ fun SpaceHeader(
|
|||
)
|
||||
}
|
||||
}
|
||||
DropdownMenuItem(
|
||||
onClick = {
|
||||
onRemoveIconClicked()
|
||||
isSpaceIconMenuExpanded.value = false
|
||||
},
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(R.string.remove_image),
|
||||
style = BodyRegular,
|
||||
color = colorResource(id = R.color.text_primary)
|
||||
)
|
||||
if (icon is SpaceIconView.Image) {
|
||||
DropdownMenuItem(
|
||||
onClick = {
|
||||
onRemoveIconClicked()
|
||||
isSpaceIconMenuExpanded.value = false
|
||||
},
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(R.string.remove_image),
|
||||
style = BodyRegular,
|
||||
color = colorResource(id = R.color.text_primary)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -136,25 +138,4 @@ fun SpaceHeader(
|
|||
isEditEnabled = isEditEnabled
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun GradientComposeView(
|
||||
modifier: Modifier,
|
||||
from: String,
|
||||
to: String,
|
||||
size: Dp
|
||||
) {
|
||||
val gradient = Brush.radialGradient(
|
||||
colors = listOf(
|
||||
Color(from.toColorInt()),
|
||||
Color(to.toColorInt())
|
||||
)
|
||||
)
|
||||
Box(
|
||||
modifier = modifier
|
||||
.size(size)
|
||||
.clip(CircleShape)
|
||||
.background(gradient)
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue