Changeset 243 for trunk/UCore.pas
- Timestamp:
- Sep 21, 2018, 2:09:10 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r233 r243 8 8 Classes, SysUtils, XMLConf, FileUtil, ActnList, Controls, Dialogs, Forms, 9 9 UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator, 10 URegistry, ULastOpenedList, Registry, Menus, UFormClient, UPlayer,10 URegistry, ULastOpenedList, UTheme, Registry, Menus, UFormClient, UPlayer, 11 11 UGameServer, UGameClient, fgl, UServerList; 12 12 … … 42 42 SaveDialog1: TSaveDialog; 43 43 ScaleDPI1: TScaleDPI; 44 ThemeManager1: TThemeManager; 44 45 XMLConfig1: TXMLConfig; 45 46 procedure AAboutExecute(Sender: TObject); … … 185 186 XMLConfig1.Filename := GetAppConfigDir(False) + 'Config.xml'; 186 187 188 ThemeManager1.Theme := ThemeManager1.Themes.FindByName(String(XmlConfig1.GetValue('Theme', 'System'))); 187 189 LastOpenedList1.LoadFromXMLConfig(XMLConfig1, 'RecentFiles'); 188 190 DevelMode := XMLConfig1.GetValue('DevelMode', false); … … 199 201 begin 200 202 XMLConfig1.SetValue('Language', WideString(CoolTranslator1.Language.Code)); 203 XMLConfig1.SetValue('Theme', WideString(ThemeManager1.Theme.Name)); 201 204 LastOpenedList1.SaveToXMLConfig(XMLConfig1, 'RecentFiles'); 202 205 XMLConfig1.SetValue('DevelMode', DevelMode); … … 376 379 Server.SaveConfig(XMLConfig1, 'Server'); 377 380 XMLConfig1.Flush; 381 ThemeManager1.UseTheme(FormMain); 378 382 end; 379 383 finally
Note:
See TracChangeset
for help on using the changeset viewer.