wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.98k stars 806 forks source link

Desaturated colors on macOS #6410

Open camflan opened 4 days ago

camflan commented 4 days ago

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20241114-160116-979df782

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

Running Nightly, the colors are very desaturated compared to current stable (20240203-110809-5046fc22).

Example color differences (Nightly on the left, stable on the right),

Screenshot 2024-11-18 at 12 44 43 PM

Using a loupe I compared the background color of N cell in neovim statusline. Nightly: #4dd7b3 Stable: #00e6b9

To Reproduce

Open stable and nightly with the same configuration and you'll see that the chosen theme is duller on nightly.

Configuration

local wezterm = require("wezterm")
local config = wezterm.config_builder()
-- integration with neovim
local smart_splits = wezterm.plugin.require("https://github.com/mrjones2014/smart-splits.nvim")

local constants = require("constants")
local utils = require("utils")

-- appearance
config.color_scheme = "Dracula (Official)"

-- fonts
local desired_font = constants.fonts[1]
local font_metrics = utils.get_font_config(desired_font.family)

config.font = wezterm.font_with_fallback(constants.fonts)
config.font_size = font_metrics.font_size
config.line_height = font_metrics.line_height

config.animation_fps = 60
config.default_cursor_style = "BlinkingUnderline"
config.cursor_blink_rate = 1500
config.cursor_blink_ease_in = "Linear"
config.cursor_blink_ease_out = "EaseOut"

config.initial_cols = 120
config.initial_rows = 50

config.inactive_pane_hsb = { brightness = 1, saturation = 1 }
config.window_background_opacity = 1

Expected Behavior

Colors should appear the same in nightly and stable

Logs

Debug Overlay
wezterm version: 20241114-160116-979df782 aarch64-apple-darwin
Window Environment: macOS 15.1 (24B83)
Lua Version: Lua 5.4
OpenGL: Apple M1 Ultra 4.1 Metal - 89.3
Enter lua statements or expressions and hit Enter.

Anything else?

No response