Use user's background color for render timer text

Using the user's background color in pair with red should provide better
contrast.
This commit is contained in:
Kirill Chibisov 2020-08-13 13:55:11 +03:00 committed by GitHub
parent b904207b19
commit f221108086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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| {