From 226bc434f5fd75f4c82f7ed11c9b9a3d04db3663 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 28 Apr 2025 16:53:51 +0800 Subject: [PATCH] ux: make log window resizable (#1253) Signed-off-by: leo --- src/ViewModels/CommandLog.cs | 7 +------ src/Views/ViewLogs.axaml | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/ViewModels/CommandLog.cs b/src/ViewModels/CommandLog.cs index 4286b93f..15f48e70 100644 --- a/src/ViewModels/CommandLog.cs +++ b/src/ViewModels/CommandLog.cs @@ -13,16 +13,11 @@ namespace SourceGit.ViewModels private set; } = string.Empty; - public DateTime Time + public DateTime StartTime { get; } = DateTime.Now; - public string TimeStr - { - get => Time.ToString("T"); - } - public bool IsComplete { get; diff --git a/src/Views/ViewLogs.axaml b/src/Views/ViewLogs.axaml index ccdd1f4d..ed66f9a9 100644 --- a/src/Views/ViewLogs.axaml +++ b/src/Views/ViewLogs.axaml @@ -12,7 +12,7 @@ Title="{DynamicResource Text.ViewLogs}" Icon="/App.ico" Width="800" Height="500" - CanResize="False" + CanResize="True" WindowStartupLocation="CenterOwner"> @@ -38,7 +38,13 @@ - + + + + + + + @@ -103,6 +109,12 @@ Fill="{DynamicResource Brush.FG2}" IsVisible="{Binding Logs.Count, Converter={x:Static c:IntConverters.IsZero}}"/> + +