diff --git a/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/bridge/styling/BridgeMarkdownStyling.kt b/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/bridge/styling/BridgeMarkdownStyling.kt index fb075dfabc..f55a774026 100644 --- a/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/bridge/styling/BridgeMarkdownStyling.kt +++ b/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/bridge/styling/BridgeMarkdownStyling.kt @@ -8,7 +8,6 @@ import androidx.compose.ui.graphics.PathEffect import androidx.compose.ui.graphics.RectangleShape import androidx.compose.ui.graphics.Shape import androidx.compose.ui.graphics.StrokeCap -import androidx.compose.ui.graphics.drawscope.Stroke import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.text.SpanStyle import androidx.compose.ui.text.TextStyle @@ -349,7 +348,6 @@ public fun InlinesStyling.Companion.create( ), linkFocused: SpanStyle = link.copy( - drawStyle = Stroke(width = 2f), color = JBUI.CurrentTheme.Link.Foreground.ENABLED.toComposeColor(), background = JBUI.CurrentTheme.ActionButton.hoverBackground().toComposeColor(), textDecoration = TextDecoration.Underline, @@ -358,6 +356,7 @@ public fun InlinesStyling.Companion.create( link.copy( color = JBUI.CurrentTheme.Link.Foreground.PRESSED.toComposeColor(), background = JBUI.CurrentTheme.ActionButton.pressedBackground().toComposeColor(), + textDecoration = TextDecoration.Underline, ), linkVisited: SpanStyle = link.copy(color = JBUI.CurrentTheme.Link.Foreground.VISITED.toComposeColor()), emphasis: SpanStyle = textStyle.copy(fontStyle = FontStyle.Italic).toSpanStyle(), diff --git a/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/standalone/styling/IntUiMarkdownStyling.kt b/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/standalone/styling/IntUiMarkdownStyling.kt index bba915d62e..2535177d76 100644 --- a/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/standalone/styling/IntUiMarkdownStyling.kt +++ b/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/standalone/styling/IntUiMarkdownStyling.kt @@ -601,7 +601,7 @@ public fun InlinesStyling.Companion.light( linkDisabled: SpanStyle = link.copy(color = IntUiLightTheme.colors.gray(8)), linkHovered: SpanStyle = link.copy(textDecoration = TextDecoration.Underline), linkFocused: SpanStyle = link.copy(background = Color(0x12000000), textDecoration = TextDecoration.Underline), - linkPressed: SpanStyle = link.copy(background = Color(0x1D000000)), + linkPressed: SpanStyle = link.copy(background = Color(0x1D000000), textDecoration = TextDecoration.Underline), linkVisited: SpanStyle = link, emphasis: SpanStyle = textStyle.copy(fontStyle = FontStyle.Italic).toSpanStyle(), strongEmphasis: SpanStyle = textStyle.copy(fontWeight = FontWeight.Bold).toSpanStyle(), @@ -633,7 +633,7 @@ public fun InlinesStyling.Companion.dark( linkDisabled: SpanStyle = link.copy(color = IntUiDarkTheme.colors.gray(8)), linkHovered: SpanStyle = link.copy(textDecoration = TextDecoration.Underline), linkFocused: SpanStyle = link.copy(background = Color(0x16FFFFFF), textDecoration = TextDecoration.Underline), - linkPressed: SpanStyle = link.copy(background = Color(0x26FFFFFF)), + linkPressed: SpanStyle = link.copy(background = Color(0x26FFFFFF), textDecoration = TextDecoration.Underline), linkVisited: SpanStyle = link, emphasis: SpanStyle = textStyle.copy(fontStyle = FontStyle.Italic).toSpanStyle(), strongEmphasis: SpanStyle = textStyle.copy(fontWeight = FontWeight.Bold).toSpanStyle(),