<div dir="ltr">Sure thing, done.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at 6:57 PM Richard Kimberly Heck <<a href="mailto:rikiheck@lyx.org">rikiheck@lyx.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <div>On 4/13/21 8:38 PM, Narahari Rao wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">I've got it mostly working now. I couldn't figure
        out how to persist the option (In
        Tools->Preferences->Colors), so it resets to Same As
        System every startup. The patch is attached.<br>
      </div>
    </blockquote>
    <p>Great, thanks! I should be able to take it from there.</p>
    <p>Can you send an email to the list saying that you license your
      contributions to LyX under GPL v2 or any later version? Then we
      can give you proper credit.<br>
    </p>
    <p>Riki</p>
    <p><br>
    </p>
    <blockquote type="cite"><br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at 12:51
          PM Narahari Rao <<a href="mailto:narahari387@gmail.com" target="_blank">narahari387@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Looks like bool ColorCache::isDarkmode() is
            setting the document colors on startup, using QtPalette to
            get text/bg color and comparing them to guess whether the
            user is in a dark theme or not. However, changing what this
            function returns during runtime (via a variable) does not
            change the document colors, so it looks like it needs a
            refresh of some sort.<br>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at
              8:33 AM Jean-Marc Lasgouttes <<a href="mailto:lasgouttes@lyx.org" target="_blank">lasgouttes@lyx.org</a>> wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 13/04/2021 à 16:55,
              Richard Kimberly Heck a écrit :<br>
              >> Not in the GUI. You can use the -style option
              when starting LyX.<br>
              > <br>
              > Does it seem worth having such an option? Windows
              users especially might <br>
              > struggle with the command line. I'd be happy to write
              the code, if so, <br>
              > if you can just point me at the dark-mode detection
              routine.<br>
              <br>
              Yes, I think a choice light/dark/system-default would be
              nice.<br>
              <br>
              JMarc<br>
              -- <br>
              lyx-devel mailing list<br>
              <a href="mailto:lyx-devel@lists.lyx.org" target="_blank">lyx-devel@lists.lyx.org</a><br>
              <a href="http://lists.lyx.org/mailman/listinfo/lyx-devel" rel="noreferrer" target="_blank">http://lists.lyx.org/mailman/listinfo/lyx-devel</a><br>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <p><br>
    </p>
  </div>

</blockquote></div>