Use a better icon for "Remove" on the widget handle
ClosedPublic

Authored by ngraham on Jul 14 2018, 8:42 PM.

Details

Summary

I often find myself clicking the widget handle's Remove button and accidentally removing the widget itself when I'm just trying to hide the handle, because the button's current icon communicates "close this thing" better than "delete this thing". By switching it to a trash icon, we communicate its true meaning better and it becomes clear that the button will remove the widget.

This also brings that icon into consistency with the icon used in the context menu's Remove this [widget] entry.

Test Plan

Diff Detail

Repository
R119 Plasma Desktop
Branch
widget-delete-icon (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 847
Build 860: arc lint + arc unit
ngraham created this revision.Jul 14 2018, 8:42 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 14 2018, 8:42 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ngraham requested review of this revision.Jul 14 2018, 8:42 PM
ngraham edited the summary of this revision. (Show Details)Jul 14 2018, 8:44 PM
ngraham edited the test plan for this revision. (Show Details)

+1. I have a similar experience with the red X-Button as shown here for the Activity Manager:

Ah yes, I've accidentally removed my panel widgets that way too! I'll submit a similar patch for that shortly.

davidedmundson accepted this revision.Jul 14 2018, 10:41 PM
This revision is now accepted and ready to land.Jul 14 2018, 10:41 PM
ngraham closed this revision.Jul 15 2018, 2:04 AM

Can you make the same change also for the panel? There it's even more confusing as the "X" looks like it would close the popup but it's actually for deleting the widget.
Code is in plasma-desktop/desktoppackage/contents/configuration/panelconfiguration/ToolBar.qml

Can you make the same change also for the panel? There it's even more confusing as the "X" looks like it would close the popup but it's actually for deleting the widget.
Code is in plasma-desktop/desktoppackage/contents/configuration/panelconfiguration/ToolBar.qml

Indeed I was planning to do that! However I was having trouble locating the code in question, so thanks for letting me know what it is. Patch incoming soon.

Hmm actually that's for the toolbar above the panel, not the little menus that appear when you hover the mouse over a panel widget.