Recent

Author Topic: [SOLVED] Dark theme - runtime components  (Read 1848 times)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
[SOLVED] Dark theme - runtime components
« on: June 23, 2019, 03:51:20 pm »
I dislike dark them, but I tried it in case any of my users love it... it works for design time components, but not for runtime components (see attached image of invisible labels and washed out combo boxes).

Any ideas on how to solve this?
« Last Edit: June 23, 2019, 04:06:44 pm by trev »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Dark theme - runtime components
« Reply #1 on: June 23, 2019, 03:57:46 pm »
what colors are you using for TLabel?
try to use clWindowText for font colors and clWindow for the (background) color

TComboBox should be using clDefault color (unless you're assigning it explicitly to something different)
« Last Edit: June 23, 2019, 03:59:43 pm by skalogryz »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: [SOLVED] Dark theme - runtime components
« Reply #2 on: June 23, 2019, 04:08:29 pm »
Thanks Dmitry - that was it! All good now  :)

 

TinyPortal © 2005-2018