aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-12-04 13:13:44 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-11 20:23:41 -0800
commitce32eee0999b60842c63cb7607b8bf9319242d5c (patch)
treebfe30ba3464800d2ba109c82bd67ede4b0268e71 /scripts
parent23e36f19255db60084c2c240a166d137f6c12c3e (diff)
downloadalacritty-ce32eee0999b60842c63cb7607b8bf9319242d5c.tar.gz
alacritty-ce32eee0999b60842c63cb7607b8bf9319242d5c.zip
Refactor color list management
There's now a ColorList type that provides strongly typed indexing for not only usize but NamedColor as well. Previously, the `NamedColor` was casted to a `usize` when indexing the colors. Additionally, only one copy of the ColorList needs to exist;it's borrowed from the `Config` when rendering, and the renderer doesn't need a copy.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions