mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-25 10:28:23 +01:00
parent
0fffde50ff
commit
f01a312c23
@ -207,6 +207,7 @@ fun SelectItem(
|
|||||||
label = { Text(text = label) },
|
label = { Text(text = label) },
|
||||||
value = options[selectedIndex].toString(),
|
value = options[selectedIndex].toString(),
|
||||||
onValueChange = {},
|
onValueChange = {},
|
||||||
|
enabled = false,
|
||||||
readOnly = true,
|
readOnly = true,
|
||||||
singleLine = true,
|
singleLine = true,
|
||||||
trailingIcon = {
|
trailingIcon = {
|
||||||
@ -214,7 +215,9 @@ fun SelectItem(
|
|||||||
expanded = expanded,
|
expanded = expanded,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
colors = ExposedDropdownMenuDefaults.textFieldColors(),
|
colors = ExposedDropdownMenuDefaults.textFieldColors(
|
||||||
|
disabledTextColor = MaterialTheme.colorScheme.onSurface,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
ExposedDropdownMenu(
|
ExposedDropdownMenu(
|
||||||
@ -229,6 +232,7 @@ fun SelectItem(
|
|||||||
onSelect(index)
|
onSelect(index)
|
||||||
expanded = false
|
expanded = false
|
||||||
},
|
},
|
||||||
|
contentPadding = ExposedDropdownMenuDefaults.ItemContentPadding,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user