Recent

Author Topic: Lazarus IDE: dark theme mode does not work anymore on macOS Sonoma  (Read 1143 times)

upsidasi

  • New Member
  • *
  • Posts: 31
Hi,

The dark theme (dark mode) does not work anymore on my Lazarus IDE on macOS x86_64 Sonoma (see image). Also, applications built with such IDE have always the "light theme" even if the OS has the dark theme activated.

Do you know why?

Both Lazarus IDE and applications compiled with it used to be able to go in "dark theme" automatically without the need to do anything. Unfortunatelly, I have recently updated the OS, Xcode and Lazarus, so I don't know what caused this situation.
My current versions:
  • macOS Sonoma 14.1.1
  • Xcode 15.0.1 (15A507)
  • Lazarus 2.2.7 taken from fixes_2_2: (commit ada7a90f86479e4b61da343f58155a7ba4f17ca4 (HEAD -> fixes_2_2, origin/fixes_2_2), Date: Sat Mar 4 14:17:32 2023 +0100)
  • Widget: cocoa

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Lazarus IDE: dark theme mode does not work anymore on macOS Sonoma
« Reply #1 on: February 15, 2024, 08:19:29 pm »
This issue has been extensively discussed (and more or less solved) here: https://forum.lazarus.freepascal.org/index.php/topic,64768.msg501675.html#msg501675
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

upsidasi

  • New Member
  • *
  • Posts: 31
Re: Lazarus IDE: dark theme mode does not work anymore on macOS Sonoma
« Reply #2 on: February 16, 2024, 08:38:51 am »
The -WM10.14 option (in both "Configure "Build Lazarus" and "Project Options - Custom Options") worked for me too.

Thank you for letting me know!

apeoperaio

  • Sr. Member
  • ****
  • Posts: 276
Re: Lazarus IDE: dark theme mode does not work anymore on macOS Sonoma
« Reply #3 on: February 19, 2024, 10:46:26 am »
Tested on:
Lazarus 3.1 (rev lazarus_3_0-76-g2511674f2d) FPC 3.2.2 aarch64-darwin-cocoa

It works for me too.
Thanks!

 

TinyPortal © 2005-2018