feat(ui): initial channel browser and some ui groundwork
This commit is contained in:
parent
41f2b9782a
commit
c5cf0b5aa7
11 changed files with 358 additions and 3 deletions
17
ui/src/jvmMain/kotlin/moe/lava/neon/ui/ColorScheme.jvm.kt
Normal file
17
ui/src/jvmMain/kotlin/moe/lava/neon/ui/ColorScheme.jvm.kt
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package moe.lava.neon.ui
|
||||
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.material3.ColorScheme
|
||||
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
|
||||
import androidx.compose.material3.darkColorScheme
|
||||
import androidx.compose.material3.expressiveLightColorScheme
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@OptIn(ExperimentalMaterial3ExpressiveApi::class)
|
||||
@Composable
|
||||
actual fun getColorScheme(): ColorScheme {
|
||||
return when (isSystemInDarkTheme()) {
|
||||
true -> darkColorScheme()
|
||||
false -> expressiveLightColorScheme()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue