Bug 457311

Summary: Color picker no longer sets left-clicked color to clipboard
Product: [Plasma] kdeplasma-addons Reporter: doncbugs
Component: Color PickerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: kde, kde, me, nate, qydwhotmail
Priority: NOR    
Version: 5.25.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.27
Sentry Crash Report:

Description doncbugs 2022-07-30 18:30:48 UTC
SUMMARY
The Color Picker plasmoid, when open to show the stored colors, no longer allows left-clicking a color to add to clipboard in the default color format.


STEPS TO REPRODUCE
1. Add and open Color Picker widget
2. Pick 2 colors
3. Open widget and left click the first color

OBSERVED RESULT
The right-click menu is opened again, even when left-clicking.

EXPECTED RESULT
The widget sets the color to the clipboard in the default format and closes itself. In the configuration page for the color picker, the default color format is specified and the option to automatically copy to clipboard is checked. It should follow these settings.

Operating System: KDE neon Testing Edition
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.15.0-41-generic (64-bit)
Graphics Platform: X11
Comment 1 Antonio Rojas 2022-07-30 21:04:32 UTC

*** This bug has been marked as a duplicate of bug 454974 ***
Comment 2 ratijas 2022-09-22 05:51:23 UTC
Color Picker plasmoid has recently had a refactoring.  Though I doubt it was shipped with 5.25 update. Maybe we really lost the defaults in that change.

PS unmarking as duplicate, because clearly these are two entirely different bugreports.
Comment 3 Bug Janitor Service 2022-09-30 19:36:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/239
Comment 4 Fushan Wen 2022-10-08 15:25:27 UTC
Git commit 3f3e3e9c8bd4761f9b1650e3b10135dfdae6fc6d by Fushan Wen, on behalf of Bharadwaj Raju.
Committed on 08/10/2022 at 15:04.
Pushed by bharadwaj-raju into branch 'master'.

colorpicker: Make left-clicking a color copy in the default format

Also add a small "Copied!" message

M  +36   -3    applets/colorpicker/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/commit/3f3e3e9c8bd4761f9b1650e3b10135dfdae6fc6d
Comment 5 Bharadwaj Raju 2022-10-08 15:25:57 UTC
Git commit 6b809a159d010cab2065484c47ba01599720d574 by Bharadwaj Raju.
Committed on 08/10/2022 at 15:25.
Pushed by bharadwaj-raju into branch 'Plasma/5.26'.

colorpicker: Make left-clicking a color copy in the default format

Also add a small "Copied!" message


(cherry picked from commit 3f3e3e9c8bd4761f9b1650e3b10135dfdae6fc6d)

M  +36   -3    applets/colorpicker/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/commit/6b809a159d010cab2065484c47ba01599720d574