Recent

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

MISV

  • Hero Member
  • *****
  • Posts: 772
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

  • Jr. Member
  • **
  • Posts: 78
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: controls colors and Mojave dark theme
« Reply #2 on: July 19, 2019, 02:05:56 pm »
clDefault works for me.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • 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.

 

TinyPortal © 2005-2018