Changeset 149 for trunk/Forms/FormSource.pas
- Timestamp:
- Jun 5, 2023, 8:45:38 PM (18 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormSource.pas
r148 r149 1 unit UFormSource;1 unit FormSource; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ActnList, Menus, 7 StdCtrls, SynEdit, SynHighlighterAny, UVCardHighlighter, Common;7 StdCtrls, SynEdit, SynHighlighterAny, VCardHighlighter, Common; 8 8 9 9 type … … 42 42 end; 43 43 44 var45 FormSource: TFormSource;46 47 44 48 45 implementation … … 51 48 52 49 uses 53 UCore, Theme, VCard;50 Core, Theme, VCard; 54 51 55 52 { TFormSource } … … 57 54 procedure TFormSource.FormClose(Sender: TObject; var CloseAction: TCloseAction); 58 55 begin 59 Core. PersistentForm1.Save(Self);56 Core.Core.PersistentForm1.Save(Self); 60 57 end; 61 58 … … 85 82 I: Integer; 86 83 begin 87 Core. Translator.TranslateComponentRecursive(Self);88 Core. ThemeManager1.UseTheme(Self);84 Core.Core.Translator.TranslateComponentRecursive(Self); 85 Core.Core.ThemeManager1.UseTheme(Self); 89 86 90 87 VCardHighlighter := TSynVCardHighlighter.Create(nil); … … 105 102 procedure TFormSource.FormShow(Sender: TObject); 106 103 begin 107 Core. PersistentForm1.Load(Self);104 Core.Core.PersistentForm1.Load(Self); 108 105 UpdateTheme; 109 106 end; … … 123 120 C: TColor; 124 121 begin 125 if Core. ThemeManager1.Theme.Name = ThemeNameDark then begin122 if Core.Core.ThemeManager1.Theme.Name = ThemeNameDark then begin 126 123 SynEditSource.Color := clBlack; 127 124 VCardHighlighter.IdentAttri.Foreground := clWhite; … … 130 127 VCardHighlighter.PropertyAttri.Foreground := clLightRed; 131 128 end else 132 if Core. ThemeManager1.Theme.Name = ThemeNameLight then begin129 if Core.Core.ThemeManager1.Theme.Name = ThemeNameLight then begin 133 130 SynEditSource.Color := clWhite; 134 131 VCardHighlighter.IdentAttri.Foreground := clBlack;
Note:
See TracChangeset
for help on using the changeset viewer.