[Desktop Toolbox] Use a clearer name when the label is shown

Authored by ngraham on Jan 25 2019, 3:22 PM.



When the Desktop Toolbox is dragged out of a corner, its label is shown. Currently this label is not very clear since it consists only of the name of the current activity, which by default is "Default".

This patch introduces three changes:

  • When the label is shown, always prepend it with the widget's actual name: "Desktop Toolbox"
  • Append the word "Activity" so it's obvious what the preceding string refers to
  • Don't show the activity name if it's "Default" since this signifies that the user does not use Activities and would be confused by seeing references to a "Default Activity".
Test Plan

There are no visible changes to the default appearance; the Desktop Toolbox still has no label when it's in a corner. When dragged out of the corner, here's how it looks with this patch:

When using the Default activity:

When using differently-named activity:

Diff Detail

R119 Plasma Desktop
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
ngraham created this revision.Jan 25 2019, 3:22 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 25 2019, 3:22 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ngraham requested review of this revision.Jan 25 2019, 3:22 PM
ngraham edited the summary of this revision. (Show Details)Jan 25 2019, 3:28 PM
ngraham edited the test plan for this revision. (Show Details)
hein accepted this revision.Jan 25 2019, 3:36 PM
This revision is now accepted and ready to land.Jan 25 2019, 3:36 PM
GB_2 added a subscriber: GB_2.Jan 25 2019, 3:41 PM

Looks good!


I think we should use this dash "—" instead of "-" for consistency.

ngraham updated this revision to Diff 50270.Jan 25 2019, 4:20 PM

Use an emdash

ngraham marked an inline comment as done.Jan 25 2019, 4:21 PM
GB_2 accepted this revision.Jan 25 2019, 4:27 PM
This revision was automatically updated to reflect the committed changes.