Recent

Author Topic: controls colors and Mojave dark theme  (Read 291 times)

MISV

  • Hero Member
  • *****
  • Posts: 633
controls colors and Mojave dark theme
« on: July 17, 2019, 11:59:22 am »
It appears after initial testing a while ago my forms look really whiteish with invisible text on Mojave dark theme.

I am thinking if it could be something with how colors are setup. Are there any guidelines? I believe I use default colors, but as the DFM files are also used by Delphi sometimes it could be an issue there...

However, I am happy doing runtime configuration of controls (I already do dependning on target, vcl, lcl-carbon, lcl-cocoa etc.) so just wondering if there is something specificly I should look for?

Wallaby

  • New Member
  • *
  • Posts: 22
Re: controls colors and Mojave dark theme
« Reply #1 on: July 19, 2019, 12:28:35 pm »
It probably has Form.Color set to clBtnFace or similar.

Try setting to clDefault or clNone, I don't remember which one of these works.

trev

  • Full Member
  • ***
  • Posts: 220
  • Former Delphi 7 and Delphi 10.2 User
Re: controls colors and Mojave dark theme
« Reply #2 on: July 19, 2019, 02:05:56 pm »
clDefault works for me.
o Lazarus v2.1.0 r61775, FPC v3.3.1 r42640, macOS 10.14.6 (with sup update), Xcode 10.3
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.0 (Parallels VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2280
    • havefunsoft.com
Re: controls colors and Mojave dark theme
« Reply #3 on: July 19, 2019, 03:24:05 pm »
I am thinking if it could be something with how colors are setup. Are there any guidelines? I believe I use default colors, but as the DFM files are also used by Delphi sometimes it could be an issue there...
not a guideline, but a reference table between LCL colors and macOS colors
https://wiki.freepascal.org/Cocoa_Internals/Graphics#System_Colors
I must note however, that 10.14 did deprecate some of the colors used.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz