mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Fix letter-spacing (override material design defaults back to 0.sp) (#2827)
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
package example.imageviewer.style
|
||||
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.material3.LocalTextStyle
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.ProvideTextStyle
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.graphics.Brush
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.unit.sp
|
||||
|
||||
object ImageviewerColors {
|
||||
val Gray = Color.DarkGray
|
||||
@@ -53,6 +56,8 @@ internal fun ImageViewerTheme(content: @Composable () -> Unit) {
|
||||
onBackground = ImageviewerColors.onBackground
|
||||
)
|
||||
) {
|
||||
content()
|
||||
ProvideTextStyle(LocalTextStyle.current.copy(letterSpacing = 0.sp)) {
|
||||
content()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user