mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-17 18:22:04 +01:00
Improve category select dialog
This commit is contained in:
@@ -149,15 +149,18 @@ fun CategorySelectDialog(
|
||||
LazyColumn(state = listState) {
|
||||
items(categories) { category ->
|
||||
Row(
|
||||
Modifier.fillMaxWidth().padding(8.dp)
|
||||
Modifier.fillMaxWidth()
|
||||
.height(48.dp)
|
||||
.clickable {
|
||||
if (category in enabledCategories) {
|
||||
enabledCategories -= category
|
||||
} else {
|
||||
enabledCategories += category
|
||||
}
|
||||
},
|
||||
horizontalArrangement = Arrangement.SpaceBetween
|
||||
}
|
||||
.padding(horizontal = 16.dp),
|
||||
horizontalArrangement = Arrangement.SpaceBetween,
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
Text(category.name, style = MaterialTheme.typography.subtitle1)
|
||||
Checkbox(
|
||||
|
||||
Reference in New Issue
Block a user