diff --git a/app/src/main/java/eu/kanade/presentation/components/AppBar.kt b/app/src/main/java/eu/kanade/presentation/components/AppBar.kt index 3953000a6..e3a28118d 100644 --- a/app/src/main/java/eu/kanade/presentation/components/AppBar.kt +++ b/app/src/main/java/eu/kanade/presentation/components/AppBar.kt @@ -19,8 +19,8 @@ import androidx.compose.material3.DropdownMenuItem import androidx.compose.material3.Icon import androidx.compose.material3.IconButton import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.SmallTopAppBar import androidx.compose.material3.Text -import androidx.compose.material3.TopAppBar import androidx.compose.material3.TopAppBarDefaults import androidx.compose.material3.TopAppBarScrollBehavior import androidx.compose.material3.surfaceColorAtElevation @@ -113,7 +113,7 @@ fun AppBar( Column( modifier = modifier, ) { - TopAppBar( + SmallTopAppBar( navigationIcon = { if (isActionMode) { IconButton(onClick = onCancelActionMode) { diff --git a/app/src/main/java/eu/kanade/presentation/manga/components/MangaAppBar.kt b/app/src/main/java/eu/kanade/presentation/manga/components/MangaAppBar.kt index 15ab39220..ca2ab237c 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/components/MangaAppBar.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/components/MangaAppBar.kt @@ -16,8 +16,8 @@ import androidx.compose.material3.DropdownMenuItem import androidx.compose.material3.Icon import androidx.compose.material3.IconButton import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.SmallTopAppBar import androidx.compose.material3.Text -import androidx.compose.material3.TopAppBar import androidx.compose.material3.TopAppBarDefaults import androidx.compose.material3.surfaceColorAtElevation import androidx.compose.runtime.Composable @@ -56,7 +56,7 @@ fun MangaAppBar( modifier = modifier, ) { val isActionMode = actionModeCounter > 0 - TopAppBar( + SmallTopAppBar( title = { Text( text = if (isActionMode) actionModeCounter.toString() else title, diff --git a/gradle/compose.versions.toml b/gradle/compose.versions.toml index d1a30fa3c..fbb2fa367 100644 --- a/gradle/compose.versions.toml +++ b/gradle/compose.versions.toml @@ -2,7 +2,7 @@ compiler = "1.3.1" compose = "1.2.1" accompanist = "0.25.1" -material3 = "1.0.0-beta02" +material3 = "1.0.0-beta01" [libraries] activity = "androidx.activity:activity-compose:1.6.0-rc02"