Просмотр исходного кода

Merge branch 'main' into issigkeys

Martijn Laan 4 месяцев назад
Родитель
Сommit
035e62b761
3 измененных файлов с 43 добавлено и 39 удалено
  1. 21 19
      ISHelp/Staging-dark/styles.css
  2. 21 19
      ISHelp/Staging/styles.css
  3. 1 1
      Projects/Src/IDE.MainForm.pas

+ 21 - 19
ISHelp/Staging-dark/styles.css

@@ -1,6 +1,6 @@
 /*
 /*
   Inno Setup
   Inno Setup
-  Copyright (C) 1997-2024 Jordan Russell
+  Copyright (C) 1997-2025 Jordan Russell
   Portions by Martijn Laan
   Portions by Martijn Laan
   For conditions of distribution and use, see LICENSE.TXT.
   For conditions of distribution and use, see LICENSE.TXT.
 
 
@@ -8,20 +8,20 @@
 */
 */
 
 
 BODY {
 BODY {
-	font: small arial, sans-serif;
+	font: calc(14rem/16)/1.5 "Segoe UI", sans-serif;
 	margin: 0;
 	margin: 0;
 	color: #d6d6d6;
 	color: #d6d6d6;
 	background-color: #1f1f1f;
 	background-color: #1f1f1f;
 }
 }
 PRE, TT {
 PRE, TT {
-	font: small "courier new", monospace;
+	font: calc(13rem/16) Consolas, monospace;
 }
 }
 P, H1, H2, H3, H4, H5, BLOCKQUOTE, PRE, FORM, OL, UL, LI, DL, DD, TABLE, .examplebox, DIV.margined {
 P, H1, H2, H3, H4, H5, BLOCKQUOTE, PRE, FORM, OL, UL, LI, DL, DD, TABLE, .examplebox, DIV.margined {
 	/* only the end of paragraphs etc. has a margin */
 	/* only the end of paragraphs etc. has a margin */
 	margin-top: 0;
 	margin-top: 0;
-	margin-bottom: 0.6em;
+	margin-bottom: 1em;
 }
 }
-UL, DD {
+UL, OL, DD {
 	/* specify both of these for firefox compat. */
 	/* specify both of these for firefox compat. */
 	margin-left: 0;
 	margin-left: 0;
 	padding-left: 2em;
 	padding-left: 2em;
@@ -65,7 +65,7 @@ A.highlighted {
 	font-size: 82%;
 	font-size: 82%;
 }
 }
 .heading {
 .heading {
-	margin-top: 0.6em;
+	margin-top: 1em;
 	font-size: 120%;
 	font-size: 120%;
 	font-weight: bold;
 	font-weight: bold;
 }
 }
@@ -94,32 +94,34 @@ LI.compact {
 	padding: 8px;
 	padding: 8px;
 }
 }
 
 
-.examplebox {
+TT, .examplebox {
 	background-color: #403E41;
 	background-color: #403E41;
 	color: #d6d6d6;
 	color: #d6d6d6;
-	padding: 4px;
 	border: 1px solid #716F71;
 	border: 1px solid #716F71;
-	/* on IE6, if the content of the box is wider than the page,
-	   the width of the box is increased. on firefox 1.5, by default
-	   the box width stays the same, and the content is drawn outside
-	   the box. that looks ugly. "overflow: auto" tells it to put a
-	   scroll bar on the box when the content is too wide. (IE6
-	   apparently ignores "overflow: auto", at least here.) */
-	overflow: auto;
+	border-radius: 4px;
+}
+TT {
+	padding: 1px 3px;
+	display: inline-block;
+}
+.examplebox {
+	padding: 6px;
+	overflow-x: auto;
 }
 }
 .exampleheader {
 .exampleheader {
-	font-size: 82%;
+	font-size: calc(12rem/16);
 	font-weight: bold;
 	font-weight: bold;
-	margin-bottom: 0.6em;
+	line-height: normal;
+	margin-bottom: 0.5em;
 }
 }
 
 
 
 
 DT.paramlist {
 DT.paramlist {
-	margin-bottom: 0.6em;
+	margin-bottom: 0.5em;
 }
 }
 DD.paramlist {
 DD.paramlist {
 	/* give a little extra spacing between items */
 	/* give a little extra spacing between items */
-	margin-bottom: 1.2em;
+	margin-bottom: 1.5em;
 }
 }
 
 
 DT.flaglist {
 DT.flaglist {

+ 21 - 19
ISHelp/Staging/styles.css

@@ -1,6 +1,6 @@
 /*
 /*
   Inno Setup
   Inno Setup
-  Copyright (C) 1997-2024 Jordan Russell
+  Copyright (C) 1997-2025 Jordan Russell
   Portions by Martijn Laan
   Portions by Martijn Laan
   For conditions of distribution and use, see LICENSE.TXT.
   For conditions of distribution and use, see LICENSE.TXT.
 
 
@@ -17,20 +17,20 @@
   --dark-tool-background-color: #403E41;
   --dark-tool-background-color: #403E41;
 }
 }
 BODY {
 BODY {
-	font: small arial, sans-serif;
+	font: calc(14rem/16)/1.5 "Segoe UI", sans-serif;
 	margin: 0;
 	margin: 0;
 	color: light-dark(var(--light-color), var(--dark-color));
 	color: light-dark(var(--light-color), var(--dark-color));
 	background-color: light-dark(var(--light-background-color), var(--dark-background-color));
 	background-color: light-dark(var(--light-background-color), var(--dark-background-color));
 }
 }
 PRE, TT {
 PRE, TT {
-	font: small "courier new", monospace;
+	font: calc(13rem/16) Consolas, monospace;
 }
 }
 P, H1, H2, H3, H4, H5, BLOCKQUOTE, PRE, FORM, OL, UL, LI, DL, DD, TABLE, .examplebox, DIV.margined {
 P, H1, H2, H3, H4, H5, BLOCKQUOTE, PRE, FORM, OL, UL, LI, DL, DD, TABLE, .examplebox, DIV.margined {
 	/* only the end of paragraphs etc. has a margin */
 	/* only the end of paragraphs etc. has a margin */
 	margin-top: 0;
 	margin-top: 0;
-	margin-bottom: 0.6em;
+	margin-bottom: 1em;
 }
 }
-UL, DD {
+UL, OL, DD {
 	/* specify both of these for firefox compat. */
 	/* specify both of these for firefox compat. */
 	margin-left: 0;
 	margin-left: 0;
 	padding-left: 2em;
 	padding-left: 2em;
@@ -76,7 +76,7 @@ A.highlighted {
 	font-size: 82%;
 	font-size: 82%;
 }
 }
 .heading {
 .heading {
-	margin-top: 0.6em;
+	margin-top: 1em;
 	font-size: 120%;
 	font-size: 120%;
 	font-weight: bold;
 	font-weight: bold;
 }
 }
@@ -107,35 +107,37 @@ LI.compact {
 	padding: 8px;
 	padding: 8px;
 }
 }
 
 
-.examplebox {
+TT, .examplebox {
 	background-color: #f8f8f8; /* for IE */
 	background-color: #f8f8f8; /* for IE */
 	background-color: light-dark(#f8f8f8, var(--dark-tool-background-color));
 	background-color: light-dark(#f8f8f8, var(--dark-tool-background-color));
 	color: black; /* for IE */
 	color: black; /* for IE */
 	color: light-dark(black, var(--dark-color));
 	color: light-dark(black, var(--dark-color));
-	padding: 4px;
 	border: 1px solid #e0e0e0; /* for IE */
 	border: 1px solid #e0e0e0; /* for IE */
 	border: 1px solid light-dark(#e0e0e0, #716f71);
 	border: 1px solid light-dark(#e0e0e0, #716f71);
-	/* on IE6, if the content of the box is wider than the page,
-	   the width of the box is increased. on firefox 1.5, by default
-	   the box width stays the same, and the content is drawn outside
-	   the box. that looks ugly. "overflow: auto" tells it to put a
-	   scroll bar on the box when the content is too wide. (IE6
-	   apparently ignores "overflow: auto", at least here.) */
-	overflow: auto;
+	border-radius: 4px;
+}
+TT {
+	padding: 1px 3px;
+	display: inline-block;
+}
+.examplebox {
+	padding: 6px;
+	overflow-x: auto;
 }
 }
 .exampleheader {
 .exampleheader {
-	font-size: 82%;
+	font-size: calc(12rem/16);
 	font-weight: bold;
 	font-weight: bold;
-	margin-bottom: 0.6em;
+	line-height: normal;
+	margin-bottom: 0.5em;
 }
 }
 
 
 
 
 DT.paramlist {
 DT.paramlist {
-	margin-bottom: 0.6em;
+	margin-bottom: 0.5em;
 }
 }
 DD.paramlist {
 DD.paramlist {
 	/* give a little extra spacing between items */
 	/* give a little extra spacing between items */
-	margin-bottom: 1.2em;
+	margin-bottom: 1.5em;
 }
 }
 
 
 DT.flaglist {
 DT.flaglist {

+ 1 - 1
Projects/Src/IDE.MainForm.pas

@@ -4886,7 +4886,7 @@ procedure TMainForm.UpdatePreprocMemos;
     const NewCloseButtons: TBoolList);
     const NewCloseButtons: TBoolList);
   begin
   begin
     if FOptions.ShowPreprocessorOutput and (FPreprocessorOutput <> '') and
     if FOptions.ShowPreprocessorOutput and (FPreprocessorOutput <> '') and
-       not SameStr(TrimRight(FMainMemo.Lines.Text), FPreprocessorOutput) then begin
+       (FMainMemo.Lines.Text.TrimRight <> FPreprocessorOutput) then begin
       NewTabs.Add('Preprocessor Output');
       NewTabs.Add('Preprocessor Output');
       NewHints.Add('');
       NewHints.Add('');
       NewCloseButtons.Add(False);
       NewCloseButtons.Add(False);