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

Align quantity group columns horizontally #898

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jpetrell
Copy link
Contributor

  • Calms down the quantity&text group layouts by forcing labels to even-sized columns
  • Calms down the stutter that happens when individual values get updated
  • Don't apply everywhere, e.g. the status text columns are a lot wider than the quantity labels so following the same layout columns don't make sense

I thought this would be quick thing to do between bigger tasks (with quantity table alignments still fresh on my memory), but this became a bit complex due to different ways the quantity and text groups are used. Also, this may end up being a stopgap solution as the upcoming settings redesign likely introduces various design changes to these settings list items.

Requires more testing and some performance profiling before merging. The quantity repeater is constantly recreating all the quantity labels when the value update, which also causes a lot of unnecessary relayout calculations.

image

@jpetrell jpetrell changed the title Align quantity groups columns horizontally Align quantity group columns horizontally Mar 26, 2024
VeQuickItem {
id: nrOfModulesOffline
uid: root.bindPrefix + "/System/NrOfModulesOffline"
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused and duplicated (see modulesOnline and modulesOffline VeQuickItems above).

- Calm down the stutter that happens when values get updated
- Calm down the static layout by forcing alignment
- Don't apply everywhere, e.g. the status text columns are a lot wider
  than the quantity labels
- This became a bit complex so not sure if the benefit is justified

Fixes #863.
@jpetrell jpetrell force-pushed the jpetrell/align-quantity-groups branch from a9397a0 to 021cf91 Compare March 26, 2024 09:52
@jpetrell
Copy link
Contributor Author

Discussed with Bea and Serg that while the current layout is suboptimal, maybe not worth it to integrate the improvement to 1.0 now, but visit this during the settings redesign work.

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.

1 participant