Skip to content

Conversation

@martijnlaan
Copy link
Member

No description provided.

@martijnlaan martijnlaan requested a review from Copilot November 5, 2025 18:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds support for custom wizard background colors in Inno Setup, extending the existing wizard styling capabilities. The implementation introduces new WizardBackColor and WizardBackColorDynamicDark directives that allow setup authors to customize the background color of wizard forms when using VCL styles.

Key Changes

  • Added new WizardBackColor and WizardBackColorDynamicDark fields to the setup header and associated setup directives
  • Implemented TFormBackgroundStyleHook to apply custom background colors to forms when VCL styles are enabled
  • Updated wizard image back color logic to set clNone when image files are explicitly cleared

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Projects/Src/Shared.Struct.pas Added WizardBackColor and WizardBackColorDynamicDark fields to TSetupHeader, updated SetupID version
Projects/Src/Shared.SetupSectionDirectives.pas Added ssWizardBackColor and ssWizardBackColorDynamicDark directives
Projects/Src/Setup.WizardForm.pas Updated form initialization to support custom backgrounds via ParentBackground property and CustomWizardBackground flag
Projects/Src/Setup.TaskDialogForm.pas Modified to conditionally apply custom background based on CustomWizardBackground flag
Projects/Src/Setup.SelectLanguageForm.pas Modified to conditionally set ParentBackground based on CustomWizardBackground flag
Projects/Src/Setup.MainFunc.pas Registered FormBackgroundStyleHook, initialized CustomWizardBackground global, handled dynamic dark color switching
Projects/Src/Compiler.SetupCompiler.pas Added parsing for new directives, updated wizard image back color logic to handle explicit empty values
Projects/SetupCustomStyle.dproj Added reference to FormBackgroundStyleHook.pas
Projects/SetupCustomStyle.dpr Added FormBackgroundStyleHook unit to uses clause
Projects/Setup.dproj Added reference to FormBackgroundStyleHook.pas
Projects/Setup.dpr Added FormBackgroundStyleHook unit to uses clause
Components/NewStaticText.pas Updated TNewStaticTextStyleHook to use control's Color property instead of style color
Components/NewNotebook.pas Published ParentBackground property for TNewNotebook and TNewNotebookPage
Components/FormBackgroundStyleHook.pas New file implementing style hook for custom form backgrounds
Components/BitmapImage.pas Added safety checks for empty bitmaps to prevent operations on uninitialized graphics

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@martijnlaan martijnlaan requested a review from Copilot November 6, 2025 15:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# Conflicts:
#	Projects/Src/Setup.MainFunc.pas
…WantTabs mode (which makes it looks like an ordinary list of checkboxes/radiobuttons).
# Conflicts:
#	Projects/Src/Setup.MainFunc.pas
#	whatsnew.htm
# Conflicts:
#	ISHelp/isetup.xml
#	Projects/Src/Compiler.SetupCompiler.pas
#	Projects/Src/Setup.MainFunc.pas
#	whatsnew.htm
# Conflicts:
#	Projects/Src/Setup.MainFunc.pas
#	whatsnew.htm
Also fixes the file version number not being upped so far.
# Conflicts:
#	Projects/Src/Setup.UninstallLog.pas
Commit doesn't show anything for Setup.Uninstall.pas because the block was already moved there (but also extended, thus the conflict).

# Conflicts:
#	Projects/Src/Setup.MainFunc.pas
#	Projects/Src/Setup.Uninstall.pas
Updated whatsnew during merge.

# Conflicts:
#	whatsnew.htm
… the color).

Todo: doc & make it easier to get CustomWizardBackground activated without it being visible.
…h but doing it on branch anyway to avoid conflict.
@martijnlaan martijnlaan requested a review from Copilot November 22, 2025 18:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 32 out of 33 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (1)

whatsnew.htm:1

  • Corrected release date from '2025-11-20' to '2025-11-19'.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@martijnlaan martijnlaan force-pushed the FormBackgroundStyleHook branch from 009abd2 to 358a929 Compare November 22, 2025 19:28
@martijnlaan martijnlaan force-pushed the FormBackgroundStyleHook branch from 358a929 to 487e955 Compare November 22, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants