Skip to content

Commit f3f2597

Browse files
committed
Updated About window layout
1 parent 3b35090 commit f3f2597

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

SerialDiskTests/SerialDiskTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>
20-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
21-
<PackageReference Include="NunitXml.TestLogger" Version="3.0.117" />
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
21+
<PackageReference Include="NunitXml.TestLogger" Version="3.0.127" />
2222
</ItemGroup>
2323

2424
<ItemGroup>

SerialDiskUI/Views/AboutWindow.axaml

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5-
xmlns:vm="using:Z80andrew.SerialDisk.SerialDiskUI.ViewModels"
5+
xmlns:vm="using:Z80andrew.SerialDisk.SerialDiskUI.ViewModels"
66
x:Class="Z80andrew.SerialDisk.SerialDiskUI.Views.AboutWindow"
77
mc:Ignorable="d"
88
Width="370"
@@ -11,7 +11,7 @@
1111
CanResize="False"
1212
Icon="/Assets/Icons/info.ico"
1313
WindowStartupLocation="CenterOwner">
14-
14+
1515
<Window.Styles>
1616
<StyleInclude Source="/Assets/Styles/DefaultStyle.axaml" />
1717

@@ -27,13 +27,23 @@
2727
<Setter Property="TextBlock.Foreground" Value="Black"/>
2828
</Style>
2929

30-
<Style Selector="TabControl">
30+
<Style Selector="TabControl.AboutTabs">
3131
<Setter Property="TabControl.ItemsPanel">
3232
<ItemsPanelTemplate>
3333
<UniformGrid Rows="1" HorizontalAlignment="Center" Height="5" Margin="0,13,0,20"/>
3434
</ItemsPanelTemplate>
3535
</Setter>
3636
</Style>
37+
38+
<Style Selector="TabItem.AboutTab">
39+
<Setter Property="FontSize" Value="16"/>
40+
<Setter Property="HorizontalAlignment" Value="Center"/>
41+
<Setter Property="Padding" Value="12,5,12,5"/>
42+
</Style>
43+
44+
<Style Selector="TabItem.AboutTab.Panel">
45+
<Setter Property="Background" Value="Green"/>
46+
</Style>
3747
</Window.Styles>
3848

3949
<Design.DataContext>
@@ -49,27 +59,28 @@
4959
<Border Classes="SectionContainer" DockPanel.Dock="Top">
5060
<DockPanel HorizontalAlignment="Center">
5161
<Border BorderBrush="White" DockPanel.Dock="Top">
52-
<DockPanel DockPanel.Dock="Top" Background="White">
53-
<Viewbox DockPanel.Dock="Top" StretchDirection="DownOnly" Stretch="Uniform">
54-
<TextBlock FontFamily="/Assets/Fonts/AtariST8x16SystemFont.ttf#"
55-
Text="
62+
<DockPanel DockPanel.Dock="Top" Background="White">
63+
<Viewbox DockPanel.Dock="Top" StretchDirection="DownOnly" Stretch="Uniform">
64+
<TextBlock FontFamily="/Assets/Fonts/AtariST8x16SystemFont.ttf#"
65+
Text="
5666
_____ _ ______ _ __&#10;
5767
/ ___/___ _____(_)___ / / __ \(_)____/ /__&#10;
5868
o o o o o \__ \/ _ \/ ___/ / __ `/ / / / / / ___/ //_/&#10;
5969
o o o o ___/ / __/ / / / /_/ / / /_/ / (__ ) ,&lt;&#10;
60-
/____/\___/_/ /_/\____/_/_____/_/____/_/|_|">&#10;
70+
/____/\___/_/ /_/\____/_/_____/_/____/_/|_|">
71+
&#10;
6172
</TextBlock>
6273
</Viewbox>
63-
<TextBlock DockPanel.Dock="Right" HorizontalAlignment="Right" VerticalAlignment="Bottom"
64-
Margin="0,0,10,0" Text="{Binding VersionNote}"></TextBlock>
65-
</DockPanel>
74+
<TextBlock DockPanel.Dock="Right" HorizontalAlignment="Right" VerticalAlignment="Bottom"
75+
Margin="0,0,10,0" Text="{Binding VersionNote}"></TextBlock>
76+
</DockPanel>
6677
</Border>
6778

6879
<DockPanel LastChildFill="False" DockPanel.Dock="Top" Height="150">
6980

70-
<TabControl DockPanel.Dock="Top">
71-
<TabItem Header="About" FontSize="15" BorderThickness="4" HorizontalContentAlignment="Center">
72-
<DockPanel DockPanel.Dock="Top" Margin="0,0,0,10">
81+
<TabControl Classes="AboutTabs" DockPanel.Dock="Top">
82+
<TabItem Header="About" Classes="AboutTab">
83+
<DockPanel DockPanel.Dock="Top">
7384
<TextBlock Margin="10,0,10,10" DockPanel.Dock="Top" HorizontalAlignment="Center">by z80andrew</TextBlock>
7485
<Button Classes="URL" Background="Transparent" Foreground="Blue" DockPanel.Dock="Top"
7586
HorizontalAlignment="Center" Command="{Binding ShowWebsiteCommand}" Content="{Binding WebsiteButtonText}" ></Button>
@@ -78,7 +89,7 @@ o o o o o \__ \/ _ \/ ___/ / __ `/ / / / / / ___/ //_/&#10;
7889
HorizontalAlignment="Center" VerticalContentAlignment="Center" Command="{Binding ShowLatestVersionWebpageCommand}" Content="{Binding NewVersionCheckLabelText}" />
7990
</DockPanel>
8091
</TabItem>
81-
<TabItem Header="Credits" FontSize="15" BorderThickness="4" HorizontalContentAlignment="Center">
92+
<TabItem Header="Credits" Classes="AboutTab">
8293
<ScrollViewer Margin="0,0,0,10" AllowAutoHide="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
8394
<DataGrid Margin="10,0,10,0" IsReadOnly="True" HeadersVisibility="None" AutoGenerateColumns="True" AlternatingRowBackground="LightGray" Items="{Binding Credits}">
8495
</DataGrid>
@@ -91,8 +102,8 @@ o o o o o \__ \/ _ \/ ___/ / __ `/ / / / / / ___/ //_/&#10;
91102
<DockPanel DockPanel.Dock="Bottom">
92103
<Button Margin="0,0,0,10" DockPanel.Dock="Bottom" HorizontalAlignment="Center" Command="{Binding CloseAboutCommand}">Close</Button>
93104
</DockPanel>
94-
105+
95106
</DockPanel>
96107
</Border>
97-
</DockPanel>
108+
</DockPanel>
98109
</Window>

0 commit comments

Comments
 (0)