Jump to content
Ruud

IDE Color schemes and the registry

Recommended Posts

The color scheme of the Delphi 11.3 IDE can be edited via :
    Tools/Options/User Interface/Editor/Color

 

The original color scheme ('Color SpeedSetting') is : (unnamed)

 

That color scheme is stored in the registry key :
    HKEY_CURRENT_USER\Software\Embarcadero\BDS\22.0\Editor\Highlight (= Key01)
and :
    HKEY_CURRENT_USER\Software\Embarcadero\BDS\22.0\Editor\Highlight\Inbuilt Themes\(unnamed) (= Key02)

 

Key01 contains the subkey 'Structral Highlighting' .
Key02 doesn't .
The original Key01 does not contain the subkey 'Custom Themes' .

 

I then changed some Delphi IDE color settings via :
    Tools/Options/User Interface/Editor/Color
and some color settings via :
    Tools/Options/User Interface/Editor/Color/Structural Highlighting
and saved this as color scheme : Test01

 

Key01 now contains the subkey \Custom Themes\Test01 (= Key03)
Key03 does not contain the subkey 'Structral Highlighting'

 

The color settings I changed via :
    Tools/Options/User Interface/Editor/Color/Structural Highlighting
are stored in Key01/Structural Highlighting

 

I have 2 questions :
1. is it correct that a Custom Theme can't have his own 'Structral Highlighting' settings ?
2. IIRC this was possible in D10.4 (21.0) ; has this been changed in D11.3 (22.0) ?

 

Share this post


Link to post
On 10/17/2024 at 3:48 AM, Ruud said:

I have 2 questions :
1. is it correct that a Custom Theme can't have his own 'Structral Highlighting' settings ?

2. IIRC this was possible in D10.4 (21.0) ; has this been changed in D11.3 (22.0) ?

I did some more testing , and I think I made a mistake : Custom Themes in D10.4 (21.0) did not originally contain the subkey 'Structral Highlighting' . This is what went wrong .

 

I use the same color scheme for the Delphi IDE at least since D5 (perhaps even D2) , and for every D-version I exported the relevant registry key to a reg-file .

Everytime I installed a new D-version , I used the exported reg-file of the previous D-version , to store my color scheme in the registry .

 

I compared the reg-file with the original settings of D10.3 with the one of D10.4 , and found that Custom Themes were introduced in D10.4 .

 

After installing D10.4 , I used the D10.3 reg-file to create the 'correct' Custom Themes subkey in D10.4 .

I did this by replacing :

    [HKEY_CURRENT_USER\Software\Embarcadero\BDS\20.0\Editor\Highlight]

which correctly contains the subkey 'Structral Highlighting' , with :

    [HKEY_CURRENT_USER\Software\Embarcadero\BDS\21.0\Editor\Highlight\Custom Themes\Test01]

and imported the resulting new reg-file in the registry .

By doing so , I generated the 'Structral Highlighting' subkey in Custom Theme Test01 myself .

 

Remains the question :

Why is there no 'Structral Highlighting' subkey for every Custom Theme ?

 

Edited by Ruud
clarification

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

×