Changeset 164 for trunk/Core.pas


Ignore:
Timestamp:
Jun 30, 2023, 10:51:35 PM (11 months ago)
Author:
chronos
Message:
  • Fixed: Build under Windows.
  • Fixed: Correctly apply theme to contacts form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Core.pas

    r162 r164  
    66  Classes, SysUtils, FileUtil, Controls, ActnList, Forms, Dialogs, ExtCtrls,
    77  LastOpenedList, ApplicationInfo, PersistentForm, ScaleDPI, Common,
    8   Translator, DataFile, VCard, Menus, RegistryEx, Theme,
     8  Translator, DataFile, VCard, Menus, RegistryEx, Theme, FormMain,
    99  Registry, VCardFile;
    1010
     
    8181    ProfilePhotoFileName: string;
    8282    RecentFileRegistryContext: TRegistryContext;
    83     FormMain: TForm;
     83    FormMain: TFormMain;
    8484    procedure FileModified(Sender: TObject);
    8585    function FindFirstNonOption: string;
     
    130130
    131131uses
    132   FormMain, FormSettings, FormFindDuplicity, FormCompare, TestCase, FormNormalize,
     132  FormSettings, FormFindDuplicity, FormCompare, TestCase, FormNormalize,
    133133  FormGenerate, FormError, FormFind, FormSource, TestCases, FormExport, FormEx,
    134134  FormAbout, FormTests;
     
    337337    if ShowModal = mrOK then begin
    338338      SaveData;
    339       //ThemeManager1.UseTheme(FormMain);
    340       //ThemeManager1.UseTheme(FormContacts);
     339      FormMain.SettingsChanged;
    341340    end;
    342341  finally
     
    461460  TFormEx.PersistentForm := PersistentForm1;
    462461
     462  Initialize;
     463
    463464  FormMain := TFormMain.Create(nil);
    464 //  FormMain.Translator.POFilesFolder := 'Languages;Packages/Common/Languages';
    465465  FormMain.Show;
    466466end;
Note: See TracChangeset for help on using the changeset viewer.