Skip to content

Commit

Permalink
Move Download Settings Button
Browse files Browse the repository at this point in the history
  • Loading branch information
gablm committed Mar 12, 2024
1 parent 2936d26 commit 6d0306d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ internal static async Task<ContentDialogResult> Dialog_DownloadSettings(UIElemen
OffContent = Lang._Misc.Disabled,
OnContent = Lang._Misc.Enabled
};
startAfterInstall.Toggled += (_, _) => currentGameProperty._GameInstall.StartAfterInstall = (bool)startAfterInstall.IsOn;
startAfterInstall.Toggled += (_, _) => currentGameProperty._GameInstall.StartAfterInstall = startAfterInstall.IsOn;

StackPanel panel = new StackPanel()
{
Expand Down
33 changes: 19 additions & 14 deletions CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -864,27 +864,32 @@
FontSize="10"
FontWeight="Bold"
Text="{x:Bind helper:Locale.Lang._Misc.TimeRemainHMSFormatPlaceholder}"/>
<Button
x:Name="ProgressSettingsButton"
Margin="-5,15,-5,0"
CornerRadius="15"
HorizontalAlignment="Center"
PointerEntered="AnimateGameRegSettingIcon_Start"
PointerExited="AnimateGameRegSettingIcon_End"
Shadow="{ThemeResource SharedShadow}"
Click="ProgressSettingsButton_OnClick">
<Button.Content>
<AnimatedIcon x:Name="GameRegionSettingIcon2" Width="20">
</StackPanel>
<Button
x:Name="ProgressSettingsButton"
CornerRadius="15"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
PointerEntered="AnimateGameRegSettingIcon_Start"
PointerExited="AnimateGameRegSettingIcon_End"
Shadow="{ThemeResource SharedShadow}"
Click="ProgressSettingsButton_OnClick">
<Button.Content>
<Grid Margin="-16"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="{ThemeResource GameSettingsBtnBrush}">
<AnimatedIcon x:Name="GameRegionSettingIcon2" Width="20" Margin="11, 16, 11, 16">
<AnimatedIcon.Source>
<animatedvisuals:AnimatedSettingsVisualSource />
</AnimatedIcon.Source>
<AnimatedIcon.FallbackIconSource>
<FontIconSource FontFamily="Segoe MDL2 Assets" Glyph="&#xE70E;" />
</AnimatedIcon.FallbackIconSource>
</AnimatedIcon>
</Button.Content>
</Button>
</StackPanel>
</Grid>
</Button.Content>
</Button>
</Grid>
<StackPanel Grid.Row="2"
Grid.Column="1"
Expand Down

0 comments on commit 6d0306d

Please sign in to comment.