Reduced size of buttons in menu
This commit is contained in:
parent
f2412616af
commit
1847eb42e9
@ -139,9 +139,9 @@ fun MenuButton(
|
|||||||
.handMouseClickable { if (enabled) onClick() }
|
.handMouseClickable { if (enabled) onClick() }
|
||||||
.run {
|
.run {
|
||||||
return@run if (fixedWidth) {
|
return@run if (fixedWidth) {
|
||||||
this.width(100.dp)
|
this.width(92.dp)
|
||||||
} else
|
} else
|
||||||
this.padding(horizontal = 16.dp)
|
this.padding(horizontal = 8.dp)
|
||||||
},
|
},
|
||||||
horizontalArrangement = Arrangement.Center,
|
horizontalArrangement = Arrangement.Center,
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
@ -151,7 +151,7 @@ fun MenuButton(
|
|||||||
contentDescription = title,
|
contentDescription = title,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(vertical = 2.dp)
|
.padding(vertical = 2.dp)
|
||||||
.size(24.dp),
|
.size(20.dp),
|
||||||
tint = MaterialTheme.colors.onPrimary,
|
tint = MaterialTheme.colors.onPrimary,
|
||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
@ -185,7 +185,7 @@ fun ExtendedMenuButton(
|
|||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.width(92.dp)
|
.width(84.dp)
|
||||||
.handMouseClickable { if (enabled) onClick() },
|
.handMouseClickable { if (enabled) onClick() },
|
||||||
horizontalArrangement = Arrangement.Center,
|
horizontalArrangement = Arrangement.Center,
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
@ -194,7 +194,7 @@ fun ExtendedMenuButton(
|
|||||||
painter = icon,
|
painter = icon,
|
||||||
contentDescription = title,
|
contentDescription = title,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(24.dp),
|
.size(20.dp),
|
||||||
tint = MaterialTheme.colors.onPrimary,
|
tint = MaterialTheme.colors.onPrimary,
|
||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
|
Loading…
Reference in New Issue
Block a user