mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 11:34:18 +08:00
style: shorted variable names
This commit is contained in:
@@ -150,9 +150,9 @@ private fun MenuItemContent(
|
|||||||
.onHover { hovered = it }
|
.onHover { hovered = it }
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.sizeIn(
|
.sizeIn(
|
||||||
minWidth = DefaultDesktopContextMenuContentMinWidth,
|
minWidth = DefaultMenuContentMinWidth,
|
||||||
maxWidth = DefaultDesktopContextMenuContentMaxWidth,
|
maxWidth = DefaultMenuContentMaxWidth,
|
||||||
minHeight = DefaultDesktopContextMenuContentMinHeight
|
minHeight = DefaultMenuContentMinHeight
|
||||||
),
|
),
|
||||||
color = Color.Transparent,
|
color = Color.Transparent,
|
||||||
style = style,
|
style = style,
|
||||||
@@ -209,8 +209,8 @@ internal fun defaultContextMenuColors() = ContextMenuColors(
|
|||||||
internal fun defaultContextMenuStyle() = ContextMenuStyle(
|
internal fun defaultContextMenuStyle() = ContextMenuStyle(
|
||||||
contentStyle = LocalContextMenuStyle.current.contentStyle ?: AreaBox.style.copy(
|
contentStyle = LocalContextMenuStyle.current.contentStyle ?: AreaBox.style.copy(
|
||||||
padding = 0.dp,
|
padding = 0.dp,
|
||||||
startPadding = DefaultDesktopContextMenuContentPadding,
|
startPadding = DefaultMenuContentPadding,
|
||||||
endPadding = DefaultDesktopContextMenuContentPadding,
|
endPadding = DefaultMenuContentPadding,
|
||||||
shape = LocalShapes.current.secondary
|
shape = LocalShapes.current.secondary
|
||||||
),
|
),
|
||||||
borderStyle = LocalContextMenuStyle.current.borderStyle ?: AreaBox.style.copy(
|
borderStyle = LocalContextMenuStyle.current.borderStyle ?: AreaBox.style.copy(
|
||||||
@@ -220,7 +220,7 @@ internal fun defaultContextMenuStyle() = ContextMenuStyle(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
private val DefaultDesktopContextMenuContentMinWidth = 112.dp
|
private val DefaultMenuContentMinWidth = 112.dp
|
||||||
private val DefaultDesktopContextMenuContentMaxWidth = 280.dp
|
private val DefaultMenuContentMaxWidth = 280.dp
|
||||||
private val DefaultDesktopContextMenuContentMinHeight = 32.dp
|
private val DefaultMenuContentMinHeight = 32.dp
|
||||||
private val DefaultDesktopContextMenuContentPadding = 16.dp
|
private val DefaultMenuContentPadding = 16.dp
|
Reference in New Issue
Block a user