Polish connection form and system bar spacing on S24
Build Android APKs / build (push) Successful in 1m27s
Build Android APKs / build (push) Successful in 1m27s
This commit is contained in:
1 parent
07bc29bea4
commit
9d6e59c285
1 file changed
+6
-5
@@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.Row
|
|||||||
import androidx.compose.foundation.layout.fillMaxSize
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
|
import androidx.compose.foundation.layout.safeDrawingPadding
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.lazy.LazyColumn
|
import androidx.compose.foundation.lazy.LazyColumn
|
||||||
import androidx.compose.foundation.lazy.items
|
import androidx.compose.foundation.lazy.items
|
||||||
@@ -41,7 +42,9 @@ import kotlinx.coroutines.withContext
|
|||||||
class MainActivity : ComponentActivity() {
|
class MainActivity : ComponentActivity() {
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContent { MaterialTheme(colorScheme = darkColorScheme()) { Surface { ProbeScreen() } } }
|
setContent { MaterialTheme(colorScheme = darkColorScheme()) {
|
||||||
|
Surface(Modifier.fillMaxSize().safeDrawingPadding()) { ProbeScreen() }
|
||||||
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,10 +208,8 @@ private fun ProbeScreen() {
|
|||||||
OutlinedTextField(port, { port = it }, label = { Text("Port") }, modifier = Modifier.weight(.4f))
|
OutlinedTextField(port, { port = it }, label = { Text("Port") }, modifier = Modifier.weight(.4f))
|
||||||
} }
|
} }
|
||||||
item { OutlinedTextField(share, { share = it }, label = { Text("Share") }, modifier = Modifier.fillMaxWidth()) }
|
item { OutlinedTextField(share, { share = it }, label = { Text("Share") }, modifier = Modifier.fillMaxWidth()) }
|
||||||
item { Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
item { OutlinedTextField(username, { username = it }, label = { Text("Username") }, modifier = Modifier.fillMaxWidth()) }
|
||||||
OutlinedTextField(username, { username = it }, label = { Text("Username") }, modifier = Modifier.weight(1f))
|
item { OutlinedTextField(domain, { domain = it }, label = { Text("Domain (optional)") }, modifier = Modifier.fillMaxWidth()) }
|
||||||
OutlinedTextField(domain, { domain = it }, label = { Text("Domain (optional)") }, modifier = Modifier.weight(1f))
|
|
||||||
} }
|
|
||||||
item { OutlinedTextField(password, { password = it }, label = { Text("Password") }, visualTransformation = PasswordVisualTransformation(), modifier = Modifier.fillMaxWidth()) }
|
item { OutlinedTextField(password, { password = it }, label = { Text("Password") }, visualTransformation = PasswordVisualTransformation(), modifier = Modifier.fillMaxWidth()) }
|
||||||
item { OutlinedTextField(folder, { folder = it }, label = { Text("Folder path (optional)") }, modifier = Modifier.fillMaxWidth()) }
|
item { OutlinedTextField(folder, { folder = it }, label = { Text("Folder path (optional)") }, modifier = Modifier.fillMaxWidth()) }
|
||||||
item { Button(enabled = !running && valid, onClick = { runProbe(true) }, modifier = Modifier.fillMaxWidth()) {
|
item { Button(enabled = !running && valid, onClick = { runProbe(true) }, modifier = Modifier.fillMaxWidth()) {
|
||||||
|
|||||||
Reference in new issue
Block a user