Revert from Dark Mode?

My Application is in dark mode… I want to undo that … is there a setting within Xojo building for this?
I can’t read my text on windows in dark mode.

App.SupportsDarkMode

But you better check the text color to be correct.

If you don’t change the text color at all in the IDE it will automagically support Dark Mode.
Fighting against dark mode is not the way to handle things.

Edit: Building with the Supports Dark Mode flag off can help for now, but there’s no telling how long Apple will allow that plist flag to operate. Should they suddenly decide to remove the ability to disable dark mode your app will be unusable overnight.

Where is that build flag?

Build Settings -> Shared

[quote=419971:@Tim Parnell]If you don’t change the text color at all in the IDE it will automagically support Dark Mode.
Fighting against dark mode is not the way to handle things.

Edit: Building with the Supports Dark Mode flag off can help for now, but there’s no telling how long Apple will allow that plist flag to operate. Should they suddenly decide to remove the ability to disable dark mode your app will be unusable overnight.[/quote]
Are you saying that all apps will thus be forced to be dark mode, that a non-dark-mode app will show in dark mode anyway? Or that one will not be able to un-dark-mode an app?

Either way, it will be the end of civilisation as we know it.

What he is probably saying is like all else (32bit vs 64bit for example) … at some point in the Future… you app must support Dark Mode… (its up to the end user to decide which mode they wish to use)

[quote=420234:@Tim Streater]Are you saying that all apps will thus be forced to be dark mode, that a non-dark-mode app will show in dark mode anyway? Or that one will not be able to un-dark-mode an app?

Either way, it will be the end of civilisation as we know it.[/quote]

I don’t think that is how it would work. Some apps would work best in Dark Mode but probably toggling games from dark to light or vice versa might not be good. You can always still keep your color schemes a shade away from the extreme white and black to prevent it from toggling if they stop supporting the plist entry

NSRequiresAquaSystemAppearance
true

[quote=420347:@Edwin Lau]I don’t think that is how it would work. Some apps would work best in Dark Mode but probably toggling games from dark to light or vice versa might not be good. You can always still keep your color schemes a shade away from the extreme white and black to prevent it from toggling if they stop supporting the plist entry

NSRequiresAquaSystemAppearance
true[/quote]

Note what Apple says on this page:

https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_app?language=objc

That’s Xojo’s SupportDarkMode=true, resulting in an app that support both light/dark mode.

That’s what Xojo’s SupportDarkMode=false does currently, right?

And that seems to not be available in Xojo yet - maybe worth a Feature Request?
The way I understand apple’s docs, Xojo should not just have that boolean switch SupportDarkMode, but a way to choose:

  • Supports both Light/Dark Mode (strongly encouraged by Apple)
  • App is entirely/always Light Mode (not planned to support Dark Mode)
  • App is entirely/always Dark Mode (not planned to support Light Mode)
    That would cover the following part of Apple’s Docs:

That IS supported by Xojo as it is what we have been doing up to now

I do not think Apple is going to force (or even allow) a “DarkMode” only app… it is/should be up to the end user which mode they use… Meaning there should only be two options to the developer

  • Supports both Light/Dark Mode (encouraged by Apple, selected by the end user)
  • App is entirely/always Light Mode (which is what we have been working with since forever)