use ratatui::style::Color;
pub mod selection {
use super::*;
pub const BG: Color = Color::Indexed(24); pub const FG: Color = Color::White;
}
pub mod log_view {
use super::*;
pub const WORKING_COPY_MARKER: Color = Color::Green;
pub const NORMAL_MARKER: Color = Color::Blue;
pub const ROOT_MARKER: Color = Color::Magenta;
pub const CHANGE_ID: Color = Color::Yellow;
pub const BOOKMARK: Color = Color::Cyan;
pub const TIMESTAMP: Color = Color::DarkGray;
pub const EMPTY_LABEL: Color = Color::DarkGray;
pub const GRAPH_LINE: Color = Color::Blue;
}
pub mod diff_view {
use super::*;
pub const ADDED: Color = Color::Green;
pub const DELETED: Color = Color::Red;
pub const FILE_HEADER: Color = Color::Cyan;
pub const LINE_NUMBER: Color = Color::DarkGray;
}
pub mod status_view {
use super::*;
pub const ADDED: Color = Color::Green;
pub const MODIFIED: Color = Color::Yellow;
pub const DELETED: Color = Color::Red;
pub const RENAMED: Color = Color::Cyan;
pub const CONFLICTED: Color = Color::Magenta;
pub const HEADER: Color = Color::Cyan;
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_log_view_colors_defined() {
let _ = log_view::WORKING_COPY_MARKER;
let _ = log_view::CHANGE_ID;
let _ = log_view::BOOKMARK;
}
#[test]
fn test_diff_view_colors_defined() {
let _ = diff_view::ADDED;
let _ = diff_view::DELETED;
let _ = diff_view::FILE_HEADER;
let _ = diff_view::LINE_NUMBER;
}
#[test]
fn test_status_view_colors_defined() {
let _ = status_view::ADDED;
let _ = status_view::CONFLICTED;
}
}