brain: Change color of in-progress
5f0bf32db49c6af550d78a699d42eff530cc3e10
1 parent
f15f7c86
crates/brain/src/session/status.rs
+4 -4
| 463 | 463 | let percent = slot.progress.filled(100); |
|
| 464 | 464 | let hunk_color = match (slot.state, percent) { |
|
| 465 | 465 | (CommitReviewState::Rejected, _) => palette.negative_fg, |
|
| 466 | 466 | (_, 0) => colors::fixed::MUTED, |
|
| 467 | 467 | (_, 100) => palette.positive_fg, |
|
| 468 | - | _ => colors::rgb::BLUE, |
|
| 468 | + | _ => Color::White, |
|
| 469 | 469 | }; |
|
| 470 | 470 | let state = match slot.state { |
|
| 471 | 471 | CommitReviewState::Accepted => Label::from_char(REVIEWED_MARK).fg(palette.positive_fg), |
|
| 472 | 472 | CommitReviewState::Rejected => Label::from_char(REJECTED_MARK).fg(palette.negative_fg), |
|
| 473 | 473 | CommitReviewState::Dropped => Label::from_char(DROPPED_MARK).fg(colors::fixed::MUTED), |
|
| 474 | 474 | CommitReviewState::Pending if slot.progress.accepted > 0 => { |
|
| 475 | - | Label::from_char(IN_PROGRESS_MARK).fg(colors::rgb::BLUE) |
|
| 475 | + | Label::from_char(IN_PROGRESS_MARK).fg(Color::White) |
|
| 476 | 476 | } |
|
| 477 | 477 | CommitReviewState::Pending => Label::from_char(PENDING_MARK).fg(colors::fixed::MUTED), |
|
| 478 | 478 | }; |
|
| 479 | 479 | let progress = Line::new(state) |
|
| 480 | 480 | .item(Label::space()) |
| 913 | 913 | .starts_with(IN_PROGRESS_MARK) |
|
| 914 | 914 | ); |
|
| 915 | 915 | ||
| 916 | 916 | for (state, accepted_lines, expected_color) in [ |
|
| 917 | 917 | (CommitReviewState::Pending, 0, colors::fixed::MUTED), |
|
| 918 | - | (CommitReviewState::Pending, 1, colors::rgb::BLUE), |
|
| 918 | + | (CommitReviewState::Pending, 1, Color::White), |
|
| 919 | 919 | ( |
|
| 920 | 920 | CommitReviewState::Pending, |
|
| 921 | 921 | 4, |
|
| 922 | 922 | DiffPalette::default().positive_fg, |
|
| 923 | 923 | ), |
| 947 | 947 | let slash_col = 2 + percent.to_string().len() + 1; |
|
| 948 | 948 | ||
| 949 | 949 | let icon_color = match (state, accepted_lines) { |
|
| 950 | 950 | (CommitReviewState::Rejected, _) => DiffPalette::default().negative_fg, |
|
| 951 | 951 | (CommitReviewState::Pending, 0) => colors::fixed::MUTED, |
|
| 952 | - | (CommitReviewState::Pending, _) => colors::rgb::BLUE, |
|
| 952 | + | (CommitReviewState::Pending, _) => Color::White, |
|
| 953 | 953 | _ => unreachable!(), |
|
| 954 | 954 | }; |
|
| 955 | 955 | ||
| 956 | 956 | assert_eq!( |
|
| 957 | 957 | buffer.get(0, 0).unwrap().style(), |