Compare commits
1
Commits
build-20-1
...
build-21-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d6e59c285 |
@@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.safeDrawingPadding
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
@@ -41,7 +42,9 @@ import kotlinx.coroutines.withContext
|
||||
class MainActivity : ComponentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
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))
|
||||
} }
|
||||
item { OutlinedTextField(share, { share = it }, label = { Text("Share") }, modifier = Modifier.fillMaxWidth()) }
|
||||
item { Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
OutlinedTextField(username, { username = it }, label = { Text("Username") }, modifier = Modifier.weight(1f))
|
||||
OutlinedTextField(domain, { domain = it }, label = { Text("Domain (optional)") }, modifier = Modifier.weight(1f))
|
||||
} }
|
||||
item { OutlinedTextField(username, { username = it }, label = { Text("Username") }, modifier = Modifier.fillMaxWidth()) }
|
||||
item { OutlinedTextField(domain, { domain = it }, label = { Text("Domain (optional)") }, 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 { Button(enabled = !running && valid, onClick = { runProbe(true) }, modifier = Modifier.fillMaxWidth()) {
|
||||
|
||||
Reference in new issue
Block a user