Browse Source

Add Url link open and made text clickable

pull/5/head
Ionite 1 year ago
parent
commit
171452ebb1
No known key found for this signature in database
  1. 18
      StabilityMatrix/FirstLaunchSetupWindow.xaml
  2. 7
      StabilityMatrix/ViewModels/FirstLaunchSetupViewModel.cs

18
StabilityMatrix/FirstLaunchSetupWindow.xaml

@ -83,17 +83,19 @@
<!-- Checkbox -->
<Grid Grid.Row="1" HorizontalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.15*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<CheckBox IsChecked="{Binding EulaAccepted, Mode=TwoWay}" Margin="16,0,0,0" />
<TextBlock
FontSize="13"
<CheckBox
Grid.Column="1"
VerticalAlignment="Center">
<Run>I have read and agree to the</Run>
<Hyperlink NavigateUri="https://lykos.ai/matrix/license">License Agreement.</Hyperlink>
</TextBlock>
HorizontalAlignment="Left"
IsChecked="{Binding EulaAccepted, Mode=TwoWay}"
Margin="16,0,0,0">
<TextBlock FontSize="13" VerticalAlignment="Center">
<Run>I have read and agree to the</Run>
<Hyperlink Command="{Binding OpenLicenseLinkCommand}" NavigateUri="https://lykos.ai/matrix/license">License Agreement.</Hyperlink>
</TextBlock>
</CheckBox>
</Grid>
</Grid>
<!-- Buttons -->

7
StabilityMatrix/ViewModels/FirstLaunchSetupViewModel.cs

@ -2,6 +2,7 @@
using System.Threading.Tasks;
using AsyncAwaitBestPractices;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using StabilityMatrix.Controls;
using StabilityMatrix.Helper;
using StabilityMatrix.Models;
@ -58,5 +59,11 @@ public partial class FirstLaunchSetupViewModel : ObservableObject
CheckHardwareBadge.RefreshCommand.ExecuteAsync(null).SafeFireAndForget();
}
[RelayCommand]
private void OpenLicenseLink()
{
ProcessRunner.OpenUrl("https://lykos.ai/matrix/license");
}
}

Loading…
Cancel
Save