Fix color and newline handling

This commit is contained in:
2024-10-17 20:50:57 -04:00
parent 7c196787c9
commit 5849525029
4 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ internal class WindowSource1 : IWindowSource, IDisposable
private void HandleTimerElapsed(object sender, ElapsedEventArgs e)
{
_dispatcher.InvokeAsync(() => _floatingStatusWindow.SetText(DateTime.Now.ToString(CultureInfo.InvariantCulture)));
_dispatcher.InvokeAsync(() => _floatingStatusWindow.SetText($"<font color='green'>{DateTime.Now.ToString(CultureInfo.InvariantCulture)}</font><br/><font color='red'>{DateTime.Now.ToString(CultureInfo.InvariantCulture)}</font>"));
}
public void Dispose()