Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Compiling QtWebEngine with a light background
Forum Updated to NodeBB v4.3 + New Features

Compiling QtWebEngine with a light background

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 1 Posters 646 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rhubarbpieguy
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rhubarbpieguy
      wrote on last edited by
      #2

      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 ...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved