Skip to content

Commit 982c113

Browse files
Fixed retrieve for Windows Theme (light or dark)
Version 1.0.1
1 parent 3142381 commit 982c113

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

SVGShellExtensions.dll

0 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.

Setup/SVGShellExtensions.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; Script generated by the Inno Setup Script Wizard.
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33
#define MyAppName 'Delphi SVG Shell Extensions'
4-
#define MyAppVersion GetFileVersion('SVGShellExtensions.dll')
4+
#define MyAppVersion '1.0.1'
55
[Files]
66
Source: ..\SVGShellExtensions.dll; DestDir: {app}; Flags : regserver sharedfile noregerror
77
;Source: UnRegister64Bit.bat; DestDir: {app}

Source/SVGShellExtensions.dproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@
6161
<PropertyGroup Condition="'$(Base)'!=''">
6262
<SanitizedProjectName>SVGShellExtensions</SanitizedProjectName>
6363
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;System.Win;Winapi;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
64-
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
6564
<VerInfo_Locale>1033</VerInfo_Locale>
66-
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions;FileVersion=1.0.0.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions;ProductVersion=1.0.0.0;Comments=;ProgramID=</VerInfo_Keys>
65+
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions;FileVersion=1.0.1.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions;ProductVersion=1.0;Comments=;ProgramID=</VerInfo_Keys>
6766
<Custom_Styles>&quot;Glow|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Glow.vsf;&quot;&quot;Windows10|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10.vsf;&quot;&quot;Windows10 SlateGray|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10SlateGray.vsf;&quot;Windows10 Dark|VCLSTYLE|$(BDSCOMMONDIR)\Styles\Windows10Dark.vsf&quot;</Custom_Styles>
6867
<DCC_UsePackage>rtl;vcl;vclx;vclactnband;xmlrtl;VclSmp;vclimg;svnui;svn;bdertl;TeeUI;TeeDB;Tee;vcldb;dbrtl;vcldbx;vcltouch;dsnap;dsnapcon;vclib;ibxpress;adortl;IndyCore;IndySystem;IndyProtocols;inet;intrawebdb_110_150;Intraweb_110_150;vclie;websnap;webdsnap;inetdb;inetdbbde;inetdbxpress;soaprtl;vclribbon;dbexpress;DbxCommonDriver;DataSnapIndy10ServerTransport;DataSnapProviderClient;DbxClientDriver;DataSnapClient;dbxcds;DataSnapServer;AzureCloud;DBXInterBaseDriver;DBXMySQLDriver;DBXFirebirdDriver;DBXSybaseASEDriver;DBXSybaseASADriver;DBXOracleDriver;DBXMSSQLDriver;DBXInformixDriver;DBXDb2Driver;Hydra_Core_D15;SynEdit_RXE;mbColorLibDXE;JclDeveloperTools;Jcl;JclVcl;JclContainers;JvCore;JvSystem;JvStdCtrls;JvAppFrm;JvBands;JvDB;JvDlgs;JvBDE;JvControls;JvCmp;JvCrypt;JvCustom;JvDocking;JvDotNetCtrls;JvGlobus;JvHMI;JvJans;JvManagedThreads;JvMM;JvNet;JvPageComps;JvPascalInterpreter;JvPluginSystem;JvPrintPreview;JvRuntimeDesign;JvTimeFramework;JvWizards;JvXPCtrls;WinSkinDXE;bsfd2011;IceTabSet;$(DCC_UsePackage)</DCC_UsePackage>
6968
<DCC_DcuOutput>.\$(Config)\$(Platform)</DCC_DcuOutput>
@@ -72,6 +71,8 @@
7271
<DCC_UnitSearchPath>..\Ext\SynEdit\Source;..\Ext\SVGIconImageList\Source;..\Ext\SVGIconImageList\SVG;..\Ext\VCLStyleUtils\Common;..\Ext\VCLStyleUtils\DDetours;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
7372
<DCC_ExeOutput>.\..</DCC_ExeOutput>
7473
<DCC_Define>NO_UEDITOR;$(DCC_Define)</DCC_Define>
74+
<VerInfo_Release>1</VerInfo_Release>
75+
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
7576
</PropertyGroup>
7677
<PropertyGroup Condition="'$(Base_Win32)'!=''">
7778
<Debugger_HostApplication>D:\ETHEA\SVGShellExtensions\Debug\Preview Handlers\PreviewHandler Host\Bin\PreviewHost.exe</Debugger_HostApplication>
@@ -84,7 +85,7 @@
8485
<Manifest_File>(None)</Manifest_File>
8586
<Debugger_HostApplication>D:\ETHEA\SVGShellExtensions\Debug\Preview Handlers\PreviewHandler Host\Bin\PreviewHost.exe</Debugger_HostApplication>
8687
<Debugger_CWD>c:\temp</Debugger_CWD>
87-
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions 64 bit;FileVersion=1.0.0.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions 64 bit;ProductVersion=1.0.0.0;Comments=;ProgramID=</VerInfo_Keys>
88+
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions 64 bit;FileVersion=1.0.1.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions 64 bit;ProductVersion=1.0;Comments=;ProgramID=</VerInfo_Keys>
8889
</PropertyGroup>
8990
<PropertyGroup Condition="'$(Cfg_1)'!=''">
9091
<DCC_MapFile>3</DCC_MapFile>
@@ -106,7 +107,7 @@
106107
<PropertyGroup Condition="'$(Cfg_1_Win64)'!=''">
107108
<DCC_DebugInfoInExe>true</DCC_DebugInfoInExe>
108109
<Debugger_CWD>C:\Windows</Debugger_CWD>
109-
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions 64 bit;FileVersion=1.0.0.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions 64 bit;ProductVersion=1.0.0.0;Comments=;ProgramID=</VerInfo_Keys>
110+
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions 64 bit;FileVersion=1.0.1.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions 64 bit;ProductVersion=1.0.1.0;Comments=;ProgramID=</VerInfo_Keys>
110111
</PropertyGroup>
111112
<PropertyGroup Condition="'$(Cfg_2)'!=''">
112113
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
@@ -116,10 +117,10 @@
116117
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>
117118
<DCC_MapFile>3</DCC_MapFile>
118119
<DCC_LocalDebugSymbols>true</DCC_LocalDebugSymbols>
119-
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions 32 bit;FileVersion=1.0.0.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions 32 bit;ProductVersion=1.0.0.0;Comments=;ProgramID=</VerInfo_Keys>
120+
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions 32 bit;FileVersion=1.0.1.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions 32 bit;ProductVersion=1.0.0.0;Comments=;ProgramID=</VerInfo_Keys>
120121
</PropertyGroup>
121122
<PropertyGroup Condition="'$(Cfg_2_Win64)'!=''">
122-
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions 64 bit;FileVersion=1.0.0.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions 64 bit;ProductVersion=1.0.0.0;Comments=;ProgramID=</VerInfo_Keys>
123+
<VerInfo_Keys>CompanyName=Ethea S.r.l.;FileDescription=SVG Shell Extensions 64 bit;FileVersion=1.0.1.0;InternalName=;LegalCopyright=Copyright © 2021 Ethea S.r.l.;LegalTrademarks=;OriginalFilename=;ProductName=SVG Shell Extensions 64 bit;ProductVersion=1.0;Comments=;ProgramID=</VerInfo_Keys>
123124
</PropertyGroup>
124125
<ItemGroup>
125126
<DelphiCompile Include="$(MainSource)">

Source/SVGShellExtensions.res

-8 Bytes
Binary file not shown.

Source/uRegistry.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function IsWindowsAppThemeLight: Boolean;
142142
Result := Reg.OpenKeyReadOnly('SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize');
143143
if Result then
144144
begin
145-
if Reg.KeyExists('AppsUseLightTheme') then
145+
if Reg.ValueExists('AppsUseLightTheme') then
146146
LIsLight := Reg.ReadInteger('AppsUseLightTheme');
147147
end;
148148
finally

0 commit comments

Comments
 (0)