[applets/systemtray] Fix expanded representation's internal margins

Authored by ngraham on Mar 17 2020, 3:54 AM.

Description

[applets/systemtray] Fix expanded representation's internal margins

Summary:
This is a pre-existing problem, but became much more visible with D27189 (thus exposing
one of the reasons why I like visually separating dissimilar elements so much).
Essentially the dialog's bottom and right margins were not being properly mirrored on
the top and left, leading to the applet's content view looking off-center. Various apps
were locally adding their own extra top margins to compensate for this, which can be
removed once this patch lands.

This patch fixes that by explicitly using the default dialog margins for those edges.

I will submit follow-up patches to fix applets that were adding extra padding that is
now unnecessary.

Test Plan:
It was especially noticeable with D27160.

Before:

After:

Reviewers: VDG, Plasma, cblack

Reviewed By: VDG, Plasma, cblack

Subscribers: cblack, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D28089

Details

Committed
ngrahamMar 17 2020, 4:40 AM
Reviewer
VDG
Differential Revision
D28089: [applets/systemtray] Fix expanded representation's internal margins
Parents
R120:f4195688e68e: Created a top area based on widgets/toparea.svg
Branches
Unknown
Tags
Unknown