Fixed "Discard changes" button colors
This commit is contained in:
parent
3de4339860
commit
491ed8e5c4
@ -135,10 +135,10 @@ fun EditRemotesDialog(
|
|||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
// .background(MaterialTheme.colors.background)
|
|
||||||
) {
|
) {
|
||||||
IconButton(
|
IconButton(
|
||||||
modifier = Modifier.size(36.dp)
|
modifier = Modifier
|
||||||
|
.size(36.dp)
|
||||||
.pointerHoverIcon(PointerIconDefaults.Hand),
|
.pointerHoverIcon(PointerIconDefaults.Hand),
|
||||||
onClick = {
|
onClick = {
|
||||||
val remotesWithNew = remotesEditorData.listRemotes.toMutableList()
|
val remotesWithNew = remotesEditorData.listRemotes.toMutableList()
|
||||||
@ -166,7 +166,8 @@ fun EditRemotesDialog(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
IconButton(
|
IconButton(
|
||||||
modifier = Modifier.size(36.dp)
|
modifier = Modifier
|
||||||
|
.size(36.dp)
|
||||||
.pointerHoverIcon(PointerIconDefaults.Hand),
|
.pointerHoverIcon(PointerIconDefaults.Hand),
|
||||||
enabled = selectedRemote != null,
|
enabled = selectedRemote != null,
|
||||||
onClick = {
|
onClick = {
|
||||||
@ -189,7 +190,6 @@ fun EditRemotesDialog(
|
|||||||
Column(
|
Column(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
// .background(MaterialTheme.colors.background)
|
|
||||||
.padding(horizontal = 16.dp)
|
.padding(horizontal = 16.dp)
|
||||||
) {
|
) {
|
||||||
if (selectedRemote != null) {
|
if (selectedRemote != null) {
|
||||||
@ -285,7 +285,14 @@ fun EditRemotesDialog(
|
|||||||
remoteChanged = false
|
remoteChanged = false
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Text("Discard changes")
|
Text(
|
||||||
|
"Discard changes",
|
||||||
|
style = MaterialTheme.typography.body1,
|
||||||
|
color = if (remoteChanged)
|
||||||
|
MaterialTheme.colors.primaryVariant
|
||||||
|
else
|
||||||
|
MaterialTheme.colors.primaryTextColor,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user