Make uninstall process clearer

This commit is contained in:
pizzaboxer 2023-07-15 20:49:58 +01:00
parent 0162dbf3bb
commit 1002199db4
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -12,7 +12,7 @@
<StackPanel Margin="0,0,14,14"> <StackPanel Margin="0,0,14,14">
<TextBlock Text="Configure how Bloxstrap/Roblox is installed." FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" /> <TextBlock Text="Configure how Bloxstrap/Roblox is installed." FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<ui:CardExpander Margin="0,16,0,0"> <ui:CardExpander Margin="0,16,0,0" IsExpanded="True">
<ui:CardExpander.Header> <ui:CardExpander.Header>
<StackPanel> <StackPanel>
<TextBlock FontSize="14" Text="Install Location" /> <TextBlock FontSize="14" Text="Install Location" />
@ -31,22 +31,36 @@
</Grid> </Grid>
</ui:CardExpander> </ui:CardExpander>
<ui:CardAction x:Name="OpenFolderCardAction" Margin="0,8,0,0" Icon="Folder24" Command="{Binding OpenFolderCommand}" IsEnabled="{Binding Source={x:Static models:GlobalViewModel.IsNotFirstRun}, Mode=OneTime}"> <Grid Margin="0,8,0,0">
<StackPanel> <Grid.Style>
<TextBlock FontSize="14" Text="Open Folder"> <Style TargetType="Grid">
<!--this is so fucking stupid the disabled state of the cardaction doesnt change the header text colour--> <Setter Property="Visibility" Value="Collapsed" />
<TextBlock.Style> <Style.Triggers>
<Style> <DataTrigger Binding="{Binding Source={x:Static models:GlobalViewModel.IsNotFirstRun}}" Value="True">
<Style.Triggers> <Setter Property="Visibility" Value="Visible" />
<DataTrigger Binding="{Binding ElementName=OpenFolderCardAction, Path=IsEnabled}" Value="False"> </DataTrigger>
<Setter Property="TextBlock.Foreground" Value="{DynamicResource TextFillColorDisabledBrush}" /> </Style.Triggers>
</DataTrigger> </Style>
</Style.Triggers> </Grid.Style>
</Style>
</TextBlock.Style> <Grid.ColumnDefinitions>
</TextBlock> <ColumnDefinition Width="*" />
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Opens the folder that Bloxstrap is currently installed to." Foreground="{DynamicResource TextFillColorTertiaryBrush}" /> <ColumnDefinition Width="*" />
</StackPanel> </Grid.ColumnDefinitions>
</ui:CardAction>
<ui:CardAction Grid.Column="0" x:Name="OpenFolderCardAction" Margin="0,0,4,0" Icon="Folder24" Command="{Binding OpenFolderCommand}" >
<StackPanel>
<TextBlock FontSize="14" Text="Open Installation Folder" />
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Where Bloxstrap is currently installed to." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
</StackPanel>
</ui:CardAction>
<ui:CardAction Grid.Column="1" Margin="4,0,0,0" Icon="UninstallApp24" Command="models:GlobalViewModel.OpenWebpageCommand" CommandParameter="https://github.com/pizzaboxer/bloxstrap/wiki/Uninstalling-Bloxstrap">
<StackPanel>
<TextBlock FontSize="14" Text="Looking to uninstall?" />
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Here's a guide on how to uninstall Bloxstrap." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
</StackPanel>
</ui:CardAction>
</Grid>
</StackPanel> </StackPanel>
</ui:UiPage> </ui:UiPage>