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
Make values in attribute form better readable #8064
Conversation
Currently in readonly modus of a form, the line-edits get a 'disabled'-palette. But because text is then so light readability is bad. Removing the palette make the lineedits look like they are writable input fields. So to distinguish them from input field, the frame is removed and the background (of the lineEdit) is set to almost transparent.
I like this a lot |
Big +1 |
+1 as well from me
…On Sat, Sep 29, 2018 at 8:54 PM Mathieu Pellerin ***@***.***> wrote:
Big +1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8064 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAXS3Nbzpq2sGyLI-T88vRe_xuv5-dj7ks5uf1FygaJpZM4XAcLM>
.
|
Ok, let's merge and see what happens. Still plenty of time before release to tweak /revert |
Spin boxes too need attention |
Mmm, I think the big question, is (as all those values are readonly), if we want to 'style' the spinbox/combo more in line with the style of the line-edit now (doable I think), |
Yep, last way is harder. I'd try the style option first. |
@nyalldawson @elpaso ok, I tried to fix the other 'wrappedWidgets' too, but there is too many magic going on there, at least to me . I'm afraid to fix this cosmetic issue would add just too much extra code and make the already complex styling thingies going on there (eg with the relations, indeterminate state etc etc) even more complex (mixing/fiddling with Patterns AND stylesheets). So I would be ok to just roll back (aka I would prefer to roll back this): adding this fix to the other widgets would add more complexity then fix an issue. |
There is a problem on Windows: Can we change the background color of the tabs to show the widgets again? Also, there are still a lot of inconsistencies for different widget types. Comboboxes (relation reference widgets) still show a frame, while text input boxes, don't. NULL values in text widgets still appear as gray. Thanks for having a look at it again! |
Swimming a bit against the current here, but I preferred the old way. Sorry for not commenting earlier, I just noticed this due to Andreas and Nyall mail |
@mbernasocchi as seen in the comment earlier, I'm not able to make this work for all sorts of (wrapped)widgets and styles. I'll do a rollback PR tomorrow. |
Description
Currently in readonly modus of a form, the line-edits get
a 'disabled'-palette (to distinguish from writable mode). But because text is then so light, readability
is bad in my opinion:
Removing this 'diabled'-palette make the lineedits look like they are writable
input fields. See below: top is without the 'Disable-palette' in readonly modus,
Bottom is in writable modus.
So to distinguish them from input field more, I opt to remove the frame
and set the background (of the lineEdit) set to almost
transparent. Below is the result of current PR:
I think 75% transparent is better then make the background fully transparent:
Started as a question on the dev list: https://lists.osgeo.org/pipermail/qgis-developer/2018-September/054676.html
I only am able to build on Linux/Gnome, so please check if this works on Windows/Mac too.
Or discuss here ...
Checklist
fixes #11111
in the commit message next to the description[FEATURE]
in the commit message[needs-docs]
in the commit message and contain sufficient information in the commit message to be documentedscripts/prepare-commit.sh
script before each commit