From 2bcb32d6119bb3f017dc40ea1aa9b5865d36c128 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 19 Jun 2024 06:03:30 +0530 Subject: [PATCH] Fix scrollback_indicator_opacity not actually controlling the opacity Fixes #7557 --- docs/changelog.rst | 2 ++ kitty/shaders.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 8f45ada44..9339bd84c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -63,6 +63,8 @@ Detailed list of changes - Wayland labwc: Fix kitty timing out waiting for compositor to quit fucking around with scales on labwc (:iss:`7540`) +- Fix :opt:`scrollback_indicator_opacity` not actually controlling the opacity (:iss:`7557`) + 0.35.1 [2024-05-31] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/shaders.c b/kitty/shaders.c index 9b4f8ebeb..992d173d4 100644 --- a/kitty/shaders.c +++ b/kitty/shaders.c @@ -612,7 +612,7 @@ draw_scroll_indicator(bool premult, Screen *screen, const CellRenderData *crd) { if (premult) { BLEND_PREMULT } else { BLEND_ONTO_OPAQUE } bind_program(TINT_PROGRAM); const color_type bar_color = colorprofile_to_color(screen->color_profile, screen->color_profile->overridden.highlight_bg, screen->color_profile->configured.highlight_bg).rgb; - GLfloat alpha = 0.8f; + GLfloat alpha = OPT(scrollback_indicator_opacity); float frac = (float)screen->scrolled_by / (float)screen->historybuf->count; const GLfloat bar_height = crd->gl.dy; GLfloat bottom = (crd->gl.ystart - crd->gl.height);