Compare commits
2 Commits
6dbf6a67af
...
94b3349eeb
| Author | SHA1 | Date |
|---|---|---|
|
|
94b3349eeb | |
|
|
81af114e99 |
|
|
@ -3,10 +3,8 @@ import org.jetbrains.compose.internal.de.undercouch.gradle.tasks.download.Downlo
|
||||||
import org.gradle.internal.os.OperatingSystem
|
import org.gradle.internal.os.OperatingSystem
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
val kotlinVersion = "2.0.21"
|
kotlin("jvm")
|
||||||
|
kotlin("plugin.serialization")
|
||||||
kotlin("jvm") version kotlinVersion
|
|
||||||
kotlin("plugin.serialization") version kotlinVersion
|
|
||||||
id("org.jetbrains.compose")
|
id("org.jetbrains.compose")
|
||||||
id("org.jetbrains.kotlin.plugin.compose")
|
id("org.jetbrains.kotlin.plugin.compose")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
kotlin.version=2.0.0
|
kotlin.version=2.0.21
|
||||||
compose.version=1.6.10
|
compose.version=1.6.10
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ pluginManagement {
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm").version(extra["kotlin.version"] as String)
|
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.compose").version(extra["compose.version"] as String)
|
||||||
id("org.jetbrains.kotlin.plugin.compose").version(extra["kotlin.version"] as String)
|
id("org.jetbrains.kotlin.plugin.compose").version(extra["kotlin.version"] as String)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue