From 163f90ec4b95ed64d0714bd47f9dbf45a10237a7 Mon Sep 17 00:00:00 2001 From: Lubos Sytensky <80392744+LubosSytensky-cen86208@users.noreply.github.com> Date: Thu, 22 Sep 2022 15:57:59 +0200 Subject: [PATCH] Fix wrong material color for period. Now it is visible in M3 or custom colors implementation --- build.gradle.kts | 2 +- .../vanpra/composematerialdialogs/datetime/time/TimePicker.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 442bacaa..3d95893a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ buildscript { dependencies { classpath(Dependencies.Kotlin.gradlePlugin) - classpath("com.android.tools.build:gradle:7.3.0-beta05") + classpath("com.android.tools.build:gradle:7.3.0") classpath("com.vanniktech:gradle-maven-publish-plugin:0.19.0") classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.7.0") classpath(Dependencies.Shot.core) diff --git a/datetime/src/main/java/com/vanpra/composematerialdialogs/datetime/time/TimePicker.kt b/datetime/src/main/java/com/vanpra/composematerialdialogs/datetime/time/TimePicker.kt index d6214556..c57034e4 100644 --- a/datetime/src/main/java/com/vanpra/composematerialdialogs/datetime/time/TimePicker.kt +++ b/datetime/src/main/java/com/vanpra/composematerialdialogs/datetime/time/TimePicker.kt @@ -347,7 +347,7 @@ internal fun TimeLayout(modifier: Modifier = Modifier, state: TimePickerState) { ) { Text( text = ":", - style = TextStyle(fontSize = 50.sp, color = MaterialTheme.colors.onBackground) + style = TextStyle(fontSize = 50.sp, color = state.colors.headerTextColor().value) ) }