mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-27 07:34:27 +02:00
change: hide time legend if window gets too small
This commit is contained in:
parent
cd441eb920
commit
e6181d4aa4
22
CHANGELOG.md
22
CHANGELOG.md
@ -9,7 +9,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
- [#114](https://github.com/ClementTsang/bottom/pull/114): Process state per process (originally in 0.4.0, moved to later).
|
- ~~[#114](https://github.com/ClementTsang/bottom/pull/114): Process state per process (originally in 0.4.0, moved to later).~~
|
||||||
|
|
||||||
|
- Moving down the CPU list will show only the corresponding graph.
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
- Automatically hide time axis labels if the window gets too small.
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- The `<Space>` character can be used as an "AND" again (properly) in queries. For example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
(btm cpu > 0) (discord mem > 0)
|
||||||
|
```
|
||||||
|
|
||||||
|
is equivalent to:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
(btm AND cpu > 0) AND (discord AND mem > 0)
|
||||||
|
```
|
||||||
|
|
||||||
## [0.4.1] - 2020-05-05
|
## [0.4.1] - 2020-05-05
|
||||||
|
|
||||||
|
@ -123,6 +123,8 @@ impl CpuGraphWidget for Painter {
|
|||||||
cpu_widget_state.autohide_timer = None;
|
cpu_widget_state.autohide_timer = None;
|
||||||
Axis::default().bounds([-(cpu_widget_state.current_display_time as f64), 0.0])
|
Axis::default().bounds([-(cpu_widget_state.current_display_time as f64), 0.0])
|
||||||
}
|
}
|
||||||
|
} else if draw_loc.height < 7 {
|
||||||
|
Axis::default().bounds([-(cpu_widget_state.current_display_time as f64), 0.0])
|
||||||
} else {
|
} else {
|
||||||
Axis::default()
|
Axis::default()
|
||||||
.bounds([-(cpu_widget_state.current_display_time as f64), 0.0])
|
.bounds([-(cpu_widget_state.current_display_time as f64), 0.0])
|
||||||
|
@ -44,6 +44,8 @@ impl MemGraphWidget for Painter {
|
|||||||
mem_widget_state.autohide_timer = None;
|
mem_widget_state.autohide_timer = None;
|
||||||
Axis::default().bounds([-(mem_widget_state.current_display_time as f64), 0.0])
|
Axis::default().bounds([-(mem_widget_state.current_display_time as f64), 0.0])
|
||||||
}
|
}
|
||||||
|
} else if draw_loc.height < 7 {
|
||||||
|
Axis::default().bounds([-(mem_widget_state.current_display_time as f64), 0.0])
|
||||||
} else {
|
} else {
|
||||||
Axis::default()
|
Axis::default()
|
||||||
.bounds([-(mem_widget_state.current_display_time as f64), 0.0])
|
.bounds([-(mem_widget_state.current_display_time as f64), 0.0])
|
||||||
|
@ -94,6 +94,8 @@ impl NetworkGraphWidget for Painter {
|
|||||||
Axis::default()
|
Axis::default()
|
||||||
.bounds([-(network_widget_state.current_display_time as f64), 0.0])
|
.bounds([-(network_widget_state.current_display_time as f64), 0.0])
|
||||||
}
|
}
|
||||||
|
} else if draw_loc.height < 7 {
|
||||||
|
Axis::default().bounds([-(network_widget_state.current_display_time as f64), 0.0])
|
||||||
} else {
|
} else {
|
||||||
Axis::default()
|
Axis::default()
|
||||||
.bounds([-(network_widget_state.current_display_time as f64), 0.0])
|
.bounds([-(network_widget_state.current_display_time as f64), 0.0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user