1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! UI styling constants and helper functions for the TUI.
//!
//! This module provides a consistent set of styles for the terminal interface, including:
//! - Text colors and formatting for different UI elements
//! - Focus state indicators
//! - Border styles for panels and dialogs
//!
//! The styles are designed to provide clear visual hierarchy and feedback while
//! maintaining readability in different terminal color schemes.
use ;
/// Style for help text and secondary information.
/// Uses a muted gray color to indicate supplementary content.
pub const HELP: Style = new.fg;
/// Style for the currently selected item.
/// Combines background, text color, and bold formatting to make the
/// selection clearly visible.
pub const HIGHLIGHT: Style =
new.bg.fg.add_modifier;
/// Style for keyboard shortcuts and interactive elements.
/// Uses yellow to draw attention to actionable items.
pub const KEY_HIGHLIGHT: Style = new.fg;
/// Style for field labels and categories.
/// Uses light blue to distinguish labels from their values.
pub const LABEL: Style = new.fg;
/// Style for regular text content.
/// Uses a neutral gray that works well for main content.
pub const NORMAL: Style = new.fg;
/// Style for section titles and headers.
/// Combines cyan color with bold text to create visual hierarchy.
pub const TITLE: Style = new.fg.add_modifier;
/// Returns the appropriate border style based on focus state.
///
/// # Arguments
///
/// * `focused` - Whether the panel is currently focused