From b2f3c15aad9fc7248ed539f8858f226f8dcea400 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 Sep 2026 19:27:10 +0530 Subject: [PATCH] dim-inactive-windows: Do not dim the tab bar and active window padding The builtin pipeline dimmed everything outside the cell area of the active window, which produced a dark frame around the active window (whose thickness varied with the size mismatch padding) and a dimmed tab bar. Enable DIM_CENTRAL_AREA_ONLY and INCLUDE_WINDOW_PADDING. Fixes #10524 --- docs/changelog.rst | 3 +++ kitty/shaders/custom/dim-inactive-windows.pipeline | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index baaff1006..16c1b1354 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -208,6 +208,9 @@ Detailed list of changes - Fix a memory leak when loading a corrupt PNG image that has an embedded ICC color profile +- Custom shaders: The builtin :code:`dim-inactive-windows` shader no longer dims + the tab bar and the padding around the active window (:iss:`10524`) + 0.49.1 [2026-09-24] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/shaders/custom/dim-inactive-windows.pipeline b/kitty/shaders/custom/dim-inactive-windows.pipeline index c50c953d3..c6773f3fc 100644 --- a/kitty/shaders/custom/dim-inactive-windows.pipeline +++ b/kitty/shaders/custom/dim-inactive-windows.pipeline @@ -3,5 +3,9 @@ startgroup animation_step 0 var float HIGHLIGHT_INTENSITY = 0 var float BORDER_WIDTH = 0 + # do not dim the tab bar and treat the padding/title bar of the active + # window as part of it, so it is not surrounded by a dimmed frame + var bool DIM_CENTRAL_AREA_ONLY = true + var bool INCLUDE_WINDOW_PADDING = true shaders focus-highlight endgroup