Changeset 50 for trunk/Forms/UFormSettings.pas
- Timestamp:
- Nov 3, 2019, 12:18:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.pas
r36 r50 7 7 uses 8 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ComCtrls, 9 ULanguages ;9 ULanguages, UTheme; 10 10 11 11 type … … 17 17 ButtonCancel: TButton; 18 18 ComboBoxLanguage: TComboBox; 19 ComboBoxTheme: TComboBox; 19 20 Label1: TLabel; 20 21 Label2: TLabel; 22 Label3: TLabel; 21 23 TrackBar1: TTrackBar; 22 24 procedure ButtonCancelClick(Sender: TObject); … … 62 64 Core.Translator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 63 65 end; 66 if ComboBoxTheme.ItemIndex <> -1 then 67 Core.ThemeManager1.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]); 64 68 ModalResult := mrOk; 65 69 end; … … 75 79 Core.Translator1.TranslateComponentRecursive(Self); 76 80 Core.Translator1.LanguageListToStrings(ComboBoxLanguage.Items); 81 Core.ThemeManager1.UseTheme(Self); 82 Core.ThemeManager1.Themes.LoadToStrings(ComboBoxTheme.Items); 77 83 end; 78 84 … … 83 89 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Translator1.Language); 84 90 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 91 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager1.Theme); 92 if ComboBoxTheme.ItemIndex = -1 then ComboBoxTheme.ItemIndex := 0; 85 93 end; 86 94
Note:
See TracChangeset
for help on using the changeset viewer.