Color Picker: Round color values before formatting them

Kai Uwe Broulik requested to merge work/kbroulik/colorpicker-round-values into master

Otherwise it gets utterly confused when the number isn't exactly two hexadecimal digits but has fractional digits, too.

Not sure how this has never cropped up before but in Plasma 6 my color picker was completely borked (displaying long decimal numbers in the context menu and wrong hex values in the grid).

Should we backport this nonetheless?

Merge request reports