Fixed pointer not changing to hand in some components
This commit is contained in:
parent
fbe1dd3d9e
commit
ba13fec4a2
@ -735,7 +735,7 @@ fun RevertingButtons(
|
||||
fun AbortButton(modifier: Modifier, onClick: () -> Unit) {
|
||||
Box(
|
||||
modifier = modifier
|
||||
.clickable { onClick() }
|
||||
.handMouseClickable { onClick() }
|
||||
.focusable(false)
|
||||
.clip(MaterialTheme.shapes.small)
|
||||
.background(MaterialTheme.colors.abortButton),
|
||||
@ -765,7 +765,7 @@ fun ConfirmationButton(
|
||||
|
||||
Box(
|
||||
modifier = modifier
|
||||
.clickable { if (enabled) onClick() }
|
||||
.handMouseClickable { if (enabled) onClick() }
|
||||
.focusable(false) // TODO this and the abort button should be focusable (show some kind of border when focused?)
|
||||
.clip(shape)
|
||||
.background(backgroundColor),
|
||||
|
@ -540,7 +540,9 @@ fun IconTextButton(
|
||||
) {
|
||||
TextButton(
|
||||
onClick = onClick,
|
||||
modifier = modifier.size(width = 280.dp, height = 40.dp),
|
||||
modifier = modifier
|
||||
.size(width = 280.dp, height = 40.dp)
|
||||
.handOnHover(),
|
||||
colors = textButtonColors(),
|
||||
) {
|
||||
Row(
|
||||
|
@ -511,7 +511,7 @@ fun CommitsList(
|
||||
modifier = Modifier.height(MaterialTheme.linesHeight.logCommitHeight)
|
||||
.clipToBounds()
|
||||
.fillMaxWidth()
|
||||
.clickable { onUncommittedChangesSelected() }
|
||||
.handMouseClickable { onUncommittedChangesSelected() }
|
||||
) {
|
||||
UncommittedChangesGraphNode(
|
||||
hasPreviousCommits = commitList.isNotEmpty(),
|
||||
@ -848,7 +848,7 @@ private fun CommitLine(
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.height(MaterialTheme.linesHeight.logCommitHeight)
|
||||
.clickable { onRevCommitSelected() }
|
||||
.handMouseClickable { onRevCommitSelected() }
|
||||
) {
|
||||
val nodeColor = colors[graphNode.lane.position % colors.size]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user