mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
Make visual bell flash much more gentle
Right now visual bell makes background flash sharply with bright white (when configured with darkish color theme). This causes eye strain, especially prominent in unlit environments. This change makes background bounce smoothly between regular bg color and highlight (selection) bg color for the configured visual bell duration. Intensity is animated with cubic easing functions. It currently peaks at 20% of the duration, this is hardcoded. Mark functions computing intensity and easing as inline Do smarter blending of visual bell flash Blend highlight color with pegtop's softlight mode over both background and half as much over foreground. This should help with flash visibility in light themed and inverted colors contexts. Blend flash in BACKGROUND pass also Revert "Do smarter blending of visual bell flash" This reverts commit9a269d55c7. Revert "Blend flash in BACKGROUND pass also" This reverts commit756332cb9d. Revert "Make visual bell flash much more gentle" This reverts commitcbfe5d59ad. Render flash overlay in a separate drawcall Trigger frequent repaints to make for smooth animation Attenuate flash a bit more
This commit is contained in:
committed by
Kovid Goyal
parent
477a652b44
commit
aff6fdfa84
@@ -207,6 +207,7 @@ void screen_apply_selection(Screen *self, void *address, size_t size);
|
||||
bool screen_is_selection_dirty(Screen *self);
|
||||
bool screen_has_selection(Screen*);
|
||||
bool screen_invert_colors(Screen *self);
|
||||
float screen_visual_bell_intensity(Screen *self);
|
||||
void screen_update_cell_data(Screen *self, void *address, FONTS_DATA_HANDLE, bool cursor_has_moved);
|
||||
bool screen_is_cursor_visible(Screen *self);
|
||||
bool screen_selection_range_for_line(Screen *self, index_type y, index_type *start, index_type *end);
|
||||
|
||||
Reference in New Issue
Block a user