@@ -53,6 +53,8 @@ public static class Keys
5353 public const string WindowRect = "window_rect" ;
5454 public const string PauseAnimPlayerOnSeek = "pause_anim_player_on_seek" ;
5555 public const string UseFullscreenAnimPlayback = "use_fullscreen_anim_playback" ;
56+ public const string DateFormat = "date_format" ;
57+ public const string ClockFormat = "clock_format" ;
5658
5759 public const string RenderAxis = "render_axis" ;
5860 public const string RenderMeshes = "render_meshes" ;
@@ -191,6 +193,8 @@ public void Set(T? value) => SetAndSave(value, (v) => {
191193 public readonly SettingWrapper < DateTime > LastUpdateCheck = new SettingWrapper < DateTime > ( Keys . LastUpdateCheck , _lock , DateTime . MinValue ) ;
192194 public readonly SettingWrapper < bool > PauseAnimPlayerOnSeek = new SettingWrapper < bool > ( Keys . PauseAnimPlayerOnSeek , _lock , true ) ;
193195 public readonly SettingWrapper < bool > UseFullscreenAnimPlayback = new SettingWrapper < bool > ( Keys . UseFullscreenAnimPlayback , _lock , false ) ;
196+ public readonly SettingWrapper < int > DateFormat = new SettingWrapper < int > ( Keys . DateFormat , _lock , 0 ) ;
197+ public readonly SettingWrapper < bool > ClockFormat = new SettingWrapper < bool > ( Keys . ClockFormat , _lock , false ) ;
194198
195199 public readonly SettingWrapper < int > PakDisplayModeValue = new SettingWrapper < int > ( Keys . LogToFile , _lock , ( int ) FileDisplayMode . List ) ;
196200 public FileDisplayMode PakDisplayMode { get => ( FileDisplayMode ) PakDisplayModeValue . Get ( ) ; set => PakDisplayModeValue . Set ( ( int ) value ) ; }
@@ -339,6 +343,8 @@ public static void SaveConfigToIni()
339343 ( Keys . QuaternionsAsEuler , instance . ShowQuaternionsAsEuler . value . ToString ( ) , null ) ,
340344 ( Keys . PauseAnimPlayerOnSeek , instance . PauseAnimPlayerOnSeek . value . ToString ( ) , null ) ,
341345 ( Keys . UseFullscreenAnimPlayback , instance . UseFullscreenAnimPlayback . value . ToString ( ) , null ) ,
346+ ( Keys . DateFormat , instance . DateFormat . value . ToString ( ) , null ) ,
347+ ( Keys . ClockFormat , instance . ClockFormat . value . ToString ( ) , null ) ,
342348
343349 ( Keys . RenderAxis , instance . RenderAxis . value . ToString ( ) , null ) ,
344350 ( Keys . RenderMeshes , instance . RenderMeshes . value . ToString ( ) , null ) ,
@@ -452,10 +458,13 @@ private void LoadConfigs(IEnumerable<(string key, string value, string? group)>
452458 if ( int . TryParse ( value , NumberStyles . Integer , CultureInfo . InvariantCulture , out var parsed ) ) UnpackMaxThreads . value = Math . Clamp ( parsed , 1 , 64 ) ;
453459 break ;
454460 case Keys . BackgroundColor :
455- if ( ReeLib . via . Color . TryParse ( value , out var _col ) ) BackgroundColor . value = _col ;
461+ if ( ReeLib . via . Color . TryParse ( value , out var _col ) ) BackgroundColor . value = _col ;
456462 break ;
457463 case Keys . LogLevel :
458- if ( int . TryParse ( value , out var _intvalue ) ) LogLevel . value = _intvalue ;
464+ if ( int . TryParse ( value , out var _intvalue ) ) LogLevel . value = _intvalue ;
465+ break ;
466+ case Keys . DateFormat :
467+ if ( int . TryParse ( value , out _intvalue ) ) DateFormat . value = _intvalue ;
459468 break ;
460469 case Keys . MaxUndoSteps :
461470 if ( int . TryParse ( value , out _intvalue ) ) MaxUndoSteps . value = Math . Max ( _intvalue , 0 ) ;
@@ -478,6 +487,9 @@ private void LoadConfigs(IEnumerable<(string key, string value, string? group)>
478487 case Keys . UseFullscreenAnimPlayback :
479488 UseFullscreenAnimPlayback . value = ReadBool ( value ) ;
480489 break ;
490+ case Keys . ClockFormat :
491+ ClockFormat . value = ReadBool ( value ) ;
492+ break ;
481493 case Keys . RecentFiles :
482494 JsonSettings . RecentFiles . AddRange ( value . Split ( '|' , StringSplitOptions . RemoveEmptyEntries ) ) ;
483495 break ;
0 commit comments