From f189d511b8e7c6436381849be74a1f59fe6b2cc0 Mon Sep 17 00:00:00 2001 From: ansub Date: Thu, 26 Feb 2026 14:36:42 +0530 Subject: [PATCH] feat(theme): add glacier light theme and soften git prompt bar --- README.md | 1 + bin/boo | 7 ++++--- themes/glacier.theme | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 themes/glacier.theme diff --git a/README.md b/README.md index 7a4fcc5..5085f4b 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,7 @@ Expected result: - `abyss`: deep indigo with violet-magenta accents (default) - `clay`: warm cream light mode with earthy terracotta accents +- `glacier`: icy daylight light mode with steel-blue accents - `crimson`: high-contrast red mode - `fallout`: RobCo phosphor CRT, warm amber-lime on near-black - `lunar`: desaturated monochrome noir diff --git a/bin/boo b/bin/boo index fcbf71f..b91e42e 100755 --- a/bin/boo +++ b/bin/boo @@ -1152,7 +1152,7 @@ apply_prompt_theme() { left_os_bg="$(blend_color "$_T_bg" "$_T_fg" 140)" left_user_bg="$(blend_color "$_T_bg" "$_T_fg" 210)" left_path_bg="$(blend_color "$_T_bg" "$_T_fg" 90)" - left_git_bg="$(blend_color "$_T_bg" "$_T_fg" 280)" + left_git_bg="${_T_omp_git_bg}" left_exec_bg="$(blend_color "$_T_bg" "$_T_fg" 360)" left_root_bg="$_T_pal_1" left_root_fg="$(theme_text_color_for_bg "$left_root_bg")" @@ -1183,8 +1183,9 @@ apply_prompt_theme() { tf_fg="$(readable_color_or_theme_text "$chip_infra_bg" "${_T_omp_tf_fg}")" sysinfo_fg="$(readable_color_or_theme_text "$chip_metric_bg" "${_T_omp_sysinfo_fg}")" time_fg="$(readable_color_or_theme_text "$chip_time_bg" "${_T_ui_label:-$_T_pal_7}")" - git_dirty_bg="$_T_pal_3" - git_diverged_bg="$_T_pal_5" + # Keep git state highlighting subtle so light themes don't get muddy/dark blocks. + git_dirty_bg="$(blend_color "$left_git_bg" "$_T_pal_3" 240)" + git_diverged_bg="$(blend_color "$left_git_bg" "$_T_pal_5" 240)" git_dirty_tpl="{{ if or (.Working.Changed) (.Staging.Changed) }}${git_dirty_bg}{{ end }}" git_diverged_tpl="{{ if and (gt .Ahead 0) (gt .Behind 0) }}${git_diverged_bg}{{ end }}" diff --git a/themes/glacier.theme b/themes/glacier.theme new file mode 100644 index 0000000..ea70aac --- /dev/null +++ b/themes/glacier.theme @@ -0,0 +1,35 @@ +# builtin +description=icy daylight light mode - steel blue accents +accent=#3c79b8 +bg=#eef4fb +fg=#253242 +cursor=#3c79b8 +cursor_text=#eef4fb +selection_bg=#d7e5f5 +selection_fg=#1a2633 +ui_dim=#617489 +ui_label=#526579 +ui_value=#2f4357 +omp_chip_cloud_bg=#cfe0f2 +omp_go_fg=#2f6f54 +omp_az_fg=#3c79b8 +omp_gcp_fg=#4b88c5 +omp_tf_fg=#6b5fb0 +omp_sysinfo_fg=#5b7691 +omp_git_bg=#c4d8ee +pal_0=#253242 +pal_1=#b5525e +pal_2=#2f7a5d +pal_3=#8a6d2f +pal_4=#3e6fa5 +pal_5=#6e5fae +pal_6=#2d7f8a +pal_7=#dce8f5 +pal_8=#4a5a6b +pal_9=#c7616d +pal_10=#3f8c6d +pal_11=#9b8040 +pal_12=#4e83be +pal_13=#7c6fc0 +pal_14=#3b95a0 +pal_15=#eef4fb