From a4eb8ae75da9c96e3d9b209f574bcb3252dc058d Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Mon, 27 Jul 2026 22:44:57 +0300 Subject: [PATCH] Sync Kitty automatic themes from maxwell --- .../kitty/private_dark-theme.auto.conf | 31 +++++++++++++++++++ .../kitty/private_light-theme.auto.conf | 28 +++++++++++++++++ .../private_no-preference-theme.auto.conf | 28 +++++++++++++++++ .../executable_verify_auto_themes.sh | 27 ++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 private_dot_config/kitty/private_dark-theme.auto.conf create mode 100644 private_dot_config/kitty/private_light-theme.auto.conf create mode 100644 private_dot_config/kitty/private_no-preference-theme.auto.conf create mode 100644 private_dot_config/kitty/private_tests/executable_verify_auto_themes.sh diff --git a/private_dot_config/kitty/private_dark-theme.auto.conf b/private_dot_config/kitty/private_dark-theme.auto.conf new file mode 100644 index 0000000..fc08e36 --- /dev/null +++ b/private_dot_config/kitty/private_dark-theme.auto.conf @@ -0,0 +1,31 @@ +background #1c2836 +foreground #ffffff +cursor #bbbbbb +selection_background #b4d5ff +color0 #000000 +color8 #545454 +color1 #f9555f +color9 #fa8b8e +color2 #20af89 +color10 #34bb99 +color3 #fdf029 +color11 #ffff55 +color4 #589cf5 +color12 #589cf5 +color5 #934d95 +color13 #e75598 +color6 #1e9ee6 +color14 #3978bb +color7 #bbbbbb +color15 #ffffff +selection_foreground #1c2836 + +# START_AUTOGENERATED_TAB_STYLE +# Feel free to update these colors manually and remove these comments. +active_tab_foreground #1c2836 +active_tab_background #2e84e6 +inactive_tab_foreground #2e84e6 +inactive_tab_background #1c2836 +# END_AUTOGENERATED_TAB_STYLE + +macos_titlebar_color background diff --git a/private_dot_config/kitty/private_light-theme.auto.conf b/private_dot_config/kitty/private_light-theme.auto.conf new file mode 100644 index 0000000..28377dd --- /dev/null +++ b/private_dot_config/kitty/private_light-theme.auto.conf @@ -0,0 +1,28 @@ +background #ffffff +foreground #4c4c4c +cursor #4c4c4c +selection_background #d6d6d6 +color0 #000000 +color8 #000000 +color1 #c82828 +color9 #c82828 +color2 #708b00 +color10 #708b00 +color3 #e9b600 +color11 #e9b600 +color4 #4170ae +color12 #4170ae +color5 #8958a7 +color13 #8958a7 +color6 #3d999f +color14 #3d999f +color7 #fffefe +color15 #fffefe +selection_foreground #ffffff + +active_tab_foreground #ffffff +active_tab_background #2e84e6 +inactive_tab_foreground #2e84e6 +inactive_tab_background #ffffff + +macos_titlebar_color background diff --git a/private_dot_config/kitty/private_no-preference-theme.auto.conf b/private_dot_config/kitty/private_no-preference-theme.auto.conf new file mode 100644 index 0000000..a2568b6 --- /dev/null +++ b/private_dot_config/kitty/private_no-preference-theme.auto.conf @@ -0,0 +1,28 @@ +background #1c2836 +foreground #ffffff +cursor #bbbbbb +selection_background #b4d5ff +color0 #000000 +color8 #545454 +color1 #f9555f +color9 #fa8b8e +color2 #20af89 +color10 #34bb99 +color3 #fdf029 +color11 #ffff55 +color4 #589cf5 +color12 #589cf5 +color5 #934d95 +color13 #e75598 +color6 #1e9ee6 +color14 #3978bb +color7 #bbbbbb +color15 #ffffff +selection_foreground #1c2836 + +active_tab_foreground #1c2836 +active_tab_background #2e84e6 +inactive_tab_foreground #2e84e6 +inactive_tab_background #1c2836 + +macos_titlebar_color background diff --git a/private_dot_config/kitty/private_tests/executable_verify_auto_themes.sh b/private_dot_config/kitty/private_tests/executable_verify_auto_themes.sh new file mode 100644 index 0000000..7020439 --- /dev/null +++ b/private_dot_config/kitty/private_tests/executable_verify_auto_themes.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +set -eu + +config_dir=${1:-"$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"} + +for appearance in dark light no-preference; do + config_file="$config_dir/$appearance-theme.auto.conf" + if [ ! -f "$config_file" ]; then + echo "not ok - missing $appearance automatic Kitty theme" >&2 + exit 1 + fi + + kitty +runpy ' +from kitty.config import load_config +import sys + +options = load_config(sys.argv[1]) +if options.macos_titlebar_color != 1: + raise SystemExit( + f"{sys.argv[2]} automatic Kitty theme does not use its background " + "for the macOS titlebar" + ) +' "$config_file" "$appearance" +done + +echo "ok - automatic Kitty themes match their macOS titlebars"