|
@@ -2,21 +2,34 @@ package com.example.oscellamobile.screens
|
|
|
|
|
|
import androidx.compose.foundation.Canvas
|
|
|
import androidx.compose.foundation.Image
|
|
|
+import androidx.compose.foundation.clickable
|
|
|
+import androidx.compose.foundation.layout.Arrangement
|
|
|
+import androidx.compose.foundation.layout.Box
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
import androidx.compose.foundation.layout.Row
|
|
|
import androidx.compose.foundation.layout.Spacer
|
|
|
import androidx.compose.foundation.layout.fillMaxHeight
|
|
|
+import androidx.compose.foundation.layout.fillMaxSize
|
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
import androidx.compose.foundation.layout.height
|
|
|
+import androidx.compose.foundation.layout.padding
|
|
|
import androidx.compose.foundation.layout.size
|
|
|
import androidx.compose.foundation.layout.width
|
|
|
import androidx.compose.material3.Icon
|
|
|
import androidx.compose.material3.Text
|
|
|
import androidx.compose.runtime.Composable
|
|
|
+import androidx.compose.runtime.LaunchedEffect
|
|
|
+import androidx.compose.runtime.SideEffect
|
|
|
+import androidx.compose.runtime.getValue
|
|
|
+import androidx.compose.runtime.mutableStateOf
|
|
|
+import androidx.compose.runtime.remember
|
|
|
+import androidx.compose.runtime.setValue
|
|
|
+import androidx.compose.ui.Alignment
|
|
|
import androidx.compose.ui.Modifier
|
|
|
import androidx.compose.ui.geometry.Offset
|
|
|
import androidx.compose.ui.graphics.Brush
|
|
|
import androidx.compose.ui.graphics.Color
|
|
|
+import androidx.compose.ui.graphics.drawscope.DrawScope
|
|
|
import androidx.compose.ui.res.painterResource
|
|
|
import androidx.compose.ui.text.font.Font
|
|
|
import androidx.compose.ui.text.font.FontFamily
|
|
@@ -24,11 +37,22 @@ import androidx.compose.ui.unit.dp
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
import androidx.navigation.NavHostController
|
|
|
import com.example.oscellamobile.R
|
|
|
+import com.google.accompanist.systemuicontroller.rememberSystemUiController
|
|
|
+import kotlinx.coroutines.delay
|
|
|
+
|
|
|
|
|
|
@Composable
|
|
|
fun MainWindow(navController: NavHostController) {
|
|
|
- val kdamFontFamily = FontFamily(Font(R.font.kdam));
|
|
|
+ val systemUiController = rememberSystemUiController()
|
|
|
+
|
|
|
+ // Automatically hide the status bar when the composable is first displayed
|
|
|
+ LaunchedEffect(Unit) {
|
|
|
+ systemUiController.isStatusBarVisible = false // Hide the status bar by default
|
|
|
+ delay(5000) // Keep it visible for 5 seconds (if needed, you can adjust this)
|
|
|
+ systemUiController.isStatusBarVisible = false // Ensure it stays hidden
|
|
|
+ }
|
|
|
|
|
|
+ val kdamFontFamily = FontFamily(Font(R.font.kdam))
|
|
|
Canvas(
|
|
|
modifier = Modifier
|
|
|
.fillMaxWidth()
|
|
@@ -45,6 +69,7 @@ fun MainWindow(navController: NavHostController) {
|
|
|
|
|
|
drawRect(brush = gradient)
|
|
|
}
|
|
|
+
|
|
|
Column(
|
|
|
modifier = Modifier
|
|
|
.fillMaxWidth()
|