Skip to content

Commit

Permalink
fix paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarponi committed Dec 11, 2023
1 parent 8adb802 commit 7f9a4fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ private fun readMenuStyle(): MenuStyle {
),
separatorThickness = retrieveIntAsDpOrUnspecified("PopupMenuSeparator.stripeWidth")
.takeOrElse { 0.dp },
iconSize = 16.dp
),
submenuMetrics = SubmenuMetrics(offset = DpOffset(0.dp, (-8).dp)),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,19 @@ public fun MenuMetrics.Companion.defaults(

public fun MenuItemMetrics.Companion.defaults(
selectionCornerSize: CornerSize = CornerSize(4.dp),
outerPadding: PaddingValues = PaddingValues(horizontal = 4.dp),
contentPadding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 4.dp),
outerPadding: PaddingValues = PaddingValues(horizontal = 6.dp),
contentPadding: PaddingValues = PaddingValues(horizontal = 10.dp, vertical = 4.dp),
separatorPadding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 4.dp),
separatorThickness: Dp = 1.dp,
iconSize: Dp = 16.dp,
): MenuItemMetrics =
MenuItemMetrics(
selectionCornerSize,
outerPadding,
contentPadding,
separatorPadding,
separatorThickness,
iconSize
)

public fun SubmenuMetrics.Companion.defaults(
Expand Down

0 comments on commit 7f9a4fd

Please sign in to comment.