Bug 361197

Summary: Syntax highlighting colors are not preserved exactly (rounding error?)
Product: [Applications] kate Reporter: Ivan Shapovalov <intelfx>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ilmari.lauhakangas
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ivan Shapovalov 2016-03-30 17:20:14 UTC
At least with some highlighting colors, the stored color differs from what user enters by 1-2 for each channel.

Reproducible: Always

Steps to Reproduce:
1. Kate → "Settings" → "Configure Kate..." → "Editor Component/Fonts & Colors" → "Default Text Styles"
2. Change any color to #859900 (Solarized's "green")
3. Invoke the color pick dialog again
4. Observe the stored color

Actual Results:  
#849800

Expected Results:  
#859900
Comment 1 Buovjaga 2016-07-02 10:58:17 UTC
No problem here. Please test with latest version.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.23.0
Qt 5.7
xcb wm
Comment 2 Ivan Shapovalov 2016-07-02 16:03:01 UTC
Cannot reproduce it anymore as well. Seems to be silently fixed then?
Comment 3 Buovjaga 2016-07-02 18:10:44 UTC
Seems like it, yes. Setting to WFM.