aipack 0.8.21

Command Agent runner to accelerate production coding with genai.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::tui::view::style;
use ratatui::style::{Color, Style};

/// Returns the style for a path segment, optionally hovered or with a debug color.
pub fn style_text_path(hovered: bool, debug_color: Option<Color>) -> Style {
	let mut st = if hovered {
		style::STL_TXT_PATH_HOVER
	} else {
		style::STL_TXT_PATH
	};

	if let Some(color) = debug_color {
		st = st.fg(color);
	}

	st
}