Recent

Author Topic: No more Dark Mode in Lazarus 3.99 trunk?  (Read 1546 times)

Shebuka

  • Sr. Member
  • ****
  • Posts: 427
No more Dark Mode in Lazarus 3.99 trunk?
« on: October 02, 2023, 02:21:08 pm »
Hi everyone,

I updated both FPC and Lazarus from trunk on 14/06/2023 to the latest trunk and, after updating one package (BGRABitmap) too, I rebuilt the IDE and everything started. But to my surprise, despite the system being in Dark mode, both IDE and our Application were in Light mode and are completely ignoring the system setting.

Is this a thing of new trunk versions that I can disable or is it a bug?

Lazarus 3.99 285b99cc, FPC 3.3.1 f1317e89
« Last Edit: October 03, 2023, 09:29:13 am by Shebuka »

marcos-ebm

  • Newbie
  • Posts: 4
Re: No more Dark Mode in Lazarus 3.99 trunk
« Reply #1 on: October 02, 2023, 02:42:57 pm »
Are you using metadarkstyle?

Shebuka

  • Sr. Member
  • ****
  • Posts: 427
Re: No more Dark Mode in Lazarus 3.99 trunk
« Reply #2 on: October 02, 2023, 05:34:27 pm »
Are you using metadarkstyle?

Where do I check this? (edit: google it and it's a package for W10 dark mode, my issue is with macOS where this was already automatic)

Keep in mind that I didn't change anything in my code, just updated FPC and Lazarus and suddenly neither my App nor the IDE itself uses the style in system preferences...
« Last Edit: October 02, 2023, 05:37:33 pm by Shebuka »

jwdietrich

  • Hero Member
  • *****
  • Posts: 1227
    • formatio reticularis
Re: No more Dark Mode in Lazarus 3.99 trunk?
« Reply #3 on: October 11, 2023, 10:51:02 pm »
I have had the same experience after updating macOS Ventura from 13.5 to 13.6. Did you update macOS as well?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

jwdietrich

  • Hero Member
  • *****
  • Posts: 1227
    • formatio reticularis
Re: No more Dark Mode in Lazarus 3.99 trunk?
« Reply #4 on: October 12, 2023, 04:24:31 pm »
I just found out that this problem obviously applies to the Intel target only.

Compiling on a Mac with an Apple Silicon processor for the x86_64 architecture results in an app that remains in the light theme, irrespective of any settings for the dark theme. If I compile the same source code for the aarch64 architecture the dark mode and the switch between both themes are fully supported.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

jwdietrich

  • Hero Member
  • *****
  • Posts: 1227
    • formatio reticularis
Re: No more Dark Mode in Lazarus 3.99 trunk?
« Reply #5 on: October 14, 2023, 09:59:04 am »
Since this is obviously a bug I have reported an issue in the bug tracker at https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40553.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

 

TinyPortal © 2005-2018