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

QML rewrite: use a reusable base "Page" component for each UI page #733

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

grulja
Copy link
Collaborator

@grulja grulja commented Sep 25, 2024

This "Page" component also now includes buttons, which originally were part of the main UI, where we also had the complete logic for what text actions should be used for both buttons at different state. Moving to per page component makes things simpler, easier to understand less error prone. It also removes quite a lot of code.

@grulja grulja requested a review from gastoner September 25, 2024 13:37
@grulja grulja force-pushed the cleanup branch 2 times, most recently from e01ce4b to 4ef7c17 Compare September 25, 2024 13:44
@grulja grulja marked this pull request as draft September 25, 2024 13:45
Copy link
Collaborator

@gastoner gastoner left a comment

Choose a reason for hiding this comment

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

Code LGTM, but I've tried to comapre it to main version

Left: main x Right: this
image

Here it looks like the buttons are slightly stretched
image

Here it looks like the Heading is slightly smaller on cleanup version and the entire content inside the FMW is wider
image

Also it looks like the "Download & Write" is not working in either of them (but might be just WSL Fedora problem :D)
image

@grulja
Copy link
Collaborator Author

grulja commented Sep 30, 2024

Code LGTM, but I've tried to comapre it to main version

Left: main x Right: this image

I think this is a bug in QtSvg as the image is not fully painted and most likely it breaks sizing. Using the other image here it looks good and similar to the original.

Here it looks like the buttons are slightly stretched image

That I think is fine. I just removed some margins specified all over the place so it's just unified.

Here it looks like the Heading is slightly smaller on cleanup version and the entire content inside the FMW is wider image

I made it bigger now.

Also it looks like the "Download & Write" is not working in either of them (but might be just WSL Fedora problem :D) image

Not probably related to this change.

@grulja grulja marked this pull request as ready for review October 1, 2024 08:35
This "Page" component also now includes buttons, which originally were
part of the main UI, where we also had the complete logic for what text
and actions should be used for both buttons at different state. Moving
this to per page component makes things simpler, easier to understand
and less error prone. It also removes quite a lot of code.
@grulja grulja merged commit 09f8787 into main Oct 2, 2024
6 checks passed
@grulja grulja deleted the cleanup branch October 14, 2024 06:02
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.

2 participants