Changed leftMargins to smallSpacing to be consistent
ClosedPublic

Authored by niccolove on Jan 27 2020, 3:36 PM.

Details

Summary

With other two patches, this aims to make leftMargin consistent in widgets (See https://phabricator.kde.org/D26945 and https://phabricator.kde.org/D26944)

Test Plan

System tray

Before:


After:

Notifications

Before:


After:

Battery monitor

Before:


After:

Self reminder: networkmanager is still slightly badly aligned

Diff Detail

Repository
R120 Plasma Workspace
Branch
smallspacingmargin (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 21710
Build 21728: arc lint + arc unit
niccolove created this revision.Jan 27 2020, 3:36 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 27 2020, 3:36 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
niccolove requested review of this revision.Jan 27 2020, 3:36 PM
niccolove edited the summary of this revision. (Show Details)Jan 27 2020, 3:37 PM
niccolove edited the test plan for this revision. (Show Details)Jan 27 2020, 3:47 PM
niccolove edited the test plan for this revision. (Show Details)Jan 27 2020, 3:49 PM
niccolove updated this revision to Diff 74443.Jan 27 2020, 3:52 PM

Revert accidental line changes

niccolove edited the test plan for this revision. (Show Details)Jan 27 2020, 4:00 PM
ngraham added a subscriber: ngraham.

Hmm, it almost seems like the header in the popup is over too far to the right, and we should fix that (and maybe increase the default margins in the theme: D21813) rather than adding extra margins in every plasmoid.

gvgeo added a subscriber: gvgeo.Jan 27 2020, 6:57 PM

I thought about this; so, I should remove margins from everywhere, and we add them to the desktop theme? I can make that patch

What I care about is that the margins are consistent and things are properly left-aligned by default. That is to say, nothing should have to override the default margins to have everything perfectly aligned.

niccolove abandoned this revision.Feb 3 2020, 9:20 AM

What I care about is that the margins are consistent and things are properly left-aligned by default. That is to say, nothing should have to override the default margins to have everything perfectly aligned.

After trying a different solution, I'd suggest to go with these patches as a short term solution. I generally want to revise margins for desktop theme - so panels as well - but I'd like to see this fixed before that. Keep in mind that this is not overriding the margins, but just adding up to them, something that most of our applet do.

All right, feel free to re-open it and re-base on current master (there has been a lot of work to these applets lately).

niccolove reclaimed this revision.Feb 19 2020, 7:23 PM

So, with a left panel, I see the following:

Things are improved, but the vertical alignment is still not perfect. :(


Seems aligned to me, the problem is that the new small checkbox has a margin to the left by default.

ngraham accepted this revision.Mar 3 2020, 4:20 PM

Right, this is good to go now. We should remove the margin in the checkbox too.

This revision is now accepted and ready to land.Mar 3 2020, 4:20 PM
gvgeo added inline comments.Mar 4 2020, 6:21 AM
applets/batterymonitor/package/contents/ui/PopupDialog.qml
127

I don't see why decrease this spacing.
Were you able to verify this? I don't have access to two batteries, but I expect this to look bad.

niccolove updated this revision to Diff 76913.Mar 4 2020, 9:48 AM

Remove spacing changes

niccolove marked an inline comment as done.Mar 4 2020, 9:49 AM
This revision was automatically updated to reflect the committed changes.