From f589494e5752e6a0233213bdf8df1f351f5d8f4d Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 2 Sep 2022 02:07:31 -0400 Subject: [PATCH] feat: Improve the cursor color of day Kitty theme (#153) * Improve the cursor color of day Kitty theme Previously the cursor colour would have the default foreground color which is a a bit too dark when you have a block cursor and use autocomplete features. Using the background color as the cursor text ensures that text in a block cursor is always visible. * Update generation script and other kitty themes --- extras/kitty_tokyonight_day.conf | 3 ++- extras/kitty_tokyonight_night.conf | 3 ++- extras/kitty_tokyonight_storm.conf | 3 ++- lua/tokyonight/extra/kitty.lua | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/extras/kitty_tokyonight_day.conf b/extras/kitty_tokyonight_day.conf index f2d7425..d0c95b5 100644 --- a/extras/kitty_tokyonight_day.conf +++ b/extras/kitty_tokyonight_day.conf @@ -12,6 +12,7 @@ selection_background #99a7df selection_foreground #3760bf url_color #387068 cursor #3760bf +cursor_text_color #e1e2e7 # Tabs active_tab_background #2e7de9 @@ -43,4 +44,4 @@ color15 #3760bf # extended colors color16 #b15c00 color17 #c64343 - \ No newline at end of file + diff --git a/extras/kitty_tokyonight_night.conf b/extras/kitty_tokyonight_night.conf index 6990002..fa4e665 100644 --- a/extras/kitty_tokyonight_night.conf +++ b/extras/kitty_tokyonight_night.conf @@ -12,6 +12,7 @@ selection_background #33467C selection_foreground #c0caf5 url_color #73daca cursor #c0caf5 +cursor_text_color #1a1b26 # Tabs active_tab_background #7aa2f7 @@ -43,4 +44,4 @@ color15 #c0caf5 # extended colors color16 #ff9e64 color17 #db4b4b - \ No newline at end of file + diff --git a/extras/kitty_tokyonight_storm.conf b/extras/kitty_tokyonight_storm.conf index 33c65bc..8b6fa00 100644 --- a/extras/kitty_tokyonight_storm.conf +++ b/extras/kitty_tokyonight_storm.conf @@ -12,6 +12,7 @@ selection_background #364A82 selection_foreground #c0caf5 url_color #73daca cursor #c0caf5 +cursor_text_color #24283b # Tabs active_tab_background #7aa2f7 @@ -43,4 +44,4 @@ color15 #c0caf5 # extended colors color16 #ff9e64 color17 #db4b4b - \ No newline at end of file + diff --git a/lua/tokyonight/extra/kitty.lua b/lua/tokyonight/extra/kitty.lua index 6ce7b88..4d75370 100644 --- a/lua/tokyonight/extra/kitty.lua +++ b/lua/tokyonight/extra/kitty.lua @@ -20,6 +20,7 @@ selection_background ${bg_visual} selection_foreground ${fg} url_color ${green1} cursor ${fg} +cursor_text_color ${bg} # Tabs active_tab_background ${blue}