Pass the torch... initial commit.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package ac.aux.compose
|
||||
|
||||
class JVMPlatform: Platform {
|
||||
override val name: String = "Java ${System.getProperty("java.version")}"
|
||||
}
|
||||
|
||||
actual fun getPlatform(): Platform = JVMPlatform()
|
||||
13
composeApp/src/jvmMain/kotlin/ac/aux/compose/main.kt
Normal file
13
composeApp/src/jvmMain/kotlin/ac/aux/compose/main.kt
Normal file
@@ -0,0 +1,13 @@
|
||||
package ac.aux.compose
|
||||
|
||||
import androidx.compose.ui.window.Window
|
||||
import androidx.compose.ui.window.application
|
||||
|
||||
fun main() = application {
|
||||
Window(
|
||||
onCloseRequest = ::exitApplication,
|
||||
title = "Aux",
|
||||
) {
|
||||
AuxApp()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package ac.aux.compose.ui.theme
|
||||
|
||||
import androidx.compose.material3.ColorScheme
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
actual fun themeColorScheme(
|
||||
darkTheme: Boolean,
|
||||
dynamicColor: Boolean,
|
||||
darkScheme: ColorScheme,
|
||||
lightScheme: ColorScheme
|
||||
): ColorScheme {
|
||||
return when {
|
||||
darkTheme -> darkScheme
|
||||
else -> lightScheme
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user