Changeset 174 for trunk/UCore.pas
- Timestamp:
- Feb 14, 2018, 10:39:55 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r151 r174 8 8 Classes, SysUtils, FileUtil, UAcronym, UCoolTranslator, UPersistentForm, 9 9 UJobProgressView, UScaleDPI, Forms, Controls, ExtCtrls, Menus, LazFileUtils, 10 URegistry, UApplicationInfo, Registry ;10 URegistry, UApplicationInfo, Registry, UTheme; 11 11 12 12 type … … 47 47 InitializeStarted: Boolean; 48 48 InitializeFinished: Boolean; 49 ThemeManager: TThemeManager; 49 50 procedure Initialize; 50 51 procedure LoadConfig; … … 78 79 InitializeFinished := False; 79 80 StoredDimension := TControlDimension.Create; 81 ThemeManager := TThemeManager.Create(nil); 80 82 end; 81 83 82 84 procedure TCore.DataModuleDestroy(Sender: TObject); 83 85 begin 86 FreeAndNil(ThemeManager); 84 87 FreeAndNil(StoredDimension); 85 88 FreeAndNil(AcronymDb); … … 178 181 StartMinimizedToTray := ReadBoolWithDefault('StartMinimizedToTray', False); 179 182 ReopenLastFileOnStart := ReadBoolWithDefault('ReopenLastFileOnStart', True); 183 ThemeManager.Theme := ThemeManager.Themes.FindByName(ReadStringWithDefault('Theme', 'System')); 180 184 finally 181 185 Free; … … 200 204 WriteBool('StartMinimizedToTray', StartMinimizedToTray); 201 205 WriteBool('ReopenLastFileOnStart', ReopenLastFileOnStart); 206 WriteString('Theme', ThemeManager.Theme.Name); 202 207 finally 203 208 Free;
Note:
See TracChangeset
for help on using the changeset viewer.