doomemacs / themes

A megapack of themes for GNU Emacs.
MIT License
2.17k stars 392 forks source link

Global mode string is not visible on the tab bar #720

Open manzaltu opened 2 years ago

manzaltu commented 2 years ago

What did you expect to happen?

When adding the tab-bar-format-global function to the tab-bar-format list, the global mode string should be visible in the tab bar.

What actually happened?

The global mode string is not visible.

Describe your attempts to resolve the issue

The issue can be resolved by changing the face definition of tab-line. Currently, tab-line is define as:

(tab-line :background bg-alt :foreground bg-alt)

Changing the foreground color to a different color than the background one will make the global mode string visible.

Steps to reproduce

Run this while any doom emacs theme is loaded:

(setq tab-bar-format '(tab-bar-format-tabs-groups
                       tab-bar-separator
                       tab-bar-format-align-right
                       tab-bar-format-global))

(display-time-mode 1)

I expect the clock to be shown in the upper right corner of the frame.

Package commit

83fd9545c2823b4b2610947802fa3a52995517b4

System Information

Emacs 28.1, on all platforms.

ReilySiegel commented 2 years ago

I am also experiencing this issue, and in fact opened a duplicate issue before seeing this one. This can be temporarily resolved by adding

(custom-set-faces
      `(tab-bar
        ((t (:background ,(doom-color 'bg-alt) :foreground ,(doom-color 'fg-alt)))))))

To init.el, for anyone else experiencing this issue.