[Applet]Fix device label problems

Authored by gvgeo on Feb 4 2020, 8:27 PM.

Description

[Applet]Fix device label problems

Summary:
Limit label maximum width, to avoid breaking UI.
Change label to use plasma components 3, for theme color compatibility.
Use of implicit sizes, to avoid binding loops.

BUG: 417074
BUG: 417106

Test Plan:
Use applet outside of systemtray and limit it's width.
If device description is not long enough, enable in the configuration
"Add virtual output device for simultaneous output on all local sound cars".
Before: Hamburger menu moves to the right, and there is no eliding.
After: Proper display.

Reviewers: Plasma, VDG, drosca, ngraham, davidedmundson

Reviewed By: VDG, ngraham

Subscribers: cfeck, plasma-devel

Tags: Plasma

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

Details

Committed
ngrahamFeb 4 2020, 8:28 PM
Reviewer
VDG
Differential Revision
D27117: [Applet]Fix device label problems
Parents
R115:ccdeb9327f17: [Applet]Supplementary add port check
Branches
Unknown
Tags
Unknown