Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added colors for non-perfect matches, color subject to change #246

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading