Fix tab_bar_background not being respected#2480
Fix tab_bar_background not being respected#2480dmitmel wants to merge 1 commit intokovidgoyal:masterfrom dmitmel:fix/tab_bar_background
Conversation
|
I also have to mention that I tested my changes on various |
|
Your patch broke changing the colors, via patch_colors. See my latest commit |
|
I can revert changes to |
|
No, see d9d4199 |
|
Here you go: diff --git a/kitty/tab_bar.py b/kitty/tab_bar.py
index be2866ba..c5eb6068 100644
--- a/kitty/tab_bar.py
+++ b/kitty/tab_bar.py
@@ -82,6 +82,7 @@ def draw_tab_with_separator(draw_data: DrawData, screen: Screen, tab: TabBarData
end = screen.cursor.x
screen.cursor.bold = screen.cursor.italic = False
screen.cursor.fg = 0
+ screen.cursor.bg = as_rgb(color_as_int(draw_data.inactive_bg))
screen.draw(draw_data.sep)
screen.cursor.bg = 0
return end |
|
That was deliberate, I prefer the separator for the active tab to use the active background. Having one cell of inactive bg after the last tab if the last tab is active looks weird. |
|
Looks OK to me, though if you want to change that, I am OK either way. make a separate PR for it, and use is_last to set the bg to inactive_tab_bg only for non-last tabs. |
|
Nevermind. I switched to powerline mode and I hope get used to it soon. |
|
No last separator looks bad when the tab bar bbackground is set to something other than inactive background. Like I said, I am OK with unising inactive background for all separators except the last one. |






Hi! After update to v0.17.0 my tab bar changed from:
to:
By looking through the changelog I found that it was commit 0d87b8f which broke my configuration. Looks like while that commit did fix #2464, it broke
powerlineandseparatortab bar styles. Fortunately, the fix was simple enough and nowtab_bar_backgroundis treated as specified in the documentation.P. S. I fixed my specific configuration by copying the color from
inactive_tab_backgroundtotab_bar_background. Since my changes to tab bar rendering were insignificant (in other words: part of my config for tab bar isn't much different from the default configuration) I think that this fix is worthwhile including in the default configuration.