Changeset 207 for trunk/Forms/UFormSettings.pas
- Timestamp:
- Sep 20, 2021, 10:16:37 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.pas
r184 r207 81 81 procedure TFormSettings.FormCreate(Sender: TObject); 82 82 begin 83 Core. CoolTranslator1.TranslateComponentRecursive(Self);83 Core.Translator.TranslateComponentRecursive(Self); 84 84 Core.ThemeManager.UseTheme(Self); 85 85 Core.ThemeManager.Themes.LoadToStrings(ComboBoxTheme.Items); 86 Core. CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);86 Core.Translator.LanguageListToStrings(ComboBoxLanguage.Items); 87 87 end; 88 88 89 89 procedure TFormSettings.Load; 90 90 begin 91 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core. CoolTranslator1.Language);91 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Translator.Language); 92 92 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 93 93 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager.Theme); … … 105 105 begin 106 106 if ComboBoxLanguage.ItemIndex <> -1 then 107 Core. CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);107 Core.Translator.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 108 108 if ComboBoxTheme.ItemIndex <> -1 then 109 109 Core.ThemeManager.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]);
Note:
See TracChangeset
for help on using the changeset viewer.