centaur-tabs icon indicating copy to clipboard operation
centaur-tabs copied to clipboard

Tab-bar styling issues with Emacs 27.1

Open balaji-dutt opened this issue 4 years ago • 4 comments

Hello,

I've checked the list of issues and could not find any similar issues - apologies if this is in some way a known issue.

I'm testing out any breaking changes with Emacs 27 in my config and am seeing some odd behavior with the tab bar.

Here is the tab-bar as it appears in Emacs 26.3:

Emacs26

With no change to configuration, here's what the tab-bar looks like in Emacs 27.1:

Emacs27

As you can see, the tab-bar seems to cutoff after the last open buffer in Emacs 27.

It also seems like the Tab-bar no longer uses the default font-face in Emacs 27 as compared to Emacs 26, which is resulting in a missing Tab Group icon.

Are there some changes I need to make for Emacs27 in my centaur-tabs config?

Version Info

  • Emacs 26.3 / Emacs 27.1 with Spacemacs develop branch
  • centaur-tabs v20200821.335
  • Windows 10 (v1903)

balaji-dutt avatar Nov 03 '20 01:11 balaji-dutt

I am not sure about the font problem. But background color of the tab bar can be adjusted for tab-line's custom face.

black7375 avatar Nov 14 '20 06:11 black7375

In an interesting twist, I realized that spacemacs now has a tabs layer which is based on centaur-tabs. I replaced my additional package install of centaur-tabs with the tabs layer and the background color problem got fixed in Emacs 27.1

I was also able to fix the Tab Group icon by setting centaur-tabs-down-tab-text in my emacs.d\init.el file.

The only problem that I'm still seeing is the font-face on the tab name. I've compared the output of M-x list-faces-display in 26.3 and 27.1 and the settings for centaur-tabs-default etc. seem identical to me. So I'm not sure why it seems to render differently.

balaji-dutt avatar Nov 15 '20 08:11 balaji-dutt

For me, on 27.1 spacemacs after enabling the tabs layer, my tab line looks like this: wtfcentaur Just a few seconds before the config if fully loads, it renders properly though. What is overwriting it here? I tried configuring it in custom mode, in my user-config, or as a :variable in my configuration layers: no dice. (Before I enabed the tabs layer, centaur-tabs wouldn't even load to begin with)

On a few read-only buffers, like, I don't know, the org agenda command menu, it seems to load fine. Upon restarting emacs settings are brought back to default though.

jjazar avatar Nov 21 '20 17:11 jjazar

Fix:

(set-face-attribute 'tab-line nil :background "#272822")

tanrax avatar Nov 06 '23 06:11 tanrax