mirror of
https://github.com/kalarina-bit/Fogwave.git
synced 2026-11-22 08:06:09 +00:00
Styles match Matewave: Fogwave (default), Lavender, Peach, Mint, Sky and Device (Material You, Android 12+). The fog and the disc ring follow the style and no longer change with the station unless 'Fog in station color' is switched on. About now has an Appearance section and grouped link rows.
37 lines
1.1 KiB
Kotlin
37 lines
1.1 KiB
Kotlin
package cc.skysparkle.fogwave
|
|
|
|
import android.graphics.Color
|
|
import android.os.Bundle
|
|
import androidx.activity.ComponentActivity
|
|
import androidx.activity.SystemBarStyle
|
|
import androidx.activity.compose.setContent
|
|
import androidx.activity.enableEdgeToEdge
|
|
import androidx.compose.foundation.layout.fillMaxSize
|
|
import androidx.compose.material3.MaterialTheme
|
|
import androidx.compose.material3.Surface
|
|
import androidx.compose.ui.Modifier
|
|
import cc.skysparkle.fogwave.ui.screens.HomeScreen
|
|
import cc.skysparkle.fogwave.ui.theme.AppThemeState
|
|
import cc.skysparkle.fogwave.ui.theme.FogwaveTheme
|
|
|
|
class MainActivity : ComponentActivity() {
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
AppThemeState.load(this)
|
|
enableEdgeToEdge(
|
|
statusBarStyle = SystemBarStyle.dark(Color.TRANSPARENT),
|
|
navigationBarStyle = SystemBarStyle.dark(Color.TRANSPARENT)
|
|
)
|
|
setContent {
|
|
FogwaveTheme {
|
|
Surface(
|
|
modifier = Modifier.fillMaxSize(),
|
|
color = MaterialTheme.colorScheme.background
|
|
) {
|
|
HomeScreen()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|