mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-27 05:15:05 +00:00
ux: layout for SHA and TIME column in HISTORY
page
Some checks failed
Some checks failed
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
1af05b3efa
commit
f022ac24bd
2 changed files with 10 additions and 5 deletions
|
@ -3,6 +3,7 @@
|
|||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Layout;
|
||||
using Avalonia.Threading;
|
||||
|
||||
namespace SourceGit.Views
|
||||
|
@ -51,9 +52,15 @@ namespace SourceGit.Views
|
|||
SetCurrentValue(TextProperty, GetDisplayText());
|
||||
|
||||
if (ShowAsDateTime)
|
||||
{
|
||||
StopTimer();
|
||||
HorizontalAlignment = HorizontalAlignment.Left;
|
||||
}
|
||||
else
|
||||
{
|
||||
StartTimer();
|
||||
HorizontalAlignment = HorizontalAlignment.Center;
|
||||
}
|
||||
}
|
||||
else if (change.Property == DateTimeFormatProperty)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue