From ab0ec35e374978ee7d3498ec6428bc8148301614 Mon Sep 17 00:00:00 2001 From: Timothy <6560631+TimoPtr@users.noreply.github.com> Date: Thu, 7 May 2026 11:18:29 +0200 Subject: [PATCH] Deprecated the old Material Design 2 theme to avoid using it --- .../homeassistant/companion/android/util/compose/Theme.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/kotlin/io/homeassistant/companion/android/util/compose/Theme.kt b/app/src/main/kotlin/io/homeassistant/companion/android/util/compose/Theme.kt index acccc740eab..26d389284a7 100644 --- a/app/src/main/kotlin/io/homeassistant/companion/android/util/compose/Theme.kt +++ b/app/src/main/kotlin/io/homeassistant/companion/android/util/compose/Theme.kt @@ -50,6 +50,13 @@ private val haDarkColors = darkColors( * A Compose [MaterialTheme] version of the app's XML theme. This achieves the same goal as the * (now deprecated) [com.google.accompanist.themeadapter.material.MdcTheme]. */ +@Deprecated( + "Uses Material Design 2. Use HATheme (Material Design 3) instead. Kept until remaining call sites are migrated.", + replaceWith = ReplaceWith( + "HATheme { content() }", + "io.homeassistant.companion.android.common.compose.theme.HATheme", + ), +) @Composable fun HomeAssistantAppTheme(content: @Composable () -> Unit) { MaterialTheme(