aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-08-13 13:55:11 +0300
committerGitHub <noreply@github.com>2020-08-13 10:55:11 +0000
commitf2211080867f6053b11194819e6e1a9c48cc21ec (patch)
tree64af319ada33b907aa7babc9af476547d29c6a22
parentb904207b1979bb86f86c2a7db1720ce04571508a (diff)
downloadalacritty-f2211080867f6053b11194819e6e1a9c48cc21ec.tar.gz
alacritty-f2211080867f6053b11194819e6e1a9c48cc21ec.zip
Use user's background color for render timer text
Using the user's background color in pair with red should provide better contrast.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty/src/display.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ac8a7471..0e97248a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Cursors are now inverted when their fixed color is similar to the cell's background
- Use working directory of active process instead of shell for SpawnNewInstance action
- Fallback to normal underline for unsupported underline types in `CSI 4 : ? m` escapes
+- The user's background color is now used as the foreground for the render timer
### Fixed
diff --git a/alacritty/src/display.rs b/alacritty/src/display.rs
index 8fa82338..db0eecd1 100644
--- a/alacritty/src/display.rs
+++ b/alacritty/src/display.rs
@@ -674,7 +674,7 @@ impl Display {
let glyph_cache = &mut self.glyph_cache;
let timing = format!("{:.3} usec", self.meter.average());
- let fg = config.colors.normal().black;
+ let fg = config.colors.primary.background;
let bg = config.colors.normal().red;
self.renderer.with_api(&config.ui_config, config.cursor, &size_info, |mut api| {