change: always highlight selected cpu

This commit is contained in:
ClementTsang 2020-05-18 23:36:06 -04:00
parent e6379982f1
commit e2e1ac3006
2 changed files with 4 additions and 1 deletions

View file

@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Average CPU is now on by _default_. You can disable it via `-a, --hide_avg_cpu` or `hide_avg_cpu = true`.
- Make highlighted CPU persist even if widget is not selected - this should help make it easier to know what CPU you are looking at
even if you aren't currently on the CPU widget.
## [0.4.3] - 2020-05-15
### Other

View file

@ -260,7 +260,7 @@ impl CpuGraphWidget for Painter {
} else {
Some(Row::StyledData(
cpu_string_row.into_iter(),
if is_on_widget && itx == offset_scroll_index {
if itx == offset_scroll_index {
self.colours.currently_selected_text_style
} else if itx == ALL_POSITION {
self.colours.all_colour_style