Fixed text field colors in dark theme

This commit is contained in:
Abdelilah El Aissaoui 2021-12-08 19:21:41 +01:00
parent 7eb26f0f4b
commit 330a7aa6b8
7 changed files with 10 additions and 7 deletions

View File

@ -144,7 +144,6 @@ fun UncommitedChanges(
}
else
false
},
value = commitMessage,
onValueChange = { commitMessage = it },

View File

@ -8,7 +8,9 @@ import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import app.git.CloneStatus
import app.git.GitManager
import app.theme.primaryTextColor
@ -41,6 +43,7 @@ fun CloneDialog(
.width(400.dp)
.padding(vertical = 4.dp, horizontal = 8.dp),
label = { Text("URL") },
textStyle = TextStyle(fontSize = 14.sp, color = MaterialTheme.colors.primaryTextColor),
maxLines = 1,
value = url,
onValueChange = {
@ -53,6 +56,7 @@ fun CloneDialog(
.width(400.dp)
.padding(vertical = 4.dp, horizontal = 8.dp),
label = { Text("Directory") },
textStyle = TextStyle(fontSize = 14.sp, color = MaterialTheme.colors.primaryTextColor),
maxLines = 1,
value = directory,
onValueChange = {

View File

@ -38,8 +38,6 @@ fun MergeDialog(
Row(
verticalAlignment = Alignment.CenterVertically,
) {
Text(
text = mergeBranchName,
fontWeight = FontWeight.Medium,

View File

@ -15,6 +15,7 @@ import androidx.compose.ui.input.key.onPreviewKeyEvent
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import app.theme.primaryTextColor
@OptIn(ExperimentalComposeUiApi::class)
@Composable
@ -50,7 +51,7 @@ fun NewBranchDialog(
value = branchField,
singleLine = true,
label = { Text("New branch name", fontSize = 14.sp) },
textStyle = TextStyle(fontSize = 14.sp),
textStyle = TextStyle(fontSize = 14.sp, color = MaterialTheme.colors.primaryTextColor),
onValueChange = {
branchField = it
},

View File

@ -15,6 +15,7 @@ import androidx.compose.ui.input.key.onPreviewKeyEvent
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import app.theme.primaryTextColor
@OptIn(ExperimentalComposeUiApi::class)
@Composable
@ -50,7 +51,7 @@ fun NewTagDialog(
value = tagField,
singleLine = true,
label = { Text("New tag name", fontSize = 14.sp) },
textStyle = TextStyle(fontSize = 14.sp),
textStyle = TextStyle(fontSize = 14.sp, color = MaterialTheme.colors.primaryTextColor),
onValueChange = {
tagField = it
},

View File

@ -59,7 +59,7 @@ fun PasswordDialog(
value = passwordField,
singleLine = true,
label = { Text("Password", fontSize = 14.sp) },
textStyle = TextStyle(fontSize = 14.sp),
textStyle = TextStyle(fontSize = 14.sp, color = MaterialTheme.colors.primaryTextColor),
onValueChange = {
passwordField = it
},

View File

@ -64,7 +64,7 @@ fun UserPasswordDialog(
value = userField,
singleLine = true,
label = { Text("User", fontSize = 14.sp) },
textStyle = TextStyle(fontSize = 14.sp),
textStyle = TextStyle(fontSize = 14.sp, color = MaterialTheme.colors.primaryTextColor),
onValueChange = {
userField = it
},