mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Fix ui contrast when using dark theme
This commit is contained in:
@@ -243,7 +243,10 @@ fun InformationDialog(
|
||||
tint = Color.Black,
|
||||
)
|
||||
Spacer(Modifier.width(5.dp))
|
||||
Text(stringResource(R.string.no))
|
||||
Text(
|
||||
text = stringResource(R.string.no),
|
||||
color = Color.Black,
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -262,7 +265,10 @@ fun InformationDialog(
|
||||
tint = Color.Black,
|
||||
)
|
||||
Spacer(Modifier.width(5.dp))
|
||||
Text(stringResource(R.string.yes))
|
||||
Text(
|
||||
text = stringResource(R.string.yes),
|
||||
color = Color.Black,
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -295,7 +301,10 @@ fun InformationDialog(
|
||||
tint = Color.Black,
|
||||
)
|
||||
Spacer(Modifier.width(5.dp))
|
||||
Text(stringResource(R.string.ok))
|
||||
Text(
|
||||
text = stringResource(R.string.ok),
|
||||
color = Color.Black,
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -394,7 +394,8 @@ fun SignUpPage(
|
||||
) {
|
||||
Text(
|
||||
text = keyPair.pubKey.toNpub(),
|
||||
Modifier.padding(10.dp),
|
||||
modifier = Modifier.padding(10.dp),
|
||||
color = Color.Black,
|
||||
)
|
||||
}
|
||||
Spacer(Modifier.height(8.dp))
|
||||
|
||||
@@ -28,10 +28,13 @@ import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.focus.FocusDirection
|
||||
import androidx.compose.ui.focus.FocusRequester
|
||||
import androidx.compose.ui.focus.focusRequester
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.platform.LocalClipboardManager
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalFocusManager
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.AnnotatedString
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
@@ -84,6 +87,7 @@ fun NewNsecBunkerScreen(
|
||||
val scope = rememberCoroutineScope()
|
||||
val isLoading = remember { mutableStateOf(false) }
|
||||
val focusRequester = remember { FocusRequester() }
|
||||
val focusManager = LocalFocusManager.current
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
focusRequester.requestFocus()
|
||||
@@ -105,6 +109,14 @@ fun NewNsecBunkerScreen(
|
||||
value = name,
|
||||
onValueChange = { name = it },
|
||||
label = { Text(stringResource(R.string.name)) },
|
||||
keyboardOptions = KeyboardOptions(
|
||||
imeAction = ImeAction.Next,
|
||||
),
|
||||
keyboardActions = KeyboardActions(
|
||||
onNext = {
|
||||
focusManager.moveFocus(FocusDirection.Down)
|
||||
},
|
||||
),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.focusRequester(focusRequester)
|
||||
@@ -172,6 +184,7 @@ fun NewNsecBunkerScreen(
|
||||
Icon(
|
||||
Icons.Default.Add,
|
||||
null,
|
||||
tint = Color.Black,
|
||||
)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user