Skip to content

Commit 177e1ba

Browse files
committed
Update Inno Setup Theme Detection And Installer Font
Expand Inno Setup lexer file associations to include `.iss.in` theme templates so they are recognized consistently by the editor and theme importer. Also ensure the language manager preserves that extension when loading lexer definitions. Adjust the Inno Setup installer script to initialize the wizard license memo with a consistent Segoe UI font and size, improving readability of the license text during installation. * Theme importers * Lexer configuration * Installer script **Generated by CodeLite** Signed-off-by: Eran Ifrah <eran@codelite.org>
1 parent cc64d17 commit 177e1ba

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

InnoSetup/codelite64_mingw.iss.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ Type: filesandordirs; Name: "{app}"
7979
Filename: "{app}\bin\codelite.exe"; Description: "Launch CodeLite"; Flags: postinstall nowait skipifsilent
8080

8181
[Code]
82+
procedure InitializeWizard();
83+
begin
84+
// This forces a specific font name and size onto the license box
85+
WizardForm.LicenseMemo.Font.Name := 'Segoe UI';
86+
WizardForm.LicenseMemo.Font.Size := 10;
87+
end;
88+
8289
function IsSilentInstall(): Boolean;
8390
var
8491
j: Integer;

Plugin/ColoursAndFontsManager.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,10 @@ LexerConf::Ptr_t ColoursAndFontsManager::DoAddLexer(JSONItem json)
936936
lexer->SetFileSpec(lexer->GetFileSpec() + ";*.ctp");
937937
}
938938

939+
if (lexer->GetName() == "innosetup" && !lexer->GetFileSpec().Contains(".iss.in")) {
940+
lexer->SetFileSpec(lexer->GetFileSpec() + ";*.iss.in");
941+
}
942+
939943
// Add wxcp file extension to the JavaScript lexer
940944
if (lexer->GetName() == "javascript") {
941945
// remove the JSON file from the JavaScript

Plugin/ThemeImporters/ThemeImporterInnoSetup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ThemeImporterInnoSetup::ThemeImporterInnoSetup()
3939

4040
SetKeywords4(" begin break case const continue do downto else end except finally for function if of procedure "
4141
"repeat then to try until uses var while with ");
42-
SetFileExtensions("*.iss");
42+
SetFileExtensions("*.iss;*.iss.in");
4343
m_langName = "innosetup";
4444
}
4545

0 commit comments

Comments
 (0)