mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
improve render shortcut stroke
This commit is contained in:
parent
94fa2007ec
commit
2fedd4811d
@ -117,7 +117,7 @@ fun SubMenu(
|
||||
|
||||
@Composable
|
||||
fun MenuColumn(
|
||||
content: @Composable ColumnScope.() -> Unit
|
||||
content: @Composable ColumnScope.() -> Unit,
|
||||
) {
|
||||
val shape = LocalMenuBoxClip.current
|
||||
Column(
|
||||
@ -389,18 +389,14 @@ fun RenderShortcutStroke(shortcutStroke: KeyStroke) {
|
||||
horizontalArrangement = Arrangement.spacedBy(1.dp)
|
||||
) {
|
||||
val shape = RoundedCornerShape(10)
|
||||
for (it in modifiers) {
|
||||
WithContentAlpha(0.75f) {
|
||||
WithContentColor(myColors.onBackground) {
|
||||
Text(
|
||||
it,
|
||||
Modifier
|
||||
.clip(shape)
|
||||
.background(myColors.onBackground / 5)
|
||||
.padding(2.dp)
|
||||
)
|
||||
}
|
||||
}
|
||||
WithContentColor(myColors.onBackground) {
|
||||
Text(
|
||||
modifiers.joinToString("+"),
|
||||
Modifier
|
||||
.clip(shape)
|
||||
.background(myColors.onBackground / 5)
|
||||
.padding(2.dp)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user