mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Fix scrollback_indicator_opacity not actually controlling the opacity
Fixes #7557
This commit is contained in:
@@ -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`)
|
- 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]
|
0.35.1 [2024-05-31]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -612,7 +612,7 @@ draw_scroll_indicator(bool premult, Screen *screen, const CellRenderData *crd) {
|
|||||||
if (premult) { BLEND_PREMULT } else { BLEND_ONTO_OPAQUE }
|
if (premult) { BLEND_PREMULT } else { BLEND_ONTO_OPAQUE }
|
||||||
bind_program(TINT_PROGRAM);
|
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;
|
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;
|
float frac = (float)screen->scrolled_by / (float)screen->historybuf->count;
|
||||||
const GLfloat bar_height = crd->gl.dy;
|
const GLfloat bar_height = crd->gl.dy;
|
||||||
GLfloat bottom = (crd->gl.ystart - crd->gl.height);
|
GLfloat bottom = (crd->gl.ystart - crd->gl.height);
|
||||||
|
|||||||
Reference in New Issue
Block a user