okular/ui/data
Dileep Sankhla e44ff38706 Support setting text color for typewriter annotations
Summary:
Changing typewriter text color can be done in the typewriter properties dialog, or programmatically via new okular API methods TextAnnotation::textColor and TextAnnotation::setTextColor.

poppler >= 0.69 is required to store text color natively inside PDF documents. For other document types, text color is stored as metadata inside the document archive.

This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.

Test Plan:
- properties dialog of typewriter annotation has "Font Color" picker
- saving to PDF results in <r> <g> <b> rg operation in /DA
- saving to archive results in fontColor="rrggbb" attribute in metadata.xml

Reviewers: sander

Reviewed By: sander

Subscribers: kde-doc-english, sander, okular-devel

Tags: #okular, #documentation

Differential Revision: https://phabricator.kde.org/D15205
2018-10-04 20:02:55 +02:00
..
icons Rename icons 2015-03-17 08:52:39 +01:00
sources Add typewriter annotation tool 2018-09-25 22:47:01 +02:00
checkmark.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
circle.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
CMakeLists.txt Add typewriter annotation tool 2018-09-25 22:47:01 +02:00
comment.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
cross.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
drawingtools.xml Make the drawing tools be actions instead of tool buttons 2015-08-22 22:17:40 +02:00
help.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
insert.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
key.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
newparagraph.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
note.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
okular.knsrc Riactivate the very very very, and I underline very, experimental newstuff support we had before the KNS1 -> KNS2 switch: 2007-07-19 22:27:45 +00:00
paperclip.png Losslessly optimized PNG and SVGZ files with "optipng -o5" and "advdef -z -4". 2008-06-12 21:07:49 +00:00
paragraph.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
pushpin.png Losslessly optimized PNG and SVGZ files with "optipng -o5" and "advdef -z -4". 2008-06-12 21:07:49 +00:00
README.Icons Added directory desctiption. 2005-04-14 11:34:26 +00:00
rightarrow.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
rightpointer.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
stamps.svg add 'expired' stamp that i forgot in the previous commit, always by eugene (it-s) 2008-11-15 23:55:50 +00:00
star.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
tool-base-okular.png Paint some annotation tool icons dynamically 2012-12-28 16:40:16 +01:00
tool-base-okular@2x.png HiDPI Support for Okular 2017-10-14 14:47:20 +02:00
tool-highlighter-okular-colorizable.png Paint some other annotation tool icons dynamically 2012-12-28 17:22:02 +01:00
tool-highlighter-okular-colorizable@2x.png HiDPI Support for Okular 2017-10-14 14:47:20 +02:00
tool-ink-okular-colorizable.png Paint some other annotation tool icons dynamically 2012-12-28 17:22:02 +01:00
tool-ink-okular-colorizable@2x.png HiDPI Support for Okular 2017-10-14 14:47:20 +02:00
tool-note-inline-okular-colorizable.png Paint some other annotation tool icons dynamically 2012-12-28 17:22:02 +01:00
tool-note-inline-okular-colorizable@2x.png HiDPI Support for Okular 2017-10-14 14:47:20 +02:00
tool-note-inline.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
tool-note-okular-colorizable.png Paint some other annotation tool icons dynamically 2012-12-28 17:22:02 +01:00
tool-note-okular-colorizable@2x.png HiDPI Support for Okular 2017-10-14 14:47:20 +02:00
tool-note.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
tool-typewriter-okular-colorizable.png Add typewriter annotation tool 2018-09-25 22:47:01 +02:00
tool-typewriter-okular-colorizable@2x.png Add typewriter annotation tool 2018-09-25 22:47:01 +02:00
tool_hl_orange.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
tool_hl_pink.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
tool_hl_yellow.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
tool_ink_green.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
tool_note.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
tools.xml Support setting text color for typewriter annotations 2018-10-04 20:02:55 +02:00
uparrow.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
upleftarrow.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00

The icons contained in this directory are divided into:

>> Annotations TOOLBAR Icons:
These icons are displayed only on the annotation toolbar that popups up
then entering the review mode:
  tool_eraser, tool_hl_orange, tool_hl_pink, tool_hl_yellow, tool_ink_green,
  tool_note

>> Annotations PAGE Icons
The following icons are mandated in the PDF1.6 spec or adopted de facto by
some programs. The following are used by Text notes (Stamps not yet ready):
  checkmark, circle, comment, cross, help, insert, key, newparagraph,
  note, paragraph, rightarrow, rightpointer, star, uparrow, upleftarrow