From 3223d93cb3c77ab02aa0a35f2a8314e447cee9a4 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 9 Jul 2026 21:43:23 +0200 Subject: chore: Separate daemon, client, server, and lib into crates --- crates/client/src/atuin_client/theme.rs | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 crates/client/src/atuin_client/theme.rs (limited to 'crates/client/src/atuin_client/theme.rs') diff --git a/crates/client/src/atuin_client/theme.rs b/crates/client/src/atuin_client/theme.rs new file mode 100644 index 00000000..ec0538e9 --- /dev/null +++ b/crates/client/src/atuin_client/theme.rs @@ -0,0 +1,41 @@ +use crossterm::style::{Attribute, Attributes, Color, ContentStyle}; +pub(crate) fn style_base() -> ContentStyle { + ContentStyle::default() +} +pub(crate) fn style_annotation() -> ContentStyle { + ContentStyle { + foreground_color: Some(Color::DarkGrey), + ..ContentStyle::default() + } +} +pub(crate) fn style_important() -> ContentStyle { + ContentStyle { + foreground_color: Some(Color::White), + attributes: Attributes::from(Attribute::Bold), + ..ContentStyle::default() + } +} +pub(crate) fn style_guidance() -> ContentStyle { + ContentStyle { + foreground_color: Some(Color::DarkBlue), + ..ContentStyle::default() + } +} +pub(crate) fn style_alerterror() -> ContentStyle { + ContentStyle { + foreground_color: Some(Color::DarkRed), + ..ContentStyle::default() + } +} +pub(crate) fn style_alertinfo() -> ContentStyle { + ContentStyle { + foreground_color: Some(Color::DarkGreen), + ..ContentStyle::default() + } +} +pub(crate) fn style_alertwarn() -> ContentStyle { + ContentStyle { + foreground_color: Some(Color::DarkYellow), + ..ContentStyle::default() + } +} -- cgit v1.3.1