diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt index 6bf510b05d..44361baa73 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt @@ -4850,7 +4850,7 @@ sealed class Format { val isSimplexLink = this is SimplexLink companion object { - val linkStyle @Composable get() = SpanStyle(color = LocalSimplexLinkColor.current ?: MaterialTheme.colors.primary, textDecoration = TextDecoration.Underline) + val linkStyle @Composable get() = SpanStyle(color = MaterialTheme.colors.primary, textDecoration = TextDecoration.Underline) } } diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/SimplexBrushes.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/SimplexBrushes.kt index 89d0c1e957..17c6b5c21d 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/SimplexBrushes.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/SimplexBrushes.kt @@ -21,14 +21,11 @@ import kotlin.math.cos import kotlin.math.sin // SIMPLEX 20°-tilted "sunrise" axis spans the whole chat surface (top app bar to compose bar). -// Bubble backgrounds and secondary text sample stops along this same axis so colour rises +// Bubble backgrounds sample stops along this same axis so colour rises // from bottom-left dark to top-right warm in one coordinated motion across the screen. private const val SIMPLEX_TILT_DEG = 20f -// Per-wallpaper gradient stops live in PresetWallpaper._simplexStops (ChatWallpaper.kt). -val LocalSimplexLinkColor = compositionLocalOf { null } - class ChatViewportInfo( val sizePx: State, val originInWindow: State, diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt index 8c2aa7d330..122c82546b 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt @@ -211,7 +211,6 @@ fun FramedItemView( .clipChatItem(ci, tailVisible, revealed = true) .chatBubbleBackground(sent = sent, isQuote = false, transparent = transparentBackground)) { var metaColor: Color? = null - CompositionLocalProvider(LocalSimplexLinkColor provides MaterialTheme.colors.primary) { Box(contentAlignment = Alignment.BottomEnd) { val chatItemTail = remember { appPreferences.chatItemTail.state } val style = shapeStyle(ci, chatItemTail.value, tailVisible, true) @@ -375,7 +374,6 @@ fun FramedItemView( CIMetaView(ci, chatTTL, metaColor, showViaProxy = showViaProxy, showTimestamp = showTimestamp) } } - } } }