[applets/systemtray] Simplify icon size logic
ClosedPublic

Authored by kmaterka on Mar 17 2020, 9:37 PM.

Details

Summary

This change simplifies icon size logic - now it is controled only in one place: AbstractItem. This gives additional benefits, like icons perfectly centered.

Test Plan
  • Highlights should always be centered

Diff Detail

Repository
R120 Plasma Workspace
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 23842
Build 23860: arc lint + arc unit
kmaterka requested review of this revision.Mar 17 2020, 9:37 PM
kmaterka created this revision.
kmaterka added inline comments.Mar 17 2020, 9:43 PM
applets/systemtray/package/contents/ui/ExpanderArrow.qml
31

This fixes issue (regression) with expander arrow not hiding when all items are visible. Probably I should create separate commit...

applets/systemtray/package/contents/ui/items/ItemLoader.qml
28

The effectiveStatus was copied from the model, not binded. Separate commit?

ngraham accepted this revision.Mar 18 2020, 2:50 PM
ngraham added subscribers: davidedmundson, mart.

This looks like a sensible refactor to me, and it solves the issue that I was having with icon size changing based on the expanded popup visibility. I can't detect any regressions in sizing with horizontal or vertical panels of various sizes. However please wait to land this until somebody else possessing greater familiarity with this codebase such as @broulik, @mart, or @davidedmundson reviews it too.

This revision is now accepted and ready to land.Mar 18 2020, 2:50 PM

This looks like a sensible refactor to me, and it solves the issue that I was having with icon size changing based on the expanded popup visibility. I can't detect any regressions in sizing with horizontal or vertical panels of various sizes. However please wait to land this until somebody else possessing greater familiarity with this codebase such as @broulik, @mart, or @davidedmundson reviews it too.

@ngraham the problem is when diff is marked as reviewed, they don't see it :)

Depends on the view; most people don't seem to use Phab's homepage so much compared to the email notifications generated when you mention people like @broulik, @mart, or @davidedmundson ;)

broulik accepted this revision.Mar 24 2020, 10:13 AM
This revision was automatically updated to reflect the committed changes.