[Applet]Use gridLayout for details
AbandonedPublic

Authored by gvgeo on Feb 27 2020, 6:38 PM.

Details

Reviewers
jgrulich
ngraham
Group Reviewers
Plasma
Summary

Use gridLayout for repeater in DetailsText.
Now right mouse menu(copy) opens on label too.

Test Plan

Check elide, and copy that work correctly.

Diff Detail

Repository
R116 Plasma Network Management Applet
Branch
grid2 (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 23038
Build 23056: arc lint + arc unit
gvgeo created this revision.Feb 27 2020, 6:38 PM
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 27 2020, 6:38 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
gvgeo requested review of this revision.Feb 27 2020, 6:38 PM
gvgeo added a comment.Feb 27 2020, 6:48 PM

Separate patch so can be easily reverted, if a grid+repeater problem exist R120:d12521b149fa.

Even better than a GridLayout is a `Kirigami.FormLayout! That's what's being approximated here, so why not use the real thing? :)

gvgeo added a comment.Feb 28 2020, 3:15 AM

Kirigami in applet?

Yeah, that's fine.

gvgeo abandoned this revision.Feb 28 2020, 8:13 AM

In favor of kirigami form.

gvgeo added a comment.Mar 9 2020, 6:46 AM

@ngraham If FormLayout does not support opacity/enabled for labels, then maybe, this patch is good enough.

applet/contents/ui/DetailsText.qml
67

Remove this.

Do we need to reduce the opacity for the labels? We don't really do this anywhere else.

gvgeo added a comment.EditedMar 9 2020, 7:40 PM

Do we need to reduce the opacity for the labels?

The opacity was reduced in the layout update. IMO this is vital part of the new layout.

We don't really do this anywhere else.

This kind of layout is only used here.

edited for correctness.

FormLayouts are used all over the place. But typically, we don't reduce the opacity of the labels. I'm not categorically against it, I'm just wondering. IIRC the labels were reduced opacity before, and this was not a change introduced with the 5.19 visual refresh.

@manueljlin and other VDG people, what do you think?

gvgeo added a comment.Mar 9 2020, 7:52 PM

Generally FormLayout is unfit for this, If I understand it correctly they cannot get theme.smallestFont height. Which will introduce big height, and big margins between lines.

IIRC the labels were reduced opacity before, and this was not a change introduced with the 5.19 visual refresh.

I'm not sure what you reffering to.
What I meant before, was the update of network manager for 5.19.

gvgeo added a comment.Mar 21 2020, 7:30 AM

Instead of kuserfeedback which uploads data collected prior users consent, I believe this patch is good enough. @ngraham It appears that I should let you know that, I'm no longer going to work on it under these circumstances, so that you can use it if you want.

@manueljlin D27199#629881 said it looks good as it is. Personally I'm not against full opacity, now with the different highlight and the highlight area restored, as it creates readability problem.