1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00
wezterm/window/src
Wez Furlong a0d39989df simplify Color data type
There's something fishy with colorspaces and blending.
This commit removes the `window::Color` type and replaces
it and the confusing array of color types exposed by the
`palette` crate with a pair of much simpler types:

`LinearRgb` - a tuple of f32 linear color components
`SrgbaPixel` - the u32 sRGBA pixel representation

This doesn't change anything about rendering, it just
makes it a bit simpler and makes the SrgbaPixel -> LinearRgb
conversion happen slightly earlier which shaves off some
ad-hoc conversions.

Refs: https://github.com/wez/wezterm/issues/544
2021-03-21 16:54:22 -07:00
..
bitmaps simplify Color data type 2021-03-21 16:54:22 -07:00
os windows: some minor performance improvements 2021-03-21 10:06:43 -07:00
color.rs simplify Color data type 2021-03-21 16:54:22 -07:00
configuration.rs windows: Add option to treat left ctrl-alt as altgr 2021-03-07 12:52:03 -08:00
connection.rs x11: query Xft.dpi from the root window 2021-03-08 22:19:44 -08:00
egl.rs egl: log error if make_current fails 2021-02-28 12:32:58 -08:00
lib.rs simplify Color data type 2021-03-21 16:54:22 -07:00
spawn.rs deps: update metrics from 0.12 -> 0.14 2021-02-03 23:50:29 -08:00
timerlist.rs window: fix build and clipboard on Windows 2019-11-29 12:32:30 -08:00