mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
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:
parent
b904207b19
commit
f221108086
2 changed files with 2 additions and 1 deletions
|
@ -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
|
- 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
|
- 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
|
- 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
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -674,7 +674,7 @@ impl Display {
|
||||||
let glyph_cache = &mut self.glyph_cache;
|
let glyph_cache = &mut self.glyph_cache;
|
||||||
|
|
||||||
let timing = format!("{:.3} usec", self.meter.average());
|
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;
|
let bg = config.colors.normal().red;
|
||||||
|
|
||||||
self.renderer.with_api(&config.ui_config, config.cursor, &size_info, |mut api| {
|
self.renderer.with_api(&config.ui_config, config.cursor, &size_info, |mut api| {
|
||||||
|
|
Loading…
Reference in a new issue