style: shorted variable names

This commit is contained in:
2023-11-16 01:22:53 +08:00
parent 56440553be
commit 1020735b0c

View File

@@ -150,9 +150,9 @@ private fun MenuItemContent(
.onHover { hovered = it }
.fillMaxWidth()
.sizeIn(
minWidth = DefaultDesktopContextMenuContentMinWidth,
maxWidth = DefaultDesktopContextMenuContentMaxWidth,
minHeight = DefaultDesktopContextMenuContentMinHeight
minWidth = DefaultMenuContentMinWidth,
maxWidth = DefaultMenuContentMaxWidth,
minHeight = DefaultMenuContentMinHeight
),
color = Color.Transparent,
style = style,
@@ -209,8 +209,8 @@ internal fun defaultContextMenuColors() = ContextMenuColors(
internal fun defaultContextMenuStyle() = ContextMenuStyle(
contentStyle = LocalContextMenuStyle.current.contentStyle ?: AreaBox.style.copy(
padding = 0.dp,
startPadding = DefaultDesktopContextMenuContentPadding,
endPadding = DefaultDesktopContextMenuContentPadding,
startPadding = DefaultMenuContentPadding,
endPadding = DefaultMenuContentPadding,
shape = LocalShapes.current.secondary
),
borderStyle = LocalContextMenuStyle.current.borderStyle ?: AreaBox.style.copy(
@@ -220,7 +220,7 @@ internal fun defaultContextMenuStyle() = ContextMenuStyle(
)
)
private val DefaultDesktopContextMenuContentMinWidth = 112.dp
private val DefaultDesktopContextMenuContentMaxWidth = 280.dp
private val DefaultDesktopContextMenuContentMinHeight = 32.dp
private val DefaultDesktopContextMenuContentPadding = 16.dp
private val DefaultMenuContentMinWidth = 112.dp
private val DefaultMenuContentMaxWidth = 280.dp
private val DefaultMenuContentMinHeight = 32.dp
private val DefaultMenuContentPadding = 16.dp