From 391372403c573b625401b5373e500894e4b38777 Mon Sep 17 00:00:00 2001 From: Ivan Morgillo Date: Mon, 19 Aug 2024 09:21:14 +0200 Subject: [PATCH] Fix button border alignement (#543) fix button border alignment reference https://github.com/JetBrains/jewel/issues/541 Signed-off-by: Ivan Morgillo --- ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt index 53b0460cc..60c298ca0 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Button.kt @@ -136,7 +136,7 @@ private fun ButtonImpl( alignment = style.focusOutlineAlignment, expand = style.metrics.focusOutlineExpand, ) - .border(Stroke.Alignment.Center, style.metrics.borderWidth, borderColor, shape), + .border(Stroke.Alignment.Inside, style.metrics.borderWidth, borderColor, shape), propagateMinConstraints = true, ) { val contentColor by colors.contentFor(buttonState)