Commit 01c240c0 authored by David Hurka's avatar David Hurka 🐬
Browse files

Fix white background flashing up when using Invert Lightness/Luma

These color modes make white background black,
but PagePainter wasn’t updated to draw black background
when pixmaps are not yet available.

BUG: 431372
parent 931dca15
Pipeline #56485 passed with stage
in 28 minutes and 21 seconds
......@@ -83,6 +83,9 @@ void PagePainter::paintCroppedPageOnPainter(QPainter *destPainter,
if (Okular::SettingsCore::changeColors()) {
switch (Okular::SettingsCore::renderMode()) {
case Okular::SettingsCore::EnumRenderMode::Inverted:
case Okular::SettingsCore::EnumRenderMode::InvertLightness:
case Okular::SettingsCore::EnumRenderMode::InvertLuma:
case Okular::SettingsCore::EnumRenderMode::InvertLumaSymmetric:
backgroundColor = Qt::black;
case Okular::SettingsCore::EnumRenderMode::Paper:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment