Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit ea6a0e7

Browse files
committed
Adjust background in property pages to match Visual Studio
1 parent a57641b commit ea6a0e7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/votive.shared/PropertyPages/WixPathsPropertyPagePanel.Designer.cs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/votive.shared/PropertyPages/WixPropertyPagePanel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ public WixPropertyPagePanel(WixPropertyPage parentPropertyPage)
4343
this.InitializeComponent();
4444

4545
this.Font = WixHelperMethods.GetDialogFont();
46+
#if Dev17
47+
// VS2022 doesn't use theming on property pages
48+
this.BackColor = SystemColors.Control;
49+
#else
4650
this.BackColor = WixHelperMethods.GetVsColor(WixHelperMethods.Vs2010Color.VSCOLOR_BUTTONFACE);
51+
#endif
4752
this.ForeColor = WixHelperMethods.GetVsColor(WixHelperMethods.Vs2010Color.VSCOLOR_BUTTONTEXT);
4853
}
4954

0 commit comments

Comments
 (0)