Age | Commit message (Collapse) | Author |
|
Mouse control on collapse is not working yet, need to do some work
internally first.
|
|
Mostly previously re-added files during the merge conflict resolution,
and a lot of unused code.
Still more to delete after I finish rewriting the process kill dialog.
|
|
Because writing your own layout system and management is just *so much
fun*. Totally.
-------------------------------------------------------------------
Moves the basic mode system over to the new drawing/widget system. In
the process, it has forced me to completely redo how we do layouts...
again. This is because basic mode has widgets that control their own
height - this means the height of the columns and rows that wrap it
are also affected by the widget's height.
The previous system, using a constraint tree and splitting draw Rects
via tui-rs' built-in constraint solver, did not support this concept
very well. It was not simple to propagate up the widths/heights
towards parents while also using tui-rs' built-in constraint solver.
In the end, it was easier to just rewrite it using another algorithm.
We now follow a process very similar to Flutter's layout system.
Relevant links to the Flutter docs are found in the code or below:
- https://flutter.dev/docs/development/ui/layout/constraints
- https://flutter.dev/docs/resources/inside-flutter#sublinear-layouts
The gist of it, however, is that we now instead a few new options for
any element in the layout tree. A node can either:
- Grow to fill remaining space
- Take up as much room as its children
- Be a specific length
Technically right now, it's not perfect, in that leaf nodes can be as
large as their children (which makes no sense), though in that case it
just treats it as an expand.
|
|
Fixes a bug where running `cargo test` would try to create a
configuration file for the user.
|
|
Adds colour schemes for Nord, along with a light variant.
|
|
|
|
Adds some default colour choices to choose from.
|
|
Adds theoretical aarch64 support.
|
|
|
|
Refactoring and updating of error messages + tests to be more useful.
|
|
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
|
|
Refactor code so we use a lib, allowing for easier testing. Adds additional tests for layouts.
|
|
This feature allows any column to be sortable.
This also adds:
- Inverting sort for current column with `I`
- Invoking a sort widget with `s` or `F6`. Close with same key or esc.
And:
- A bugfix in regards the basic menu and battery widget
- A lot of refactoring
|
|
- Removal of the old slash-space-to-hide behaviour of CPU widget
- Scrolling onto a specific entry will only show that entry
- Showing average is now default
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We would prefer a more graceful error message stating what went wrong.
Caught by the Travis test.
|
|
Also added documentation both in app and in the README.
|
|
|
|
|
|
|
|
paths.
|
|
|
|
|
|
|
|
|
|
|
|
way I could make it look good), and dealt with some issues regarding the display of networking.
|
|
|
|
|
|
|