Paradox Community

Items in comp.databases.paradox

Subject:Dark Theme Option?
Date:Tue, 5 Nov 2019 09:41:06 -0500
From:Kevin Baker <>
I'm thinking about offering my customers a Light or Dark theme.  I don't 
want to have two forms of course (a light and dark), so I'm looking for 
a way to do this through code.  I'm not quite sure of the approach to 
take.  My initial thought was to create a db with 4 fields:
ObjectName (or maybe ObjectClass)
Light (holds the RGB value)
Dark  (holds the RGB value)

On a setup form, the user could select with theme they want, light or 
dark.  On other forms when they open, I change the color of all objects 
based on their selection.

Is this efficient?  To change the color each time a form is opened? 
Maybe have a hidden text label on the form that is updated after a color 
change is made.  So if the user selects dark, when the form opens it 
would get the value of the text label, if it's light, then I'd change 
all the colors and change the text label to dark.  Then the next time 
the form is open, the value would be dark, so no need to change the 
color of the objects.

I really want to make this dynamic to allow me to tweak colors with the 
theme and of course add new ones down the road.  Anyone got any ideals, 
recommendations, warnings, examples, etc.?


Copyright © 2004