Recent

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

trev

  • Full Member
  • ***
  • Posts: 202
[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 »
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: 2267
    • 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 »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

trev

  • Full Member
  • ***
  • Posts: 202
Re: [SOLVED] Dark theme - runtime components
« Reply #2 on: June 23, 2019, 04:08:29 pm »
Thanks Dmitry - that was it! All good now  :)
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)