...
This commit is contained in:
@@ -157,19 +157,6 @@ fun SettingsScreen(onAuthSuccess: () -> Unit) {
|
||||
|
||||
LazyColumn(modifier = Modifier.fillMaxSize().padding(20.dp)) {
|
||||
item {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(), // 필요에 따라 너비 설정
|
||||
verticalAlignment = Alignment.CenterVertically // 상하 중앙 정렬 추가
|
||||
){
|
||||
Text("투자 방식", style = MaterialTheme.typography.subtitle1)
|
||||
Spacer(Modifier.width(10.dp))
|
||||
RadioButton(selected = !config.isSimulation, onClick = { config = config.copy(isSimulation = false,) })
|
||||
Text("실전")
|
||||
Spacer(Modifier.width(10.dp))
|
||||
RadioButton(selected = config.isSimulation, onClick = { config = config.copy() })
|
||||
Text("모의")
|
||||
}
|
||||
|
||||
Divider(Modifier.padding(vertical = 10.dp))
|
||||
OutlinedTextField(
|
||||
value = config.htsId,
|
||||
@@ -199,26 +186,26 @@ fun SettingsScreen(onAuthSuccess: () -> Unit) {
|
||||
OutlinedTextField(value = config.realSecretKey, onValueChange = { config = config.copy(realSecretKey = it,) }, label = { Text("실전 Secret Key") }, modifier = Modifier.fillMaxWidth(), visualTransformation = PasswordVisualTransformation())
|
||||
Spacer(Modifier.height(10.dp))
|
||||
|
||||
// 모의 3종 입력
|
||||
Text("모의투자 정보", fontWeight = FontWeight.Bold)
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(), // 필요에 따라 너비 설정
|
||||
verticalAlignment = Alignment.CenterVertically // 상하 중앙 정렬 추가
|
||||
) {
|
||||
OutlinedTextField(value = config.vtsAccountNo, onValueChange = {
|
||||
config = config.copy(vtsAccountNo = it,)
|
||||
if (it.length >= 8) checkAndLoadConfig(it, false)
|
||||
}, label = { Text("모의 계좌번호") }, modifier = Modifier.weight(0.5f))
|
||||
OutlinedTextField(
|
||||
value = config.vtsAppKey,
|
||||
onValueChange = { config = config.copy(vtsAppKey = it,) },
|
||||
label = { Text("모의 App Key") },
|
||||
modifier = Modifier.weight(0.5f)
|
||||
)
|
||||
}
|
||||
OutlinedTextField(value = config.vtsSecretKey, onValueChange = { config = config.copy(vtsSecretKey = it,) }, label = { Text("모의 Secret Key") }, modifier = Modifier.fillMaxWidth(), visualTransformation = PasswordVisualTransformation())
|
||||
// // 모의 3종 입력
|
||||
// Text("모의투자 정보", fontWeight = FontWeight.Bold)
|
||||
// Row(
|
||||
// modifier = Modifier.fillMaxWidth(), // 필요에 따라 너비 설정
|
||||
// verticalAlignment = Alignment.CenterVertically // 상하 중앙 정렬 추가
|
||||
// ) {
|
||||
// OutlinedTextField(value = config.vtsAccountNo, onValueChange = {
|
||||
// config = config.copy(vtsAccountNo = it,)
|
||||
// if (it.length >= 8) checkAndLoadConfig(it, false)
|
||||
// }, label = { Text("모의 계좌번호") }, modifier = Modifier.weight(0.5f))
|
||||
// OutlinedTextField(
|
||||
// value = config.vtsAppKey,
|
||||
// onValueChange = { config = config.copy(vtsAppKey = it,) },
|
||||
// label = { Text("모의 App Key") },
|
||||
// modifier = Modifier.weight(0.5f)
|
||||
// )
|
||||
// }
|
||||
// OutlinedTextField(value = config.vtsSecretKey, onValueChange = { config = config.copy(vtsSecretKey = it,) }, label = { Text("모의 Secret Key") }, modifier = Modifier.fillMaxWidth(), visualTransformation = PasswordVisualTransformation())
|
||||
|
||||
Spacer(Modifier.height(10.dp))
|
||||
// Spacer(Modifier.height(10.dp))
|
||||
Text("정보 조회 Api Keyz", fontWeight = FontWeight.Bold)
|
||||
OutlinedTextField(value = config.nAppKey, onValueChange = { config = config.copy(nAppKey = it,) }, label = { Text("NAVER Client ID") }, modifier = Modifier.fillMaxWidth())
|
||||
OutlinedTextField(value = config.nSecretKey, onValueChange = { config = config.copy(nSecretKey = it,) }, label = { Text("NAVER Client Secret") }, modifier = Modifier.fillMaxWidth(), visualTransformation = PasswordVisualTransformation())
|
||||
|
||||
Reference in New Issue
Block a user