mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 06:31:52 +01:00
fix: grid size slider (#9542)
This commit is contained in:
parent
e3b2720924
commit
9c07451d95
@ -220,7 +220,9 @@ private fun ColumnScope.DisplayPage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val columns by columnPreference.changes().collectAsState(initial = 0)
|
val columns by columnPreference.changes().collectAsState(initial = 0)
|
||||||
Column {
|
Column(
|
||||||
|
Modifier.weight(.5f),
|
||||||
|
) {
|
||||||
Text(
|
Text(
|
||||||
stringResource(id = R.string.pref_library_columns),
|
stringResource(id = R.string.pref_library_columns),
|
||||||
style = MaterialTheme.typography.bodyMedium,
|
style = MaterialTheme.typography.bodyMedium,
|
||||||
@ -235,7 +237,7 @@ private fun ColumnScope.DisplayPage(
|
|||||||
Slider(
|
Slider(
|
||||||
value = columns.toFloat(),
|
value = columns.toFloat(),
|
||||||
onValueChange = { columnPreference.set(it.toInt()) },
|
onValueChange = { columnPreference.set(it.toInt()) },
|
||||||
modifier = Modifier.weight(1f),
|
modifier = Modifier.weight(1.5f),
|
||||||
valueRange = 0f..10f,
|
valueRange = 0f..10f,
|
||||||
steps = 10,
|
steps = 10,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user