Compare commits

...

2 Commits

Author SHA1 Message Date
Joshua Perry 94b3349eeb misc changes 2025-03-17 21:38:36 +00:00
Joshua Perry 81af114e99 refactor 2024-11-02 17:20:48 +00:00
4 changed files with 8 additions and 9 deletions

View File

@ -3,10 +3,8 @@ import org.jetbrains.compose.internal.de.undercouch.gradle.tasks.download.Downlo
import org.gradle.internal.os.OperatingSystem
plugins {
val kotlinVersion = "2.0.21"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
kotlin("jvm")
kotlin("plugin.serialization")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

View File

@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official
kotlin.version=2.0.0
kotlin.version=2.0.21
compose.version=1.6.10

View File

@ -8,6 +8,7 @@ pluginManagement {
plugins {
kotlin("jvm").version(extra["kotlin.version"] as String)
kotlin("plugin.serialization").version(extra["kotlin.version"] as String)
id("org.jetbrains.compose").version(extra["compose.version"] as String)
id("org.jetbrains.kotlin.plugin.compose").version(extra["kotlin.version"] as String)
}

View File

@ -67,7 +67,9 @@ class ProfileDetails(val profile: Profile): Screen {
@Composable
fun generalAttributes() {
Column {
Column(
modifier = Modifier.padding(10.dp)
) {
textAttribute(
title = "Name",
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(
onClick = {
onClick = { //TODO: does not update text field
CoroutineScope(Dispatchers.IO + SupervisorJob()).async {
fieldValue = FileKit.pickFile(
title = "Pick program path",
@ -177,8 +179,6 @@ class ProfileDetails(val profile: Profile): Screen {
.background(MaterialTheme.colors.primary, CircleShape)
) {
Text(
modifier = Modifier
.padding(10.dp),
text = tooltip,
color = MaterialTheme.colors.onPrimary
)