Changeset 50 for trunk/UCore.pas


Ignore:
Timestamp:
Nov 3, 2019, 12:18:14 PM (5 years ago)
Author:
chronos
Message:
  • Added: Support for dark theme.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r49 r50  
    9090  try
    9191    if FormSettings.ShowModal = mrOk then begin
     92      FormMain.Redraw;
    9293      FormMain.UpdateInterface;
    9394      UpdateInterface;
     
    214215      Translator1.Language := Translator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', ''))
    215216      else Translator1.Language := Translator1.Languages.SearchByCode('');
     217    ThemeManager1.Theme := ThemeManager1.Themes.FindByName(ReadStringWithDefault('Theme', 'System'));
    216218  finally
    217219    Free;
     
    229231      WriteString('LanguageCode', Translator1.Language.Code)
    230232      else DeleteValue('LanguageCode');
     233    WriteString('Theme', ThemeManager1.Theme.Name);
    231234  finally
    232235    Free;
Note: See TracChangeset for help on using the changeset viewer.