Remove unused span styles (#3970)

This commit is contained in:
David Perez
2024-09-26 08:57:37 -05:00
committed by GitHub
parent 61b09fe8f1
commit dad501d37e

View File

@@ -1,21 +0,0 @@
package com.x8bit.bitwarden.ui.platform.theme
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.TextStyle
/**
* Defines a span style for clickable span texts. Useful because spans require a
* [SpanStyle] instead of the typical [TextStyle].
*/
@Composable
@ReadOnlyComposable
fun clickableSpanStyle(): SpanStyle = SpanStyle(
color = MaterialTheme.colorScheme.primary,
fontSize = MaterialTheme.typography.bodyMedium.fontSize,
fontWeight = MaterialTheme.typography.bodyMedium.fontWeight,
fontStyle = MaterialTheme.typography.bodyMedium.fontStyle,
fontFamily = MaterialTheme.typography.bodyMedium.fontFamily,
)