Jump to content
Sign in to follow this  
Fudley

How to find the currently used theme color of a themed control

Recommended Posts

A number of controls are not themed, like TRectangle, TLine  and the svg.overridecolor on TkSvg. I would like to set these to match the current theme.

 

How can I find the currently used theme color of a control I know is themed,  so I can then apply it to the non-themed controls at runtime?

 

For instance 

  • TLabel themed fontcolor would do nicely to use for svg.overridecolor on TkSvg,.
  • TLabel themed fontcolor would work (for me) for TRectangle.stroke
  • TButtons themed fill color could be used for TRectangle.fill

 

For me, this would save oodles of work.

 

thanks all

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×