Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 988
  • 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 »
o Lazarus v2.1.0 r63871, FPC v3.3.1 r46876, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware Fusion VM)
o FPC 3.0.4, FreeBSD 12.2-STABLE r365646 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

skalogryz

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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 988
  • 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  :)
o Lazarus v2.1.0 r63871, FPC v3.3.1 r46876, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware Fusion VM)
o FPC 3.0.4, FreeBSD 12.2-STABLE r365646 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

 

TinyPortal © 2005-2018