Created attachment 166396 [details] An indigo box displayed when hovering "$INDIGO-42" string! SUMMARY Konsole diplays a colored square whenever hovering a string which is a color name (in English). STEPS TO REPRODUCE 1. Open Konsole 2. Type (without quotes) "cd ~/blue" or "echo Red" or "echo $INDIGO-42" . It is not needed to hit ENTER, just display. 3. Hover the mouse pointer over the string with a color name ("blue" or "Red" or "IDIGO". OBSERVED RESULT A square with white frame is displayed filled with the color named by the string. EXPECTED RESULT Nothing at all. SOFTWARE/OS VERSIONS Kernel Version : 6.7.8.zen1-1 Plasma Version : 5.27.10-2 KDE Version : 23.08.5-1 Frameworks Version : 5.115.0-1 Qt5 Version : 5.15.12+kde+r10-1 Qt6 Version : 6.6.2-4 Wayland Version : 1.22.0-1 XOrg/Wayland Version : 23.2.4-2 Mesa Version : 1:24.0.2-1 ADDITIONAL INFORMATION It's important that the color name is displayed as a single word delimited by blanks of other non-alphanum character. Likely this an Easter egg and a weird one.
I can see there is a setting within the profiles that controls this (weird?) feature. Edito Profile --> Mouse --> Miscellaneous --> Preview Colors on hover. The hint text reads "When positioning the mouse over a hexadecimal color it will be displayed in a frame next to the mouse pointer". This works only if the "hexadecimal color" is in the form "#HHHHHH[HH]" ('H' being an hexadecimal digit). If the last two optional digits are defined, a checkerboard is displayed. (See attached screenshots). It seems also to work with 9 hex digits... Only thing is that it is not supposed/documented to work with English color names. I could then dispute when/whether that patterns is actually a hexadecimal color, but I will refrain for that. At best the bug is in only the hint string that should read: When positioning the mouse over a hexadecimal color or and English color name it will be displayed in a frame next to the mouse pointer
Created attachment 166423 [details] Checkerboard with alpha channel I am not sure whether the rendering is correct.
Created attachment 166424 [details] Blue color displayed with 12-hex digits
I agree that the string should be change to include english colors. We recently added a "color preview" string to the popup. I'd have to look at the code to see why 00ff00bb has a checkboard preview.