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

Display issue for General Config entries #1697

Closed
zensubz opened this issue Jul 6, 2021 · 8 comments
Closed

Display issue for General Config entries #1697

zensubz opened this issue Jul 6, 2021 · 8 comments
Labels
Bug It's a bug Visuals Graphical-related

Comments

@zensubz
Copy link

zensubz commented Jul 6, 2021

Hi,
I use git commit 6a54285. Would it be possible to adjust the window contents (checkbox entries) with a scroll-bar in the General Config dialog? I use a GNU/Linux variant which uses Qt 5.9.7, and the contents do not fit well (or display well) in the dialog window. I have attached a screenshot to highlight this issue. Please provide a fix, if possible. Thanks.

general_config

@mmahmoudian mmahmoudian added Bug It's a bug Visuals Graphical-related labels Jul 6, 2021
@borgmanJeremy
Copy link
Contributor

I don't think this is a core flameshot issue. Ubuntu 18.04 is a support platform and uses the same Qt Version.

I think its more likely there is a theming or Qt issue on your distro? Without the ability to reproduce this issue I cant provide any additional help.

@zensubz
Copy link
Author

zensubz commented Jul 22, 2021

I also use a Ubuntu 18.04 variant, and checked this issue with the latest release (v0.10.0) available. The UI problem seem to persist. I use qt5ct to control the look-n-feel of Qt5 apps, and checked with two theme variants, i.e., Fusion and Gtk2. The screenshots are attached here, just in case. Thanks.

flameshot_ubuntu1804_fusion

flameshot_ubuntu1804_gtk2

@veracioux
Copy link
Contributor

veracioux commented Jul 29, 2021

I submitted a pull request that is supposed to fix the issue.

I found that this bug gets triggered when the user resizes the window. Because
there was a call to setMinimumSize, it couldn't be resized below a certain point. I
suspect that due to different themes and sizes on different systems, this
minimum size was enough for the bug rarely to show.

This seems to be caused by a bug with QTabWidget (see the image attached in this bug report).
When QTabWidget is the top-level widget (the window), it doesn't size properly. It
doesn't even respect the minimum sizes of its children. So I set ConfigWindow's
base class to QWidget, and added a QTabWidget attribute inside it. I removed the
minimum size constraint as it is no longer necessary.

I have tried this on my Arch Linux machine and in an Ubuntu 20.04 VM.
As far as I can see, this and #1726 are the same issue.

Btw this is my first issue ever :)

@borgmanJeremy
Copy link
Contributor

Thanks for the contribution!! I'll get it tested and merged.

@zensubz
Copy link
Author

zensubz commented Jul 29, 2021

@HarisGusic, thanks for the work. I have checked if that would solve my issue, and well, it is in a way, but a portion of the Config UI is sort of hidden behind the bottom panel, and I am unable to resize it. Have attached the screenshot here:

flameshot-ui-config

If you could introduce a scroll-bar for the check-box entries and fix the UI window size as well, it would be great.

@veracioux
Copy link
Contributor

@zensubz I think I can do that. @borgmanJeremy did suggest a scroll bar in #1726 but I thought it wasn't necessary so I didn't include it. I can introduce a scroll bar as in your screenshot that will be present only if it is necessary for the window to fit the screen.

@borgmanJeremy Do I have the green light to do this?

@borgmanJeremy
Copy link
Contributor

Yes please do

@veracioux
Copy link
Contributor

@zensubz I have implemented the changes in the latest commit of this pull request: #1782

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It's a bug Visuals Graphical-related
Projects
None yet
Development

No branches or pull requests

4 participants