Skip to content

Commit 2590d57

Browse files
- Replaced "Windows11 Light" and "Windows11 Dark" Styles with "Windows11 Modern Light" and "Windows11 Modern Dark"
- Updated demos to use new Windows 11 Styles available from Get-It
1 parent 6e94adb commit 2590d57

File tree

9 files changed

+48
-16
lines changed

9 files changed

+48
-16
lines changed

Demo/Images/DarkLightThemes.jpg

111 KB
Loading

Demo/Projects/D11_0/ModernAppDemo.dproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,20 @@
4545
<CfgParent>Base</CfgParent>
4646
<Base>true</Base>
4747
</PropertyGroup>
48+
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win32)'!=''">
49+
<Cfg_2_Win32>true</Cfg_2_Win32>
50+
<CfgParent>Cfg_2</CfgParent>
51+
<Cfg_2>true</Cfg_2>
52+
<Base>true</Base>
53+
</PropertyGroup>
4854
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win64)'!=''">
4955
<Cfg_2_Win64>true</Cfg_2_Win64>
5056
<CfgParent>Cfg_2</CfgParent>
5157
<Cfg_2>true</Cfg_2>
5258
<Base>true</Base>
5359
</PropertyGroup>
5460
<PropertyGroup Condition="'$(Base)'!=''">
55-
<Custom_Styles>&quot;Aqua Light Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AquaLightSlate.vsf&quot;;Copper|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Copper.vsf;CopperDark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CopperDark.vsf;Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;&quot;Iceberg Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\IcebergClassico.vsf&quot;;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;&quot;Slate Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SlateClassico.vsf&quot;;&quot;Tablet Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TabletDark.vsf&quot;;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Blue.vsf&quot;;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 Green|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Green.vsf&quot;;&quot;Windows10 Purple|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Purple.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Dark.vsf&quot;;&quot;Windows11 Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Light.vsf&quot;</Custom_Styles>
61+
<Custom_Styles>&quot;Aqua Light Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AquaLightSlate.vsf&quot;;Copper|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Copper.vsf;CopperDark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CopperDark.vsf;Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;&quot;Iceberg Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\IcebergClassico.vsf&quot;;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;&quot;Slate Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SlateClassico.vsf&quot;;&quot;Tablet Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TabletDark.vsf&quot;;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Blue.vsf&quot;;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 Green|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Green.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 Modern Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Dark.vsf&quot;;&quot;Windows11 Modern Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Light.vsf&quot;</Custom_Styles>
5662
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
5763
<SanitizedProjectName>ModernAppDemo</SanitizedProjectName>
5864
<DCC_DcuOutput>.\$(Platform)\$(Config)</DCC_DcuOutput>
@@ -102,6 +108,9 @@
102108
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
103109
<DCC_DebugInformation>0</DCC_DebugInformation>
104110
</PropertyGroup>
111+
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
112+
<BT_BuildType>Debug</BT_BuildType>
113+
</PropertyGroup>
105114
<PropertyGroup Condition="'$(Cfg_2_Win64)'!=''">
106115
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>
107116
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>

Demo/Projects/D11_0/ModernAppDemo.res

-122 KB
Binary file not shown.

Demo/Projects/D11_0/VCLThemeSelectorLauncher.dproj

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,20 @@
4545
<CfgParent>Base</CfgParent>
4646
<Base>true</Base>
4747
</PropertyGroup>
48+
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win32)'!=''">
49+
<Cfg_2_Win32>true</Cfg_2_Win32>
50+
<CfgParent>Cfg_2</CfgParent>
51+
<Cfg_2>true</Cfg_2>
52+
<Base>true</Base>
53+
</PropertyGroup>
4854
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win64)'!=''">
4955
<Cfg_2_Win64>true</Cfg_2_Win64>
5056
<CfgParent>Cfg_2</CfgParent>
5157
<Cfg_2>true</Cfg_2>
5258
<Base>true</Base>
5359
</PropertyGroup>
5460
<PropertyGroup Condition="'$(Base)'!=''">
55-
<Custom_Styles>&quot;Aqua Light Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AquaLightSlate.vsf&quot;;Copper|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Copper.vsf;CopperDark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CopperDark.vsf;Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;&quot;Iceberg Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\IcebergClassico.vsf&quot;;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;&quot;Slate Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SlateClassico.vsf&quot;;&quot;Tablet Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TabletDark.vsf&quot;;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Blue.vsf&quot;;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 Green|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Green.vsf&quot;;&quot;Windows10 Purple|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Purple.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Dark.vsf&quot;;&quot;Windows11 Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Light.vsf&quot;</Custom_Styles>
61+
<Custom_Styles>&quot;Aqua Light Slate|VCLSTYLE|$(BDSCOMMONDIR)\Styles\AquaLightSlate.vsf&quot;;Copper|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Copper.vsf;CopperDark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\CopperDark.vsf;Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;&quot;Iceberg Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\IcebergClassico.vsf&quot;;Sky|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Sky.vsf;&quot;Slate Classico|VCLSTYLE|$(BDSCOMMONDIR)\Styles\SlateClassico.vsf&quot;;&quot;Tablet Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\TabletDark.vsf&quot;;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;Windows10 Blue|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Blue.vsf&quot;;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;;&quot;Windows10 Green|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Green.vsf&quot;;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf&quot;;&quot;Windows11 Modern Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Dark.vsf&quot;;&quot;Windows11 Modern Light|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows11_Modern_Light.vsf&quot;</Custom_Styles>
5662
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
5763
<SanitizedProjectName>VCLThemeSelectorLauncher</SanitizedProjectName>
5864
<DCC_DcuOutput>.\$(Platform)\$(Config)</DCC_DcuOutput>
@@ -64,8 +70,6 @@
6470
<VerInfo_MajorVer>2</VerInfo_MajorVer>
6571
</PropertyGroup>
6672
<PropertyGroup Condition="'$(Base_Win32)'!=''">
67-
<VerInfo_Locale>1033</VerInfo_Locale>
68-
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
6973
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
7074
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace>
7175
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>
@@ -76,6 +80,7 @@
7680
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;$(DCC_Namespace)</DCC_Namespace>
7781
<BT_BuildType>Debug</BT_BuildType>
7882
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
83+
<Icon_MainIcon>..\Ethea_vela_multires.ico</Icon_MainIcon>
7984
</PropertyGroup>
8085
<PropertyGroup Condition="'$(Cfg_1)'!=''">
8186
<DCC_Define>DEBUG;$(DCC_Define)</DCC_Define>
@@ -87,7 +92,6 @@
8792
</PropertyGroup>
8893
<PropertyGroup Condition="'$(Cfg_1_Win32)'!=''">
8994
<BT_BuildType>Debug</BT_BuildType>
90-
<VerInfo_Locale>1033</VerInfo_Locale>
9195
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>
9296
<DCC_RemoteDebug>false</DCC_RemoteDebug>
9397
</PropertyGroup>
@@ -101,6 +105,10 @@
101105
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
102106
<DCC_DebugInformation>0</DCC_DebugInformation>
103107
</PropertyGroup>
108+
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
109+
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>
110+
<BT_BuildType>Debug</BT_BuildType>
111+
</PropertyGroup>
104112
<PropertyGroup Condition="'$(Cfg_2_Win64)'!=''">
105113
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>
106114
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
@@ -140,6 +148,13 @@
140148
<Excluded_Packages Name="$(BDSBIN)\dcloffice2k280.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages>
141149
<Excluded_Packages Name="$(BDSBIN)\dclofficexp280.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
142150
<Excluded_Packages Name="$(BDSBIN)\HelpCtxD11.bpl">File c:\bds\studio\22.0\bin\HelpCtxD11.bpl not found</Excluded_Packages>
151+
<Excluded_Packages Name="D:\ETHEA\ActiveQueryBuilder\\RadStudio11\acQueryBuilderDsgnD28.bpl">(untitled)</Excluded_Packages>
152+
<Excluded_Packages Name="D:\ETHEA\ActiveQueryBuilder\\RadStudio11\acCriteriaBuilderDsgnD28.bpl">(untitled)</Excluded_Packages>
153+
<Excluded_Packages Name="D:\ETHEA\ActiveQueryBuilder\\RadStudio11\acSqlTextEditorDsgnD28.bpl">(untitled)</Excluded_Packages>
154+
<Excluded_Packages Name="D:\ETHEA\ActiveQueryBuilder\\RadStudio11\AcQueryBuilderDsgnADOD28.bpl">(untitled)</Excluded_Packages>
155+
<Excluded_Packages Name="D:\ETHEA\ActiveQueryBuilder\\RadStudio11\AcQueryBuilderDsgnIBExD28.bpl">(untitled)</Excluded_Packages>
156+
<Excluded_Packages Name="D:\ETHEA\ActiveQueryBuilder\\RadStudio11\AcQueryBuilderDsgnDbExD28.bpl">(untitled)</Excluded_Packages>
157+
<Excluded_Packages Name="D:\ETHEA\ActiveQueryBuilder\\RadStudio11\AcQueryBuilderDsgnFireDACD28.bpl">(untitled)</Excluded_Packages>
143158
</Excluded_Packages>
144159
<Source>
145160
<Source Name="MainSource">VCLThemeSelectorLauncher.dpr</Source>
@@ -158,25 +173,25 @@
158173
<Overwrite>true</Overwrite>
159174
</Platform>
160175
</DeployFile>
161-
<DeployFile LocalName="..\..\Bin\VCLThemeSelectorLauncher.exe" Configuration="Debug" Class="ProjectOutput">
176+
<DeployFile LocalName="..\..\Bin\VCLThemeSelectorLauncher.exe" Configuration="Release" Class="ProjectOutput">
162177
<Platform Name="Win32">
163178
<RemoteName>VCLThemeSelectorLauncher.exe</RemoteName>
164179
<Overwrite>true</Overwrite>
165180
</Platform>
166181
</DeployFile>
167-
<DeployFile LocalName="..\..\Bin\VCLThemeSelectorLauncher.exe" Configuration="Debug" Class="ProjectOutput">
182+
<DeployFile LocalName="..\..\Bin\VCLThemeSelectorLauncher.exe" Configuration="Release" Class="ProjectOutput">
168183
<Platform Name="Win64">
169184
<RemoteName>VCLThemeSelectorLauncher.exe</RemoteName>
170185
<Overwrite>true</Overwrite>
171186
</Platform>
172187
</DeployFile>
173-
<DeployFile LocalName="..\..\Bin\VCLThemeSelectorLauncher.exe" Configuration="Release" Class="ProjectOutput">
188+
<DeployFile LocalName="..\..\Bin\VCLThemeSelectorLauncher.exe" Configuration="Debug" Class="ProjectOutput">
174189
<Platform Name="Win32">
175190
<RemoteName>VCLThemeSelectorLauncher.exe</RemoteName>
176191
<Overwrite>true</Overwrite>
177192
</Platform>
178193
</DeployFile>
179-
<DeployFile LocalName="..\..\Bin\VCLThemeSelectorLauncher.exe" Configuration="Release" Class="ProjectOutput">
194+
<DeployFile LocalName="..\..\Bin\VCLThemeSelectorLauncher.exe" Configuration="Debug" Class="ProjectOutput">
180195
<Platform Name="Win64">
181196
<RemoteName>VCLThemeSelectorLauncher.exe</RemoteName>
182197
<Overwrite>true</Overwrite>
-122 KB
Binary file not shown.

Demo/Source/uSplitView.dfm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object FormMain: TFormMain
22
Left = 0
33
Top = 0
4-
Caption = 'TSplitView'
4+
Caption = 'Modern App Demo'
55
ClientHeight = 669
66
ClientWidth = 1034
77
Color = clBtnFace

Demo/Source/uSplitView.pas

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,11 @@ procedure TFormMain.SetActiveStyleName(const Value: string);
656656
begin
657657
if Value <> '' then
658658
begin
659-
TStyleManager.SetStyle(Value);
659+
try
660+
TStyleManager.SetStyle(Value);
661+
except
662+
WriteAppStyleToReg(COMPANY_NAME, ExtractFileName(Application.ExeName), 'Windows');
663+
end;
660664
WriteAppStyleToReg(COMPANY_NAME, ExtractFileName(Application.ExeName), Value);
661665
FActiveStyleName := Value;
662666
if FActiveStyleName = 'Windows' then

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ License: the CBVCLStylePreview is based on VCLStylePreview (Vcl.Styles.Ext) from
3838

3939
Also included in this repository you can find a full example of an HighDPI - VCL Themed enabled application that uses the VCLThemeSelector to change the Theme. You can run the demo from: Demo\Bin\ModernAppDemo.exe.
4040

41-
### Preview ( Delphi 11.0 and Windows 11 Dark Style)
41+
### Preview ( Delphi 11.0 and Windows 11 Modern Dark Style)
4242
![/Demo/Images/DemoPreviewD11_Dark.jpg](/Demo/Images/DemoPreviewD11_Dark.jpg)
4343

44-
### Preview ( Delphi 11.0 and Windows 11 Light Style)
44+
### Preview ( Delphi 11.0 and Windows 11 Modern Light Style)
4545
![/Demo/Images/DemoPreview_D11_Light.jpg](/Demo/Images/DemoPreview_D11_Light.jpg)
4646

4747
### Demo from 10.1 to 10.3 (with SVGIconsImageList)
@@ -62,6 +62,10 @@ License: this Demo is inspired by TSplitView demo (original software is Copyrigh
6262

6363
## Release Notes ##
6464

65+
19 Oct 2021
66+
- Replaced "Windows11 Light" and "Windows11 Dark" Styles with "Windows11 Modern Light" and "Windows11 Modern Dark"
67+
- Updated demos to use new Windows 11 Styles available from Get-It
68+
6569
16 Oct 2021
6670
- Added New Windows11 Light and Dark Themes to Modern Demo (Delphi 11)
6771
- Added New Windows11 Light and Dark Themes to Launcher (Delphi 11)

Source/FVCLThemeSelector.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface
4040
, Vcl.Controls;
4141

4242
const
43-
VCLThemeSelectorVersion = '1.3.0';
43+
VCLThemeSelectorVersion = '1.3.1';
4444
DEFAULT_MAXROWS = 3;
4545
DEFAULT_MAXCOLUMNS = 4;
4646

@@ -257,8 +257,8 @@ procedure InitDefaultThemesAttributes;
257257
RegisterThemeAttributes('Windows10 Clear Day',ttLight, clWebLightYellow , clWebLightgrey);
258258
RegisterThemeAttributes('Windows10 Malibu' ,ttLight, clWebLightYellow , clWebLightgrey);
259259
RegisterThemeAttributes('Flat UI Light' ,ttLight, clWebLightYellow , clWebLightgrey);
260-
RegisterThemeAttributes('Windows11 Light' ,ttLight, clWebLightYellow , clWebAliceBlue);
261-
RegisterThemeAttributes('Windows11 Dark' ,ttDark, clWebDarkBlue , clWebDarkGray );
260+
RegisterThemeAttributes('Windows11 Modern Light',ttLight, clWebLightYellow , clWebAliceBlue);
261+
RegisterThemeAttributes('Windows11 Modern Dark' ,ttDark, clWebDarkBlue , clWebDarkGray );
262262
//Non High DPI Themes
263263
RegisterThemeAttributes('Amakrits' ,ttDark , clWebDarkSlategray, clDkGray );
264264
RegisterThemeAttributes('Amethyst Kamri' ,ttLight, clWebLightYellow , clWebLightgrey);

0 commit comments

Comments
 (0)