| Summary: | hardcoded white background despite accesibility colors | ||
|---|---|---|---|
| Product: | [Unmaintained] kpdf | Reporter: | domel <domel> |
| Component: | general | Assignee: | Albert Astals Cid <aacid> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
domel
2007-07-25 09:21:01 UTC
SVN commit 692291 by pino:
Take into account the accessibility settings when drawing an empty page waiting for the real page to be rendered.
BUG: 148188
M +18 -5 pagepainter.cpp
--- branches/KDE/3.5/kdegraphics/kpdf/ui/pagepainter.cpp #692290:692291
@@ -49,11 +49,24 @@
// if have no pixmap, draw blank page with gray cross and exit
if ( !pixmap )
{
- if ( KpdfSettings::changeColors() &&
- KpdfSettings::renderMode() == KpdfSettings::EnumRenderMode::Paper )
- destPainter->fillRect( limits, KpdfSettings::paperColor() );
- else
- destPainter->fillRect( limits, Qt::white );
+ QColor color = Qt::white;
+ if ( KpdfSettings::changeColors() )
+ {
+ switch ( KpdfSettings::renderMode() )
+ {
+ case KpdfSettings::EnumRenderMode::Inverted:
+ color = Qt::black;
+ break;
+ case KpdfSettings::EnumRenderMode::Paper:
+ color = KpdfSettings::paperColor();
+ break;
+ case KpdfSettings::EnumRenderMode::Recolor:
+ color = KpdfSettings::recolorBackground();
+ break;
+ default: ;
+ }
+ }
+ destPainter->fillRect( limits, color );
// draw a cross (to that the pixmap as not yet been loaded)
// helps a lot on pages that take much to render
|