Custom Styles

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Lampiao
Newbie
Newbie
Posts: 3
Joined: Wed Jul 18, 2012 12:00 am

Custom Styles

Post by Lampiao » Wed Feb 08, 2023 8:46 am

In Delphi I can set Styles (ProjectOptions -> Application -> Appearance -> CustomStyles) .

For example if I set it to style "Amakrits" then the UI has a black theme, the TListboxes and Memo's background are black.

But the TChart background remains white.

Is there a way that TChart adapts its style automatically to the Delphi style?

If not, I can set the TChart colors manually. But how can I find which exact colors Delphi used in a certain style?

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Custom Styles

Post by Yeray » Mon Feb 13, 2023 10:56 am

Hello,

You can assign the current style as follows:

Code: Select all

uses VCLTee.TeeThemes;

Code: Select all

TSystemTheme.ApplyStyle(Chart1);
Project1_2023-02-13_11-57-24.png
Project1_2023-02-13_11-57-24.png (22.48 KiB) Viewed 5548 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply