ema2159 / centaur-tabs

Emacs plugin aiming to become an aesthetic, modern looking tabs plugin
GNU General Public License v3.0
743 stars 51 forks source link

Separators rendered with artefacts on osx external display #193

Open zuchmanski opened 2 years ago

zuchmanski commented 2 years ago

Hi,

I am encountering an issue where the separators are rendered with artifacts. The problem happens ONLY on external display. When I run exactly the same config on my native macbook display tabs render just fine. I can also move window between external/internal display but the problem reoccur as soon as I force rerender of the bar (switch tabs etc).

External display: DELL U2720Q (4K, scaled down to 2560x1440). Internal display: macbook pro (3072x1920, also scaled down).

Config:

(require 'centaur-tabs)
(global-set-key (kbd "C-<prior>")  'centaur-tabs-backward)
(global-set-key (kbd "C-<next>") 'centaur-tabs-forward)

(setq centaur-tabs-style "bar"
      centaur-tabs-set-icons nil
      centaur-tabs-set-modified-marker t
      centaur-tabs-set-bar 'under
      centaur-tabs-height 40
      centaur-tabs-cycle-scope 'tabs
      centaur-tabs-set-close-button nil
      x-underline-at-descent-line t
      centaur-tabs-show-new-tab-button nil
      centaur-tabs-image-apple-rgb nil
      )

(centaur-tabs-change-fonts "Iosevka Term SS04" 130)

(set-face-attribute centaur-tabs-display-line nil :background "#E8E8E8" :box nil :overline nil :underline nil)
(centaur-tabs-group-by-projectile-project)

Running doom-emacs, emacs 28.1, centaur-tabs 20220926.1247.

How it looks like on internal display:

CleanShot 2022-10-03 at 09 51 04@2x

How it looks like on external display:

image image image
jaaasonSun commented 1 month ago

I came across this thread after seeing the same glitch on external display on macOS Sonoma. In case anyone need it, I was able to solve the issue by switching color profile for the display (I have two profile both named 'HP Z27k G3').