This check in offers alpha support for per process metrics, you can view threads, process CPU usage over time, IO, memory, CPU time, parent process, command, uptime and journal entries. This is unfinished but all major functionality is available and I wanted to make it available to feedback and testing.
63 lines
2.9 KiB
Rust
63 lines
2.9 KiB
Rust
//! Shared UI theme constants.
|
|
|
|
use ratatui::style::Color;
|
|
|
|
// Scrollbar colors (same look as before)
|
|
pub const SB_ARROW: Color = Color::Rgb(170, 170, 180);
|
|
pub const SB_TRACK: Color = Color::Rgb(170, 170, 180);
|
|
pub const SB_THUMB: Color = Color::Rgb(170, 170, 180);
|
|
|
|
// Modal palette
|
|
pub const MODAL_DIM_BG: Color = Color::Rgb(15, 15, 25);
|
|
pub const MODAL_BG: Color = Color::Rgb(26, 26, 46);
|
|
pub const MODAL_FG: Color = Color::Rgb(230, 230, 230);
|
|
pub const MODAL_TITLE_FG: Color = Color::Rgb(255, 102, 102); // soft red for title text
|
|
pub const MODAL_BORDER_FG: Color = Color::Rgb(204, 51, 51); // darker red border
|
|
|
|
pub const MODAL_ICON_PINK: Color = Color::Rgb(255, 182, 193); // light pink icons line
|
|
pub const MODAL_AGENT_FG: Color = Color::Rgb(220, 220, 255); // pale periwinkle
|
|
pub const MODAL_HINT_FG: Color = Color::Rgb(255, 215, 0); // gold for message icon
|
|
pub const MODAL_OFFLINE_LABEL_FG: Color = Color::Rgb(135, 206, 235); // sky blue label
|
|
pub const MODAL_RETRY_LABEL_FG: Color = Color::Rgb(255, 165, 0); // orange label
|
|
pub const MODAL_COUNTDOWN_LABEL_FG: Color = Color::Rgb(255, 192, 203); // pink label for countdown
|
|
|
|
// Buttons
|
|
pub const BTN_RETRY_BG_ACTIVE: Color = Color::Rgb(46, 204, 113); // modern green
|
|
pub const BTN_RETRY_FG_ACTIVE: Color = Color::Rgb(26, 26, 46);
|
|
pub const BTN_RETRY_FG_INACTIVE: Color = Color::Rgb(46, 204, 113);
|
|
|
|
pub const BTN_EXIT_BG_ACTIVE: Color = Color::Rgb(255, 255, 255); // modern red
|
|
pub const BTN_EXIT_FG_ACTIVE: Color = Color::Rgb(26, 26, 46);
|
|
pub const BTN_EXIT_FG_INACTIVE: Color = Color::Rgb(255, 255, 255);
|
|
|
|
// Process selection colors
|
|
pub const PROCESS_SELECTION_BG: Color = Color::Rgb(147, 112, 219); // Medium slate blue (purple)
|
|
pub const PROCESS_SELECTION_FG: Color = Color::Rgb(255, 255, 255); // White text for contrast
|
|
pub const PROCESS_TOOLTIP_BG: Color = Color::Rgb(147, 112, 219); // Same purple as selection
|
|
pub const PROCESS_TOOLTIP_FG: Color = Color::Rgb(255, 255, 255); // White text for contrast
|
|
|
|
// Process details modal colors (matches main UI aesthetic - no custom colors, terminal defaults)
|
|
pub const PROCESS_DETAILS_ACCENT: Color = Color::Rgb(147, 112, 219); // Purple accent for highlights
|
|
|
|
// Emoji / icon strings (centralized so they can be themed/swapped later)
|
|
pub const ICON_WARNING_TITLE: &str = " 🔌 CONNECTION ERROR ";
|
|
pub const ICON_CLUSTER: &str = "⚠️";
|
|
pub const ICON_MESSAGE: &str = "💭 ";
|
|
pub const ICON_OFFLINE_LABEL: &str = "⏱️ Offline for: ";
|
|
pub const ICON_RETRY_LABEL: &str = "🔄 Retry attempts: ";
|
|
pub const ICON_COUNTDOWN_LABEL: &str = "⏰ Next auto retry: ";
|
|
pub const BTN_RETRY_TEXT: &str = " 🔄 Retry ";
|
|
pub const BTN_EXIT_TEXT: &str = " ❌ Exit ";
|
|
|
|
// Large multi-line warning icon
|
|
pub const LARGE_ERROR_ICON: &[&str] = &[
|
|
" /\\ ",
|
|
" / \\ ",
|
|
" / !! \\ ",
|
|
" / !!!! \\ ",
|
|
" / !! \\ ",
|
|
" / !!!! \\ ",
|
|
" / !! \\ ",
|
|
" /______________\\ ",
|
|
];
|