• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jzombie / term-wm / 20770181342

07 Jan 2026 04:02AM UTC coverage: 36.037% (+2.5%) from 33.582%
20770181342

Pull #3

github

web-flow
Merge 4d97c195c into ab0b82880
Pull Request #3: General UI improvements

454 of 2495 new or added lines in 26 files covered. (18.2%)

17 existing lines in 7 files now uncovered.

2515 of 6979 relevant lines covered (36.04%)

2.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

29.33
/src/theme.rs
1
use ratatui::style::Color;
2

3
// Centralized theme colors. Keep these as small helpers so we can
4
// map RGB to the terminal-supported color via `crate::colors` when
5
// appropriate.
6

7
pub const ACCENT_RGB: (u8, u8, u8) = (200, 100, 0);
8
pub const ACCENT_ALT_RGB: (u8, u8, u8) = (255, 165, 0);
9

10
pub fn rgb_to_color(rgb: (u8, u8, u8)) -> Color {
2✔
11
    crate::term_color::map_rgb_to_color(rgb.0, rgb.1, rgb.2)
2✔
12
}
2✔
13

14
pub fn accent() -> Color {
1✔
15
    rgb_to_color(ACCENT_RGB)
1✔
16
}
1✔
17

18
pub fn accent_alt() -> Color {
1✔
19
    rgb_to_color(ACCENT_ALT_RGB)
1✔
20
}
1✔
21

22
// Panel / menu
NEW
23
pub fn panel_bg() -> Color {
×
NEW
24
    Color::DarkGray
×
NEW
25
}
×
NEW
26
pub fn panel_fg() -> Color {
×
NEW
27
    Color::Black
×
NEW
28
}
×
NEW
29
pub fn panel_inactive_fg() -> Color {
×
NEW
30
    Color::DarkGray
×
NEW
31
}
×
NEW
32
pub fn panel_active_bg() -> Color {
×
NEW
33
    Color::Gray
×
NEW
34
}
×
NEW
35
pub fn panel_active_fg() -> Color {
×
NEW
36
    Color::Black
×
NEW
37
}
×
38

39
// Menu
NEW
40
pub fn menu_bg() -> Color {
×
NEW
41
    Color::DarkGray
×
NEW
42
}
×
NEW
43
pub fn menu_fg() -> Color {
×
NEW
44
    Color::White
×
NEW
45
}
×
NEW
46
pub fn menu_selected_bg() -> Color {
×
NEW
47
    Color::Gray
×
NEW
48
}
×
NEW
49
pub fn menu_selected_fg() -> Color {
×
NEW
50
    Color::Black
×
NEW
51
}
×
52

53
// Success / indicator
NEW
54
pub fn success_bg() -> Color {
×
NEW
55
    Color::Green
×
NEW
56
}
×
NEW
57
pub fn success_fg() -> Color {
×
NEW
58
    Color::Black
×
NEW
59
}
×
60

61
// Dialog / confirm
62
pub fn dialog_bg() -> Color {
5✔
63
    Color::Black
5✔
64
}
5✔
NEW
65
pub fn dialog_fg() -> Color {
×
NEW
66
    Color::White
×
NEW
67
}
×
NEW
68
pub fn dialog_separator() -> Color {
×
NEW
69
    Color::DarkGray
×
NEW
70
}
×
71

72
// Decorator
NEW
73
pub fn decorator_header_bg() -> Color {
×
NEW
74
    Color::Blue
×
NEW
75
}
×
NEW
76
pub fn decorator_header_fg() -> Color {
×
NEW
77
    Color::White
×
NEW
78
}
×
NEW
79
pub fn decorator_border() -> Color {
×
NEW
80
    Color::DarkGray
×
NEW
81
}
×
82

83
// Debug log highlight
NEW
84
pub fn debug_highlight() -> Color {
×
85
    // Use accent alt for a bright highlight
NEW
86
    accent_alt()
×
NEW
87
}
×
88

89
#[cfg(test)]
90
mod tests {
91
    use super::*;
92
    use ratatui::style::Color;
93

94
    #[test]
95
    fn accent_returns_a_color_variant() {
1✔
96
        let a = accent();
1✔
97
        match a {
1✔
98
            Color::Rgb(_, _, _) | Color::Indexed(_) => {}
1✔
NEW
99
            _ => panic!("unexpected color variant"),
×
100
        }
101
    }
1✔
102

103
    #[test]
104
    fn accent_alt_returns_a_color_variant() {
1✔
105
        let a = accent_alt();
1✔
106
        match a {
1✔
107
            Color::Rgb(_, _, _) | Color::Indexed(_) => {}
1✔
NEW
108
            _ => panic!("unexpected color variant"),
×
109
        }
110
    }
1✔
111
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc