Bug 444623

Summary: Okular does not render annotation colours correctly. It renders them all as grey.
Product: [Applications] okular Reporter: thosecars82 <vamosapartirla>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: 20.12.3   
Target Milestone: ---   
Platform: Snap   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: after releasing the mouse button
file with annotations made in Okular

Description thosecars82 2021-10-29 19:11:27 UTC
Created attachment 143012 [details]
after releasing the mouse button

SUMMARY


STEPS TO REPRODUCE
1. Open a pdf file
2. click on annotations button
3. choose any tool such as freehand line with any color such as green color
4. draw a free line
5. before releasing the mouse button the color of the line is correct.
https://i.imgur.com/OPOHt9t.png
6. after releasing the mouse button the color of the line becomes grey regardless of the color chosen for the the freehand line.
https://i.imgur.com/5lzjAwv.png

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Cent OS 8
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2021-10-29 22:19:29 UTC
Can you attach the file once you've saved it?
Comment 2 thosecars82 2021-10-30 09:39:07 UTC
Created attachment 143026 [details]
file with annotations made in Okular
Comment 3 thosecars82 2021-10-30 09:42:18 UTC
You can check the difference between Foxit reader and Okular with reference to rendering the colours:
https://i.imgur.com/EhGNKuQ.jpg
Comment 4 Albert Astals Cid 2021-10-30 10:28:41 UTC
You can't complain the colors don't look as they should when you have manually enabled the "Invert colors" option, stop doing that and then colors will look correct.
Comment 5 thosecars82 2021-10-31 10:16:58 UTC
Thanks for the solution! It worked great!