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) { fun AbortButton(modifier: Modifier, onClick: () -> Unit) {
Box( Box(
modifier = modifier modifier = modifier
.clickable { onClick() } .handMouseClickable { onClick() }
.focusable(false) .focusable(false)
.clip(MaterialTheme.shapes.small) .clip(MaterialTheme.shapes.small)
.background(MaterialTheme.colors.abortButton), .background(MaterialTheme.colors.abortButton),
@ -765,7 +765,7 @@ fun ConfirmationButton(
Box( Box(
modifier = modifier 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?) .focusable(false) // TODO this and the abort button should be focusable (show some kind of border when focused?)
.clip(shape) .clip(shape)
.background(backgroundColor), .background(backgroundColor),

View File

@ -540,7 +540,9 @@ fun IconTextButton(
) { ) {
TextButton( TextButton(
onClick = onClick, onClick = onClick,
modifier = modifier.size(width = 280.dp, height = 40.dp), modifier = modifier
.size(width = 280.dp, height = 40.dp)
.handOnHover(),
colors = textButtonColors(), colors = textButtonColors(),
) { ) {
Row( Row(

View File

@ -511,7 +511,7 @@ fun CommitsList(
modifier = Modifier.height(MaterialTheme.linesHeight.logCommitHeight) modifier = Modifier.height(MaterialTheme.linesHeight.logCommitHeight)
.clipToBounds() .clipToBounds()
.fillMaxWidth() .fillMaxWidth()
.clickable { onUncommittedChangesSelected() } .handMouseClickable { onUncommittedChangesSelected() }
) { ) {
UncommittedChangesGraphNode( UncommittedChangesGraphNode(
hasPreviousCommits = commitList.isNotEmpty(), hasPreviousCommits = commitList.isNotEmpty(),
@ -848,7 +848,7 @@ private fun CommitLine(
Box( Box(
modifier = Modifier modifier = Modifier
.height(MaterialTheme.linesHeight.logCommitHeight) .height(MaterialTheme.linesHeight.logCommitHeight)
.clickable { onRevCommitSelected() } .handMouseClickable { onRevCommitSelected() }
) { ) {
val nodeColor = colors[graphNode.lane.position % colors.size] val nodeColor = colors[graphNode.lane.position % colors.size]