aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-10-23 15:37:06 -0700
committerJoe Wilm <joe@jwilm.com>2016-10-23 15:37:06 -0700
commit5876b4bf7a88a59482aefcc85e04a9ef6ecfed74 (patch)
tree8e55fbf061383569fca610418e02368b05a29fc2 /src/config.rs
parentea07f03ac901c366ed31da540711b84ca9e75602 (diff)
downloadr-alacritty-5876b4bf7a88a59482aefcc85e04a9ef6ecfed74.tar.gz
r-alacritty-5876b4bf7a88a59482aefcc85e04a9ef6ecfed74.tar.bz2
r-alacritty-5876b4bf7a88a59482aefcc85e04a9ef6ecfed74.zip
Proof of concept live reloading for colors
The architecture here is really poor. Need to move file watching into a dedicated location and probably have an spmc broadcast queue. other modules besides rendering will care about config reloading in the future.
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 56f96e80..27fcf3ca 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -259,7 +259,7 @@ impl Config {
///
/// The ordering returned here is expected by the terminal. Colors are simply indexed in this
/// array for performance.
- pub fn color_list(&self) -> [Rgb; 16] {
+ pub fn color_list(&self) -> [Rgb; 18] {
let colors = &self.colors;
[
@@ -282,6 +282,10 @@ impl Config {
colors.bright.magenta,
colors.bright.cyan,
colors.bright.white,
+
+ // Foreground and background
+ colors.primary.foreground,
+ colors.primary.background,
]
}