Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add modularity to widget placement and inclusion #95

Merged
merged 29 commits into from
Apr 2, 2020
Merged

Conversation

ClementTsang
Copy link
Owner

@ClementTsang ClementTsang commented Mar 29, 2020

Description

A description of the change and what it does. If relevant, please provide screenshots of what results from the change:

Issue

If applicable, what issue does this address?

Closes: #51

Type of change

Remove the irrelevant ones:

  • New feature (non-breaking change which adds functionality)

Test methodology

Please state how this was tested:

Testing to repeat on all platforms:

  • No regressions in terms of basic usage (no configurations)
  • Expansion still works
  • Basic mode still works
  • Test various configs to see if the layout manager can cope
  • No, or minimal, performance regression!
  • Zoom still works
  • Widget state is fully independent

Please tick which platforms this change was tested on:

  • Windows
  • macOS
  • Linux

Checklist

Please ensure all are ticked (and actually done):

  • Change has been tested to work
  • Areas your change affects has been linted using rustfmt
  • Code has been self-reviewed
  • Code has been tested and no new breakage is introduced
  • Documentation has been added/updated if needed
  • No merge conflicts arise from the change

Other information

Provide any other relevant information:

* Adds the ability to convert the config layout into a usable struct
* Also adds the default struct if no config is given
This is in order to deal with TUI overflowing on tables.  It's possible
a similiar fix will be needed on ALL tables...
Fixes the following issues:
- Movement between cpu to legend and proc to search
- Graph scaling
- Shortcuts for search
- Inc/dec count works again
- Fixes an issue with painter init and widget position
There is currently a problem with ratios that would allow for irrational
fractions.  So, if you have, for example, ratios of 1 1 1, then despite
all of the sizes technically being the same, they actually fall on the
LAST widget, rather than the first, because of rounding.

I'll take a look at that and if it is all good then I can work on the
other parts of modularity.
Ripped out the auto CPU legend hiding thing (well, it autohides, but not
properly)
@ClementTsang ClementTsang linked an issue Mar 29, 2020 that may be closed by this pull request
10 tasks
Also forces cpu legend to always be +1 in terms of id to its
corresponding CPU graph
- Add fix for scrolling in processes if it changes.  May need to add for
other types of scrollables

- Fix for process list due to incorrect len() check
Note this commit DISABLES expansion for basic mode.  Not worth
implementing (again) IMO.  Will revisit in the future, probably if I
allow basic components to be used in modularity.
@ClementTsang ClementTsang merged commit 0b1d84f into master Apr 2, 2020
@ClementTsang ClementTsang deleted the modularity branch April 2, 2020 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modularity with widget placement
1 participant