summaryrefslogtreecommitdiffstats
path: root/src/canvas/widgets/cpu_basic.rs
AgeCommit message (Collapse)Author
2023-04-16deps: migrate from tui to ratatui (#1086)Clement Tsang
2022-12-27bug: fix dot marker setting not being considered (#934)Clement Tsang
* bug: fixes marker settings being ignored while rendering time charts * appease clippy
2022-11-10refactor: run cargo +nightly fmt with group_imports (#885)Clement Tsang
* refactor: add some disabled unstable fmt options * run cargo +nightly fmt with group_imports * separate out the cfg-specific imports for clarity
2022-10-13refactor: switch to pipe gauge implementation for basic cpu + mem (#829)Clement Tsang
* refactor: switch to pipe gauge implementation for basic cpu + mem * fix incorrect new basic cpu chunking scheme, revert to old one
2022-10-12refactor: tables V2 (#749)Clement Tsang
* refactor: move to new data table implementation * more work towards refactor * move disk and temp over, fix longstanding bug with disk and temp if removing the last value and selected * work towards porting over CPU work towards porting over CPU fix typo partially port over cpu, fix some potentially inefficient concat_string calls more work towards cpu widget migration some refactoring * sortable data sortable data more refactoring some sort refactoring more refactoringgggg column refactoring renaming and reorganizing more refactoring regarding column logic add sort arrows again * move over sort menu * port over process port over process precommit temp temp two, remember to squash work fix broken ltr calculation and CPU hiding add back row styling temp fix a bunch of issues, get proc working more fixes around click fix frozen issues * fix dd process killing * revert some of the persistent config changes from #257 * fix colouring for trees * fix missing entries in tree * keep columns if there is no data * add and remove tests * Fix ellipsis
2022-05-15refactor: more work towards unifying process codeClementTsang
A bunch of work towards also refactoring how the process widget gathers and converts data.
2022-04-28refactor: remove trait usage in component drawingClementTsang
When I was newer to Rust, I got the weird impression that you couldn't add functionality to a struct outside of the defining file without using a trait. That's obviously not true, so it's high time I got rid of it and just made it part of the impl of the class itself, rather than declaring a trait and then exporting/importing it.
2022-03-27refactor: remove some simple as-casts (#697)Clement Tsang
Remove some simple as casts that are easy to change to .into(), or easy to check.
2021-12-30Replace statics with consts where possibleMateusz Mikuła
2021-04-23bug: Fix mouse hitboxes (#459)Clement Tsang
Fixes the mouse hitbox checks overextending by 1. Also reverts the bandaid fix done for #458.
2021-04-23bug: Fixes basic mode mouse hitboxes being broken (#458)Clement Tsang
Fixes basic mode having broken click hitboxes (they were 1 unit too long in both directions). I'm pretty sure normal mode does too, but it's less noticeable due to bounding boxes.
2021-01-25bug: Workaround for strange rendering when there are <4 CPU entries reported ↵Clement Tsang
(#398) So it seems that tui-rs doesn't like rendering my CPU bars if the height is exactly 1. It needs at least 2. I have no idea why, this is probably something weird with how I render. This, of course, breaks when there is only one row to report (i.e. with a dual core setup in #397). The workaround switches the gap between the CPU and mem/net parts to 0, and increases the CPU's draw height by 1, only when the height is otherwise 1 (so the draw height is now at least 2). This does have the side effect of including an extra line to the side borders, but I think it's fine.
2020-12-22bug: Fixes incorrect colours being used the CPU widget in basic mode (#373)Clement Tsang
Fixes the colour order being off in basic mode, and not using the average CPU colour.
2020-11-02refactor: Better responsiveness when resizing cpu basic widget (#292)Clement Tsang
Gives better and less jank responsiveness when resizing the window in narrow sizes for the cpu basic widget.
2020-11-02bug: fix incorrect basic cpu spacing (#291)Clement Tsang
Fixes a bug with CPU spacing on basic mode.
2020-11-02bug: fix incorrect offset for cpu list in cpu basic widget (#289)Clement Tsang
Fixes the CPU basic widget showing incorrect data due to an incorrect offset when displaying the data.
2020-10-17refactor: Remove redundant as_ref() calls (#268)Clement Tsang
Minor refactor to remove redundant `as_ref()` calls.
2020-09-26refactor: tui-rs 0.11.0 refactor (#253)Clement Tsang
Refactors tui-rs usage to the new 0.11.0 release. This release also fixes the highlighting bug from #249, and now, expanding a widget no longer overrides the widget title colour. This commit also introduces #255, but that seems to be easy to bandaid so hopefully it will get fixed soon?
2020-08-29feature: Add mouse click support for moving between widgets (#208)Clement Tsang
Adds mouse support to the application, to move between widgets and click on elements. List of things to added: - Click to move between widgets - Click to move between widgets in basic mode - Click on widget entries - Ability to disable mouse if you don't like it, I guess
2020-08-16refactor: Revert tui upgrade to 0.10Clement Tsang
Reverts tui upgrade, there are some bugs and issues - namely, issues with rendering text. We can revert this commit when those bugs are dealt with (should be fine after 0.10.1, tested building from the repo).
2020-08-11deps: Update dependencies, drop MSRVClement Tsang
Update dependencies to most recent versions if applicable. Refactor to deal with breaking changes. Drop MSRV due to dependency issues, just support stable and later.
2020-05-18refactor: reduce unchecked type conversions to usizeClement Tsang
2020-05-07refactor: avoid using max checks, use saturating_sub insteadClement Tsang
2020-04-18refactor: Update tui to 0.9; refactor with new featuresClementTsang
2020-04-06refactor/bug: Array bound checking, fix CPU jumpClement Tsang
2020-04-01Add modularity to widget placement and inclusion (#95)Clement Tsang
2020-03-07Split up widgets to make it a bit easier to work with.ClementTsang