mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 06:01:49 +01:00
Bump Compose BOM version 2023.04.00-beta01.1 (#9548)
This commit is contained in:
parent
929a881943
commit
0189fc1f66
@ -1,6 +1,6 @@
|
|||||||
[versions]
|
[versions]
|
||||||
compiler = "1.4.7"
|
compiler = "1.4.7"
|
||||||
compose-bom = "2023.04.00-alpha04"
|
compose-bom = "2023.04.00-beta01.1"
|
||||||
accompanist = "0.31.2-alpha"
|
accompanist = "0.31.2-alpha"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
package tachiyomi.presentation.core.components
|
package tachiyomi.presentation.core.components
|
||||||
|
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.IntrinsicSize
|
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.layout.requiredWidth
|
|
||||||
import androidx.compose.material3.LocalTextStyle
|
import androidx.compose.material3.LocalTextStyle
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
|
import androidx.compose.material3.Surface
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
@ -24,7 +23,7 @@ fun Pill(
|
|||||||
elevation: Dp = 1.dp,
|
elevation: Dp = 1.dp,
|
||||||
fontSize: TextUnit = LocalTextStyle.current.fontSize,
|
fontSize: TextUnit = LocalTextStyle.current.fontSize,
|
||||||
) {
|
) {
|
||||||
androidx.compose.material3.Surface(
|
Surface(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.padding(start = 4.dp),
|
.padding(start = 4.dp),
|
||||||
shape = MaterialTheme.shapes.extraLarge,
|
shape = MaterialTheme.shapes.extraLarge,
|
||||||
@ -34,7 +33,6 @@ fun Pill(
|
|||||||
) {
|
) {
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.requiredWidth(IntrinsicSize.Max)
|
|
||||||
.padding(6.dp, 1.dp),
|
.padding(6.dp, 1.dp),
|
||||||
contentAlignment = Alignment.Center,
|
contentAlignment = Alignment.Center,
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user