1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

docs for and minor tweak of curly underline improvement

refs: https://github.com/wez/wezterm/pull/733
This commit is contained in:
Wez Furlong 2021-04-30 09:22:01 -07:00
parent 67de3f2235
commit d4da670294
2 changed files with 3 additions and 2 deletions

View File

@ -50,6 +50,7 @@ As features stabilize some brief notes about them will accumulate here.
* Updated bundled `Noto Color Emoji` font to version 2.020 with unicode 13.1 support. Thanks to [@4cm4k1](https://github.com/4cm4k1)! [#742](https://github.com/wez/wezterm/pull/742) * Updated bundled `Noto Color Emoji` font to version 2.020 with unicode 13.1 support. Thanks to [@4cm4k1](https://github.com/4cm4k1)! [#742](https://github.com/wez/wezterm/pull/742)
* Fixed: Numpad Enter reported as CTRL-C on macOS [#739](https://github.com/wez/wezterm/issues/739) * Fixed: Numpad Enter reported as CTRL-C on macOS [#739](https://github.com/wez/wezterm/issues/739)
* Fixed: mouse reporting gbutton state not cleared when focus is lost, eg: from clicking a link [#744](https://github.com/wez/wezterm/issues/744) * Fixed: mouse reporting gbutton state not cleared when focus is lost, eg: from clicking a link [#744](https://github.com/wez/wezterm/issues/744)
* Improved: better looking curly underline. Thanks to [@ModProg](https://github.com/ModProg)! [#733](https://github.com/wez/wezterm/pull/733)
### 20210405-110924-a5bb5be8 ### 20210405-110924-a5bb5be8

View File

@ -23,9 +23,9 @@ void main() {
vec4 under_color = sample_texture(atlas_nearest_sampler, o_underline); vec4 under_color = sample_texture(atlas_nearest_sampler, o_underline);
if (under_color.a != 0.0) { if (under_color.a != 0.0) {
// if the underline glyph isn't transparent in this position then // if the underline glyph isn't transparent in this position then
// we overlay the underline color, otherwise we'll leave the color // we take the underline color, otherwise we'll leave the color
// at the background color. // at the background color.
color = color * (1.0 - under_color) + under_color * o_underline_color; color = under_color * o_underline_color;
} }
// Similar to the above: if the cursor texture isn't transparent // Similar to the above: if the cursor texture isn't transparent