misc changes

This commit is contained in:
Joshua Perry 2025-03-17 21:38:36 +00:00
parent 81af114e99
commit 94b3349eeb
1 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,9 @@ class ProfileDetails(val profile: Profile): Screen {
@Composable @Composable
fun generalAttributes() { fun generalAttributes() {
Column { Column(
modifier = Modifier.padding(10.dp)
) {
textAttribute( textAttribute(
title = "Name", title = "Name",
tooltip = "This is the name of the profile. It also acts as the name of the saved file.", tooltip = "This is the name of the profile. It also acts as the name of the saved file.",
@ -130,7 +132,7 @@ class ProfileDetails(val profile: Profile): Screen {
) )
Button( Button(
onClick = { onClick = { //TODO: does not update text field
CoroutineScope(Dispatchers.IO + SupervisorJob()).async { CoroutineScope(Dispatchers.IO + SupervisorJob()).async {
fieldValue = FileKit.pickFile( fieldValue = FileKit.pickFile(
title = "Pick program path", title = "Pick program path",
@ -177,8 +179,6 @@ class ProfileDetails(val profile: Profile): Screen {
.background(MaterialTheme.colors.primary, CircleShape) .background(MaterialTheme.colors.primary, CircleShape)
) { ) {
Text( Text(
modifier = Modifier
.padding(10.dp),
text = tooltip, text = tooltip,
color = MaterialTheme.colors.onPrimary color = MaterialTheme.colors.onPrimary
) )