merge feat/welcome-screen into screen #2

Merged
lele merged 19 commits from feat/welcome-screen into master 2025-06-19 16:28:14 +02:00
Showing only changes of commit df40aa8455 - Show all commits

View file

@ -100,7 +100,12 @@ fun HomeScreen(paddingValues: PaddingValues) {
Spacer(modifier = Modifier.width(12.dp)) Spacer(modifier = Modifier.width(12.dp))
AnimatedVisibility(currentScreen == "passwordDialog") { AnimatedVisibility(currentScreen == "passwordDialog") {
OutlinedButton ( OutlinedButton (
onClick = {}, onClick = {
when(currentScreen) {
"passwordDialog" -> {currentScreen = "apiDialog"}
"apidialog" -> {currentScreen = "passwordDialog"}
}
},
modifier = Modifier.padding(top = 24.dp) modifier = Modifier.padding(top = 24.dp)
) { ) {
Row() { Row() {
@ -229,11 +234,11 @@ fun PasswordDialog(username: String, password: String, updateUsername: (newUsern
@Composable @Composable
fun ApiDialog(apiKey: String, updateApiKey: (newApiKey: String) -> Unit) { fun ApiDialog(apiKey: String, updateApiKey: (newApiKey: String) -> Unit) {
var dialogApiKey by remember { mutableStateOf("") } var dialogApiKey by remember { mutableStateOf(apiKey) }
Column { Column {
OutlinedTextField( OutlinedTextField(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
label = { Text(text = "Password") }, label = { Text(text = "API Key") },
textStyle = MaterialTheme.typography.bodySmall, textStyle = MaterialTheme.typography.bodySmall,
value = dialogApiKey, value = dialogApiKey,
onValueChange = { text -> onValueChange = { text ->
@ -245,6 +250,7 @@ fun ApiDialog(apiKey: String, updateApiKey: (newApiKey: String) -> Unit) {
} }
} }
@OptIn(ExperimentalMaterial3ExpressiveApi::class)
@Composable @Composable
fun LoadingDialog () { fun LoadingDialog () {
CircularWavyProgressIndicator() CircularWavyProgressIndicator()