Closed erwin closed 2 years ago
I can reproduce the issue with the following command.
kitty --config=NONE -o tab_bar_margin_width=10 -o tab_bar_style=powerline -o tab_bar_background=#ff0000 -o background=#00ff00 -o remember_window_size=no -o initial_window_width=60c -o initial_window_height=10c -o allow_remote_control=yes -o 'map f1 remote_control set-colors --all --configured tab_bar_background=#ff00ff' bash -c 'kitty @ launch --type tab; sleep 2; kitty @ set-colors --all --configured background=#ffffff; read'
Maybe the background color of draw_data needs to be updated in tab_bar.
When tab_bar_margin_width
is set, the tab bar will still have the (previous) background color on the right side.
init green bg:
set background white:
press f1 set tab_bar_background:
After pulling to the latest, I can still use the above command to reproduce the following problem.
The margin at the far right of the tab bar retains its previous background color.
Also, is tab_bar_margin_width
more appropriate as padding
? It might look better to use tab_bar_background for the whole bar, including the current margin area. I'm not sure about that. After all, the current name is margin, which means it's not part of the tab bar.
Perhaps some users want to use padding
, or set the tab bar background to be the same color as the background as a workaround.
The latest commit has fixed the margin color issue on the far right. However, I noticed that the fade style seems to be abnormal at the moment and has turned into solid color tab.
kitty --config=NONE -o tab_bar_style=fade
On Sun, Oct 24, 2021 at 11:53:09PM -0700, page-down wrote:
The latest commit has fixed the margin color issue on the far right. However, I noticed that the fade style seems to be abnormal at the moment and has turned into solid color tab.
kitty --config=NONE -o tab_bar_style=fade
Looks OK for me.
Looks OK for me.
Sorry for the false report. That's exactly how fade
works.
This has absolutely nothing to do with this thread.
When the tab title is very long, fade is a single solid tab.
Under certain layouts, after opening and closing a tab, there will be a leftover pixel of the tab bar at the bottom that will blink with the cursor.
The following uses fat layout, opens three windows, two tabs, and closes the last tab.
kitty --config=NONE -o tab_bar_style=fade -o enabled_layouts=fat -o allow_remote_control=yes bash -c 'for i in {1..3}; do kitty @ launch --title debug; done; kitty @ launch --type tab; kitty @ close-tab -m id:2'
The above is reproduced under macOS and Linux X11. It does not blink with the cursor under Linux.
Describe the bug If
tab_bar_style
is set to:powerline
slant
fade
Note, this does not impact theseparator
styleThe right edge border of the tab bar color is updated differently than at initialization. When launched with a dark theme: Then use
kitty @ set-colors --all --configured "change_to_light_theme"
The far right edge of the tab bar will preserve the original color it was launched with.Here is a window that was launched with a light theme, that I used
@ set-colors
to toggle to a dark theme...Also note that changing the powerline symbol doesn't fix it, however getting rid of the tab border (ie, using the "tab separator style") is kind of a workaround...
To Reproduce Steps to reproduce the behavior:
tab_bar_style
topowerline
,slant
orfade
allow_remote_control yes
and setlisten_on unix:/tmp/kitty
cd ~/.config/kitty
kitty @ set-colors --all --configured Clrs.conf
Screenshots See above.
Environment details
Additional context Try to reproduce the problem with
kitty --config NONE
if you cannot then post a minimal kitty.conf that reproduces the problem.Minimal kitty config to reproduce: