Dark Mode not happening

  1. 5 weeks ago

    Jeff T

    Jan 17 Midlands of England, Europe

    In 2018.r3 If I start a new project with supports Hi-DPI off and Dark Mode ON, I get dark windows and dark controls.

    If I open a project created in an older version of Xojo, and set the shared settings the same way, all the controls are the way they were.. dark mode doesnt happen.
    Any idea what I need to do?

  2. Tim J

    Jan 17 Pre-Release Testers, Xojo Pro Dehydrating in AZ

    Try saving the old project in 18r3 to a new folder and then reload it.

  3. Jeff T

    Jan 17 Midlands of England, Europe

    Nope.
    Always returns false from isdarkmode.
    Hmmm

  4. Sascha S

    Jan 17 Pre-Release Testers, Xojo Pro Germany

    May it be that you use AppWrapper to sign the binaries and that App Wrapper is set to force light mode?

  5. Jeff T

    Jan 18 Midlands of England, Europe

    Thats good thinking Sasha, its almost certainly set that way for wrapping.
    Didnt think it would affect a debug session, but I'll check it out.

  6. Dave S

    Jan 18 San Diego, California USA

    You ARE running Mojave I assume.
    Darkmode works here, but the Xojo IDE screws up if you change the mode while Xojo is running, some IDE elements change correctly while others change part way (background stays one way, text changes, meaning you can't see the text)

  7. Jeff T

    Jan 18 Midlands of England, Europe

    >>You ARE running Mojave I assume.<<

    Oh yes.
    >>Darkmode works here<<
    Same here on a new project.
    Any project created in older Xojo, wont respect it.

  8. Tim P

    Jan 18 Pre-Release Testers feedback://46303

    Jeff, I've just given your instructions a try, I will restate what I did for clarity:

    Created empty desktop project with 2016r4.1
    Save as binary
    Open with 2018r3
    Turn HiDPI Off
    Turn Dark Mode On
    Run Debug

    I was not able to reproduce an issue as you described. Can you share an empty project that exhibits the issue?

  9. Jeff T

    Jan 18 Midlands of England, Europe

    I can try.

    testing in the last few minutes:

    Opened a small window created using 2017
    It has a canvas and some buttons and some other code I would need to remove to get down to a sample.
    The canvas is white
    Buttons on the window are dark mode.
    Buttons on the canvas are light mode.
    A slider added to the window displays in light mode.

    After some changing of parents, (drag on/off the canvas for example) things started to draw in dark mode.

  10. Jeff T

    Jan 18 Midlands of England, Europe

    Cant recreate this with a trivial example at this point. :(
    But it affects all my pre-Xojo 2018 projects.

  11. Tim P

    Jan 18 Pre-Release Testers feedback://46303

    Do they have build scripts that do things to Info.plist?

  12. Jeff T

    Jan 18 Midlands of England, Europe
    Edited 5 weeks ago

    Some have an App Wrapper script, some nothing

    Got one to work by removing KillerToolbar and the AppWrapper script
    Guess I just keep hacking and trying.

or Sign Up to reply!