Skip to content

Commit

Permalink
Merge pull request #246 from amosproj/gui/feature/difference_highligh…
Browse files Browse the repository at this point in the history
…t_timeline

added colors for non-perfect matches, color subject to change
  • Loading branch information
akriese authored Jan 25, 2024
2 parents 5a4b979 + 9557e93 commit c75685e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions GUI/src/main/kotlin/ui/components/diffScreen/Timeline.kt
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,11 @@ fun Timeline(navigator: FrameNavigation) {
}
}
.background(
if (navigator.diffSequence[item] == AlignmentElement.DELETION) {
Color.Blue
} else if (navigator.diffSequence[item] == AlignmentElement.INSERTION) {
Color.Green
} else {
Color.Black
when (navigator.diffSequence[item]) {
AlignmentElement.DELETION -> Color.Blue
AlignmentElement.INSERTION -> Color.Green
AlignmentElement.MATCH -> Color.Yellow
AlignmentElement.PERFECT -> Color.Black
},
),
) {
Expand Down

0 comments on commit c75685e

Please sign in to comment.