Fixed pointer not changing to hand in some components

This commit is contained in:
Abdelilah El Aissaoui 2024-08-02 23:17:03 +02:00
parent fbe1dd3d9e
commit ba13fec4a2
No known key found for this signature in database
GPG Key ID: 7587FC860F594869
3 changed files with 7 additions and 5 deletions

View File

@ -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),

View File

@ -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(

View File

@ -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]