Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.