Bug 253583 - Okular uses font color from system settings, but ignores the background color from there.
Summary: Okular uses font color from system settings, but ignores the background color...
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: ODT backend (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 306572 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-08 12:48 UTC by Vadim A. Misbakh-Soloviov (mva)
Modified: 2014-05-11 14:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.90
Sentry Crash Report:


Attachments
Default view for document with unformatted text (367.65 KB, image/png)
2010-10-08 12:48 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
Default system view with odf examples (see window captions) (340.79 KB, image/png)
2010-10-08 12:50 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
what happens, if i set "black and white" view in options (281.88 KB, image/png)
2010-10-08 12:52 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
this happens, if i set "invert colors" in options (242.66 KB, image/png)
2010-10-08 12:52 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
paper color is changed to black (199.85 KB, image/png)
2010-10-08 12:53 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
file from screenshot (16.38 KB, application/octet-stream)
2010-10-08 13:18 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
file from screenshot #2 (7.88 KB, application/octet-stream)
2010-10-08 13:19 UTC, Vadim A. Misbakh-Soloviov (mva)
Details
Okular and openoffice on the one display (188.58 KB, image/png)
2010-10-08 19:59 UTC, gtlinuxman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim A. Misbakh-Soloviov (mva) 2010-10-08 12:48:14 UTC
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.
Comment 1 Vadim A. Misbakh-Soloviov (mva) 2010-10-08 12:50:47 UTC
Created attachment 52336 [details]
Default system view with odf examples (see window captions)
Comment 2 Vadim A. Misbakh-Soloviov (mva) 2010-10-08 12:52:02 UTC
Created attachment 52337 [details]
what happens, if i set "black and white" view in options
Comment 3 Vadim A. Misbakh-Soloviov (mva) 2010-10-08 12:52:53 UTC
Created attachment 52338 [details]
this happens, if i set "invert colors" in options
Comment 4 Vadim A. Misbakh-Soloviov (mva) 2010-10-08 12:53:44 UTC
Created attachment 52339 [details]
paper color is changed to black
Comment 5 Vadim A. Misbakh-Soloviov (mva) 2010-10-08 13:18:56 UTC
Created attachment 52340 [details]
file from screenshot
Comment 6 Vadim A. Misbakh-Soloviov (mva) 2010-10-08 13:19:45 UTC
Created attachment 52341 [details]
file from screenshot #2
Comment 7 Vadim A. Misbakh-Soloviov (mva) 2010-10-08 13:40:17 UTC
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.
Comment 8 gtlinuxman 2010-10-08 19:40:16 UTC
confirm this problem with 4.4.5
Comment 9 gtlinuxman 2010-10-08 19:59:53 UTC
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)
Comment 10 Albert Astals Cid 2010-10-13 00:42:00 UTC
Patches welcome as always
Comment 11 Christoph Feck 2013-07-25 10:30:09 UTC
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?
Comment 12 Christoph Feck 2013-07-25 11:24:28 UTC
Scratch that, see https://git.reviewboard.kde.org/r/111681/
Comment 13 Albert Astals Cid 2014-03-12 22:07:51 UTC
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
Comment 14 Albert Astals Cid 2014-05-11 14:20:45 UTC
*** Bug 306572 has been marked as a duplicate of this bug. ***