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/Forms/FormMain.pas

    r162 r164  
    7575    FormContacts: TFormContacts;
    7676    procedure UpdateInterface;
     77    procedure SettingsChanged;
    7778  end;
    7879
     
    137138  try
    138139    SetToolbarHints;
    139     Core.Core.Initialize;
    140     Translator.TranslateComponentRecursive(Self);
    141     ThemeManager.UseTheme(Self);
    142     PersistentForm.Load(Self);
    143140    ScaleDPI.ScaleControl(CoolBar1, Core.Core.ScaleDPI1.DesignDPI);
    144141    CoolBar1.AutosizeBands;
     
    245242end;
    246243
     244procedure TFormMain.SettingsChanged;
     245begin
     246  ThemeManager.UseTheme(Self);
     247  Translator.TranslateComponentRecursive(Self);
     248  FormContacts.ThemeManager.UseTheme(FormContacts);
     249  FormContacts.Translator.TranslateComponentRecursive(FormContacts);
     250end;
     251
    247252end.
    248253
Note: See TracChangeset for help on using the changeset viewer.