Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Mar 22, 2024
1 parent 8ed4085 commit 0d502fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion samples/AvaloniaApp/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
x:DataType="avaloniaApp:Composition"
DataContext="{StaticResource Composition}"
Title="{Binding ClockViewModel.Time}"
Icon="/Assets/avalonia-logo.ico">
Icon="/Assets/avalonia-logo.ico"
FontFamily="Consolas"
FontWeight="Bold">

<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding ClockViewModel}">
<TextBlock Text="{Binding Date}" FontSize="64" HorizontalAlignment="Center" />
Expand Down
2 changes: 1 addition & 1 deletion samples/Clock/Models/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ namespace Clock.Models;
internal class Log<T>(IClock clock) : ILog<T>
{
public void Info(string message) =>
Debug.WriteLine($"{clock.Now:HH:mm:ss.fff} {typeof(T).Name,-64} {message}");
Debug.WriteLine($"{clock.Now:HH:mm:ss.fff} {typeof(T).Name,-32} {message}");
}
4 changes: 3 additions & 1 deletion samples/WpfAppNetCore/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
DataContext="{StaticResource Composition}"
Title="{Binding ClockViewModel.Time}">
Title="{Binding ClockViewModel.Time}"
FontFamily="Consolas"
FontWeight="Bold">
<StackPanel Name="Clock" Opacity=".4" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{Binding ClockViewModel}">
<TextBlock Text="{Binding Date}" FontSize="64" HorizontalAlignment="Center"/>
<TextBlock Text="{Binding Time}" FontSize="128" HorizontalAlignment="Center"/>
Expand Down

0 comments on commit 0d502fb

Please sign in to comment.