Browse Source

Fix letter-spacing (override material design defaults back to 0.sp) (#2827)

pull/2837/head
Sebastian Aigner 2 years ago committed by GitHub
parent
commit
8db88534f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/style/Palette.kt

7
experimental/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/style/Palette.kt

@ -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()
}
}
}

Loading…
Cancel
Save