Skip to content

Commit

Permalink
Fix undercurl coloring
Browse files Browse the repository at this point in the history
For some reason, we appear to simply be rendering the undercurl color at
70% opacity. I can't think of any good reason for this, besides maybe
maybe thinking it looked nice on some neovim theme, so let's stop doing
this and use 100% opacity like we should be.

Fixes #11
  • Loading branch information
Lyude committed Dec 13, 2021
1 parent 43558cd commit d5f56fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fn draw_underline_strikethrough(

if cell.hl.undercurl {
let sp = hl.actual_cell_sp(cell).inverse(inverse_level);
ctx.set_source_rgba(sp.0, sp.1, sp.2, 0.7);
ctx.set_source_rgb(sp.0, sp.1, sp.2);

pangocairo::functions::show_error_underline(
ctx,
Expand Down

0 comments on commit d5f56fc

Please sign in to comment.