One can already drag colors from the popup grid to applications but this wasn't possible with the recentmost color shown in the compact representation.
Details
- Reviewers
ngraham - Group Reviewers
Plasma - Commits
- R114:e0f0400dc7f2: [Color Picker] Allow dragging color button to drag color
Picked a color, dragged the tiny circle in my panel to Kolourpaint's palette, got the color dropped there.
Dropping a color *onto* the button to add it to the history still works
Only minor issue is since the MouseArea steals the press from the button, there's no press feedback on the button, only hover.
Diff Detail
- Repository
- R114 Plasma Addons
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Very nice, a lovely little productivity booster. Could containsPress be used to pass the event down to the button so we get visual feedback?
Could containsPress be used to pass the event down to the button so we get visual feedback?
Unfortunately not, those properties are read-only in QtQuick Controls. One could fake that using "checkable" perhaps.
- Fake pressed state
Turns out we already fake it for when an acceptable drag comes in so we can also just use that for pressed state