From f2211080867f6053b11194819e6e1a9c48cc21ec Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 13 Aug 2020 13:55:11 +0300 Subject: Use user's background color for render timer text Using the user's background color in pair with red should provide better contrast. --- CHANGELOG.md | 1 + alacritty/src/display.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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| { -- cgit