Theme modification.
This commit is contained in:
parent
080d2e2b49
commit
586da03460
6 changed files with 25 additions and 26 deletions
|
|
@ -47,7 +47,6 @@ fun Image(
|
|||
alignment = alignment,
|
||||
contentScale = contentScale,
|
||||
alpha = alpha,
|
||||
colorFilter = colorFilter,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,10 +57,6 @@ fun DetailPageComposable(book: BookUio) {
|
|||
Row(modifier = Modifier.padding(bottom = 16.dp)) {
|
||||
Button(
|
||||
modifier = Modifier.weight(1f),
|
||||
colors = ButtonDefaults.textButtonColors(
|
||||
backgroundColor = Teal200,
|
||||
contentColor = Color.Black,
|
||||
),
|
||||
onClick = { }) {
|
||||
Text(text = "EPUB")
|
||||
}
|
||||
|
|
@ -68,19 +64,11 @@ fun DetailPageComposable(book: BookUio) {
|
|||
modifier = Modifier
|
||||
.weight(1f)
|
||||
.padding(horizontal = 8.dp),
|
||||
colors = ButtonDefaults.textButtonColors(
|
||||
backgroundColor = Teal200,
|
||||
contentColor = Color.Black,
|
||||
),
|
||||
onClick = { }) {
|
||||
Text(text = "MOBI")
|
||||
}
|
||||
Button(
|
||||
modifier = Modifier.weight(1f),
|
||||
colors = ButtonDefaults.textButtonColors(
|
||||
backgroundColor = Teal200,
|
||||
contentColor = Color.Black,
|
||||
),
|
||||
onClick = { }) {
|
||||
Text(text = "SEND")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@ import androidx.compose.foundation.layout.*
|
|||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material.*
|
||||
import androidx.compose.material.ButtonDefaults.textButtonColors
|
||||
import androidx.compose.material.ButtonDefaults.outlinedButtonColors
|
||||
import androidx.compose.material.TextFieldDefaults.outlinedTextFieldColors
|
||||
import androidx.compose.material.TextFieldDefaults.textFieldColors
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.sharp.Visibility
|
||||
import androidx.compose.material.icons.sharp.VisibilityOff
|
||||
|
|
@ -86,7 +88,7 @@ fun LoginScreenComposable(
|
|||
) {
|
||||
Button(
|
||||
modifier = Modifier.padding(end = 8.dp),
|
||||
colors = textButtonColors(),
|
||||
colors = outlinedButtonColors(),
|
||||
onClick = {
|
||||
// TODO:
|
||||
navigationViewModel.navigateTo(NavigationViewModel.Screen.MainScreen)
|
||||
|
|
@ -105,7 +107,7 @@ fun LoginScreenComposable(
|
|||
|
||||
Button(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
colors = ButtonDefaults.outlinedButtonColors(),
|
||||
colors = outlinedButtonColors(),
|
||||
onClick = {
|
||||
// TODO:
|
||||
navigationViewModel.navigateTo(NavigationViewModel.Screen.MainScreen)
|
||||
|
|
@ -125,10 +127,11 @@ private fun LoginField(viewModel: AuthenticationViewModel, modifier: Modifier =
|
|||
TextField(
|
||||
modifier = modifier,
|
||||
value = login.value ?: "",
|
||||
onValueChange = { viewModel.updateLogin(it) },
|
||||
label = { Text(text = stringResource(id = R.string.authentication_login)) },
|
||||
colors = outlinedTextFieldColors(),
|
||||
maxLines = 1,
|
||||
singleLine = true,
|
||||
onValueChange = { viewModel.updateLogin(it) },
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -139,6 +142,9 @@ private fun PasswordField(viewModel: AuthenticationViewModel, modifier: Modifier
|
|||
TextField(
|
||||
modifier = modifier,
|
||||
value = password.value ?: "",
|
||||
onValueChange = { viewModel.updatePassword(it) },
|
||||
label = { Text(text = stringResource(id = R.string.authentication_password)) },
|
||||
colors = outlinedTextFieldColors(),
|
||||
maxLines = 1,
|
||||
singleLine = true,
|
||||
visualTransformation = if (passwordVisibility) VisualTransformation.None else PasswordVisualTransformation(),
|
||||
|
|
@ -150,8 +156,6 @@ private fun PasswordField(viewModel: AuthenticationViewModel, modifier: Modifier
|
|||
)
|
||||
}
|
||||
},
|
||||
label = { Text(text = stringResource(id = R.string.authentication_password)) },
|
||||
onValueChange = { viewModel.updatePassword(it) }
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue