Changeset 50 for trunk/Forms
- Timestamp:
- Nov 3, 2019, 12:18:14 PM (5 years ago)
- Location:
- trunk/Forms
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormComputer.pas
r38 r50 217 217 begin 218 218 Core.Translator1.TranslateComponentRecursive(Self); 219 Core.ThemeManager1.UseTheme(Self); 219 220 GameTries1 := TGameTries.Create; 220 221 GameTries2 := TGameTries.Create; -
trunk/Forms/UFormHelp.pas
r29 r50 45 45 begin 46 46 Core.Translator1.TranslateComponentRecursive(Self); 47 Core.ThemeManager1.UseTheme(Self); 47 48 end; 48 49 -
trunk/Forms/UFormHistory.pas
r36 r50 78 78 begin 79 79 Core.Translator1.TranslateComponentRecursive(Self); 80 Core.ThemeManager1.UseTheme(Self); 80 81 Game := TGame.Create; 81 82 end; -
trunk/Forms/UFormMain.pas
r46 r50 98 98 Core.PersistentForm1.RegistryContext := Core.ApplicationInfo1.GetRegistryContext; 99 99 Core.PersistentForm1.Load(Self); 100 Core.ThemeManager1.UseTheme(Self); 100 101 UpdateInterface; 101 102 if Core.Game.Board.GetEmptyTilesCount > Core.Game.Board.Size.X * Core.Game.Board.Size.Y - -
trunk/Forms/UFormNew.pas
r49 r50 49 49 begin 50 50 Core.Translator1.TranslateComponentRecursive(Self); 51 Core.ThemeManager1.UseTheme(Self); 51 52 ComboBoxSkin.Items.Clear; 52 53 for I := Low(SkinText) to High(SkinText) do -
trunk/Forms/UFormSettings.lfm
r33 r50 11 11 OnCreate = FormCreate 12 12 OnShow = FormShow 13 LCLVersion = '2.0. 2.0'13 LCLVersion = '2.0.4.0' 14 14 object Label1: TLabel 15 15 Left = 19 16 Height = 2 616 Height = 25 17 17 Top = 24 18 Width = 1 7218 Width = 158 19 19 Caption = 'Animation duration:' 20 20 ParentColor = False … … 52 52 object ComboBoxLanguage: TComboBox 53 53 Left = 208 54 Height = 4254 Height = 33 55 55 Top = 86 56 56 Width = 230 57 ItemHeight = 057 ItemHeight = 25 58 58 Style = csDropDownList 59 59 TabOrder = 3 … … 61 61 object Label2: TLabel 62 62 Left = 19 63 Height = 2 663 Height = 25 64 64 Top = 94 65 Width = 8 865 Width = 81 66 66 Caption = 'Language:' 67 67 ParentColor = False 68 68 end 69 object ComboBoxTheme: TComboBox 70 Left = 208 71 Height = 33 72 Top = 136 73 Width = 230 74 ItemHeight = 25 75 Style = csDropDownList 76 TabOrder = 4 77 end 78 object Label3: TLabel 79 Left = 19 80 Height = 25 81 Top = 144 82 Width = 57 83 Caption = 'Theme:' 84 ParentColor = False 85 end 69 86 end -
trunk/Forms/UFormSettings.lrj
r19 r50 4 4 {"hash":1339,"name":"tformsettings.buttonok.caption","sourcebytes":[79,75],"value":"OK"}, 5 5 {"hash":77089212,"name":"tformsettings.buttoncancel.caption","sourcebytes":[67,97,110,99,101,108],"value":"Cancel"}, 6 {"hash":82521866,"name":"tformsettings.label2.caption","sourcebytes":[76,97,110,103,117,97,103,101,58],"value":"Language:"} 6 {"hash":82521866,"name":"tformsettings.label2.caption","sourcebytes":[76,97,110,103,117,97,103,101,58],"value":"Language:"}, 7 {"hash":95339402,"name":"tformsettings.label3.caption","sourcebytes":[84,104,101,109,101,58],"value":"Theme:"} 7 8 ]} -
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.