Compiling QtWebEngine with a light background



  • I've compiled Falkon and see a dark background for opened images. I've attempted to replace that with a light background by compiling Falkon. However, I've been unsuccessful and been told it can be done when compiling QtWebEngine.

    Is there a way to do so? I've tried replacing SK_ColorBLACK and various png files without success.



  • Let me ask this another way as I've gathered more information. I contacted Chrome support about changing the background color. I was told changing the following would work:

    https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/html/image_document.cc?q=image_document.cc&dr&l=245

    I believe I found it in src/3rdparty/chromium/third_party/WebKit/Source/core/html/ImageDocument.cpp and changed:
    body->setAttribute(styleAttr, "margin: 0px; background: #0e0e0e;");
    to
    body->setAttribute(styleAttr, "margin: 0px; background: #FFFFFF;");

    Unfortunately, that didn't work. I'm self taught in this. Shouldn't I be able to this? Open source after all ...


Log in to reply