Skip to content

Conversation

@charlie89
Copy link

Hi,

this change makes all forms use the theme of the Delphi IDE and thus support dark mode.

This is accomplished by setting the StyleName property of the forms to the name of the last found Win10IDE_* theme (using TStyleManager) which is inherited to all components so everything is in the style of the IDE.
When changing the theme in the IDE once it automatically uses that new theme as it is the last one found, only when changing the theme again to a previously used theme a restart of the IDE is needed to use that theme.

FrmFileSelector.pas needed some changes to make it work with a dark theme. Some of the toolbar items in it still have a light border when using the dark theme, but i haven't found a way around that.
FrmeOptionPageFormDesigner.dfm had a bigger font than all other option frames, i fixed that.

The Installer was also updated, it uses the 'Windows10' theme for light mode and 'Windows10 SlateGray' for dark mode as this is most similar to the dark theme in the IDE. It queries the Windows light/dark system setting via a registry key to automatically start in the right theme.

All changes were implemented and tested with the latest Delphi 11.3 CE.

PS: Thanks for developing this great tool. I use it all time at work, especially the 'Find Unit-File' dialog which i often use multiple times a day so i wanted it to support dark mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant