* create "About" page in settings * add content to About page * Get latest version from GitHub * Add NotificationService to servies * Enable actions on notifications * Get latest version asynchroniously * Handle when latest version is not found and clean code * Remove old UpdateService * Remove old NotificationService * Add icon for about tab * Update About page styling * Make About menu item a footer menu item * Update About page layout Based on suggestions by @felixse * Instatiate temporary navigation item only once This seems to solve display issues when opening the "About" page multiple times where the main navigation list is being rerendered for no apparent reason. * Revert unintended changes * Added shortcut to about page in hamburger menu * Move About page properties to the AboutPageViewModel * Make "loading..." and "Not found" italic to indicate non-default behaviour * move update check back to systemtray * Made IUpdateService async
87 lines
4.2 KiB
XML
87 lines
4.2 KiB
XML
<Page
|
|
x:Class="FluentTerminal.App.Views.SettingsPages.About"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="32" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="1" Margin="24,0,0,24">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Style="{StaticResource TitleTextBlockStyle}"
|
|
Text="About" />
|
|
<CommandBar
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Background="{ThemeResource SystemControlBackgroundAltHighBrush}"
|
|
DefaultLabelPosition="Right">
|
|
<AppBarButton
|
|
Command="{x:Bind ViewModel.CheckForUpdatesCommand}"
|
|
Icon="Sync"
|
|
Label="Check for updates" />
|
|
</CommandBar>
|
|
</Grid>
|
|
<ScrollViewer Grid.Row="2" Margin="24,0,0,0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="0">
|
|
<!-- App Logo -->
|
|
<Image
|
|
MaxWidth="106"
|
|
MaxHeight="106"
|
|
Margin="24,0,24,0"
|
|
HorizontalAlignment="Left"
|
|
Source="/Assets/AppIcons/Square106x106Logo.black.png"
|
|
Stretch="None" />
|
|
|
|
<!-- Current version -->
|
|
<TextBlock Margin="0,24,0,8" Text="Current version" />
|
|
<TextBlock><Run Text="{x:Bind ViewModel.CurrentVersion}" />
|
|
- <Hyperlink NavigateUri="{x:Bind ViewModel.CurrentVersionReleaseNotesURL}">Release notes</Hyperlink></TextBlock>
|
|
|
|
<!-- Latest version -->
|
|
<TextBlock Margin="0,24,0,8" Text="Latest version" />
|
|
<TextBlock Visibility="{x:Bind ViewModel.LatestVersionLoading, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}"><Italic>loading...</Italic></TextBlock>
|
|
<TextBlock Visibility="{x:Bind ViewModel.LatestVersionNotFound, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}"><Italic>Not found</Italic></TextBlock>
|
|
<TextBlock Visibility="{x:Bind ViewModel.LatestVersionFound, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}">
|
|
<Run Text="{x:Bind ViewModel.LatestVersion, Mode=OneWay}" />
|
|
- <Hyperlink NavigateUri="{x:Bind ViewModel.LatestVersionReleaseNotesURL, Mode=OneWay}">
|
|
Release notes
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
|
|
<!-- License -->
|
|
<TextBlock Margin="0,24,0,8" Text="License" />
|
|
<TextBlock><Hyperlink NavigateUri="https://github.com/felixse/FluentTerminal/blob/master/LICENSE">GNU General Public License v3.0</Hyperlink></TextBlock>
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Margin="0,72,0,24"
|
|
VerticalAlignment="Bottom">
|
|
<!-- Created by... -->
|
|
<TextBlock>
|
|
Created by <Italic>felixse</Italic>
|
|
and <Hyperlink NavigateUri="https://github.com/felixse/FluentTerminal/graphs/contributors">contributors</Hyperlink></TextBlock>
|
|
</StackPanel>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Page> |