Created attachment 52335 [details] Default view for document with unformatted text Version: unspecified (using Devel) OS: Linux I've using dark background color and light font color in my system. Sometimes, i've troubles with some software, that tested only with default colors :( For example - Okular. It using font color settings from system, but ignoring background color settings, and show white text on white (hardcoded) background with grey silouette (i dunno about, why this silouette exists). This bug occurs only with documents (fb2, odf, pdf, etc), that hasn't any text formatting inside. If text formatting exists (text position, font boldness), anyway, if no font color formatting there — okular renders hardcoded _black_ font color and _white_ background color. I mean: when I open document in OOo — it using all system color settings: black background and white foreground. But when i open it in Okular — it is problems, that I describe. Reproducible: Always Steps to Reproduce: 1. Set windows (and other) background colors to dark tones (black, for example) 2. Set light foreground color 3. Open any document without text formatting, and see, light font color on white background. (unreadable) 4. Set background color to black in options. 5. Open this document again. It comes readable. 6. Open other document, that contains any text formatting (bold text, for example), and see black font on black paper. Actual Results: see in "Details" Expected Results: Both system foreground color and background color by default.
Created attachment 52336 [details] Default system view with odf examples (see window captions)
Created attachment 52337 [details] what happens, if i set "black and white" view in options
Created attachment 52338 [details] this happens, if i set "invert colors" in options
Created attachment 52339 [details] paper color is changed to black
Created attachment 52340 [details] file from screenshot
Created attachment 52341 [details] file from screenshot #2
Pino Toscano has changed Component to "ODT", but it is the same problem with fb2 books. And, i think, it'll even with chm and other documents, that can contain unformatted text (i can't test them all). So I think, it is general Okular bug.
confirm this problem with 4.4.5
Created attachment 52351 [details] Okular and openoffice on the one display Okular Version 0.10.5 Using KDE Development Platform 4.4.5 (KDE 4.4.5)
Patches welcome as always
Albert, before I look into this, would you rather like the background to use the system color, or the text color to be hard coded to black?
Scratch that, see https://git.reviewboard.kde.org/r/111681/
Git commit 60cc5dc98e502afd597555c48c8f350714c08349 by Albert Astals Cid, on behalf of Christoph Feck. Committed on 12/03/2014 at 22:01. Pushed by aacid into branch 'KDE/4.13'. TextDocumentGenerator: Use black as default text color REVIEW: 111681 Related: bug 322547 FIXED-IN: 4.12.90 M +9 -1 core/textdocumentgenerator.cpp http://commits.kde.org/okular/60cc5dc98e502afd597555c48c8f350714c08349
*** Bug 306572 has been marked as a duplicate of this bug. ***