Update settings pane

This commit is contained in:
Royce551 2022-07-09 17:24:16 -05:00
parent fb038f46bb
commit 6f87c863eb
4 changed files with 60 additions and 75 deletions

1
.gitignore vendored
View file

@ -353,3 +353,4 @@ MigrationBackup/
FRESHMusicPlayer/FRESHMusicPlayer-WPF/Releases FRESHMusicPlayer/FRESHMusicPlayer-WPF/Releases
FRESHMusicPlayer/FRESHMusicPlayer-WPF/ReleasesBackup FRESHMusicPlayer/FRESHMusicPlayer-WPF/ReleasesBackup
FRESHMusicPlayer/FRESHMusicPlayer-WPF/BlueprintReleases FRESHMusicPlayer/FRESHMusicPlayer-WPF/BlueprintReleases
/FRESHMusicPlayer/log.txt

View file

@ -58,7 +58,7 @@ namespace FRESHMusicPlayer.ViewModels
{ {
var stringBuilder = new StringBuilder(); var stringBuilder = new StringBuilder();
stringBuilder.AppendLine(Properties.Resources.Settings_AutoImport_Info); stringBuilder.AppendLine(Properties.Resources.Settings_AutoImport_Info);
if (Config.AutoImportPaths is not null) if (Config is not null)
{ {
foreach (var path in Config.AutoImportPaths) foreach (var path in Config.AutoImportPaths)
stringBuilder.AppendLine(path); stringBuilder.AppendLine(path);

View file

@ -206,14 +206,11 @@
</DockPanel> </DockPanel>
<ContentControl x:Name="AuxPane" DockPanel.Dock="{Binding AuxPaneDock}" Background="{DynamicResource SecondaryColor}" Content="{Binding AuxPaneContent}" Width="300" Margin="0, 0, -300, 0"> <ContentControl x:Name="AuxPane" DockPanel.Dock="{Binding AuxPaneDock}" Background="{DynamicResource SecondaryColor}" Content="{Binding AuxPaneContent}" Width="350" Margin="0, 0, -350, 0">
<ContentControl.Styles> <ContentControl.Styles>
<Style Selector="ContentControl.opened"> <Style Selector="ContentControl.opened">
<Style.Animations> <Style.Animations>
<Animation Duration="0:0:0.1" FillMode="Forward" Easing="ExponentialEaseOut"> <Animation Duration="0:0:0.1" FillMode="Forward" Easing="ExponentialEaseOut">
<!--<KeyFrame Cue="0%">
<Setter Property="Margin" Value="0, 0, -300, 0"/>
</KeyFrame>-->
<KeyFrame Cue="100%"> <KeyFrame Cue="100%">
<Setter Property="Margin" Value="0, 0, 0, 0"/> <Setter Property="Margin" Value="0, 0, 0, 0"/>
</KeyFrame> </KeyFrame>
@ -223,11 +220,8 @@
<Style Selector="ContentControl.closed"> <Style Selector="ContentControl.closed">
<Style.Animations> <Style.Animations>
<Animation Duration="0:0:0.1" FillMode="Forward" Easing="ExponentialEaseIn"> <Animation Duration="0:0:0.1" FillMode="Forward" Easing="ExponentialEaseIn">
<!--<KeyFrame Cue="0%">
<Setter Property="Margin" Value="0, 0, 0, 0"/>
</KeyFrame>-->
<KeyFrame Cue="100%"> <KeyFrame Cue="100%">
<Setter Property="Margin" Value="0, 0, -300, 0"/> <Setter Property="Margin" Value="0, 0, -350, 0"/>
</KeyFrame> </KeyFrame>
</Animation> </Animation>
</Style.Animations> </Style.Animations>

View file

@ -12,10 +12,9 @@
<vm:SettingsViewModel/> <vm:SettingsViewModel/>
</UserControl.DataContext> </UserControl.DataContext>
<TabControl TabStripPlacement="Left" SelectedIndex="0">
<TabItem Header="{x:Static resx:Resources.Settings_General}">
<ScrollViewer> <ScrollViewer>
<StackPanel Margin="10,10,0,0"> <StackPanel Margin="20,10,20,0">
<TextBlock FontWeight="Bold" FontSize="18" HorizontalAlignment="Center" Text="{x:Static resx:Resources.Settings_General}"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
<TextBlock Text="{x:Static resx:Resources.Settings_Language}" Margin="0,0,10,0" VerticalAlignment="Center"/> <TextBlock Text="{x:Static resx:Resources.Settings_Language}" Margin="0,0,10,0" VerticalAlignment="Center"/>
<ComboBox Items="{Binding AvailableLanguages}" SelectedItem="{Binding Language}"> <ComboBox Items="{Binding AvailableLanguages}" SelectedItem="{Binding Language}">
@ -48,21 +47,11 @@
<TextBlock Text="{x:Static resx:Resources.Settings_RestartNeeded}" Foreground="{DynamicResource Green}" IsVisible="{Binding IsRestartNeeded}"/> <TextBlock Text="{x:Static resx:Resources.Settings_RestartNeeded}" Foreground="{DynamicResource Green}" IsVisible="{Binding IsRestartNeeded}"/>
<Button Content="{x:Static resx:Resources.RestartNow}" Foreground="{DynamicResource Green}" Command="{Binding RestartCommand}" IsVisible="{Binding IsRestartNeeded}"/> <Button Content="{x:Static resx:Resources.RestartNow}" Foreground="{DynamicResource Green}" Command="{Binding RestartCommand}" IsVisible="{Binding IsRestartNeeded}"/>
</StackPanel> <TextBlock HorizontalAlignment="Center" FontSize="18" FontWeight="Bold" Text="{x:Static resx:Resources.Settings_Maintenance}"/>
</ScrollViewer>
</TabItem>
<!--<TabItem Header="{x:Static resx:Resources.Settings_Appearance}">
</TabItem>-->
<TabItem Header="{x:Static resx:Resources.Settings_Maintenance}">
<StackPanel>
<Button Content="{x:Static resx:Resources.Settings_Reset}" Command="{Binding ResetSettingsCommand}" Margin="0,10,0,0"/> <Button Content="{x:Static resx:Resources.Settings_Reset}" Command="{Binding ResetSettingsCommand}" Margin="0,10,0,0"/>
<Button Content="{x:Static resx:Resources.Settings_CleanLibrary}" Command="{Binding CleanLibraryCommand}"/> <Button Content="{x:Static resx:Resources.Settings_CleanLibrary}" Command="{Binding CleanLibraryCommand}"/>
<Button Content="{x:Static resx:Resources.Settings_NukeLibrary}" Foreground="{DynamicResource Green}" Command="{Binding NukeLibraryCommand}"/> <Button Content="{x:Static resx:Resources.Settings_NukeLibrary}" Foreground="{DynamicResource Green}" Command="{Binding NukeLibraryCommand}"/>
</StackPanel> <TextBlock HorizontalAlignment="Center" FontSize="18" FontWeight="Bold" Text="{x:Static resx:Resources.Menu_About}"/>
</TabItem>
<TabItem Header="{x:Static resx:Resources.Menu_About}">
<StackPanel Margin="10" HorizontalAlignment="Stretch">
<Image Source="/Assets/fmplogofull.png" Stretch="UniformToFill" Width="300" HorizontalAlignment="Left" Margin="0,0,0,20"/> <Image Source="/Assets/fmplogofull.png" Stretch="UniformToFill" Width="300" HorizontalAlignment="Left" Margin="0,0,0,20"/>
<TextBlock Text="{Binding Version}"/> <TextBlock Text="{Binding Version}"/>
<TextBlock Text="{x:Static resx:Resources.Settings_Credits}"/> <TextBlock Text="{x:Static resx:Resources.Settings_Credits}"/>
@ -75,6 +64,7 @@
<Button Content="{x:Static resx:Resources.Settings_ViewLicense}" Command="{Binding ViewLicenseCommand}"/> <Button Content="{x:Static resx:Resources.Settings_ViewLicense}" Command="{Binding ViewLicenseCommand}"/>
<Button Content="{x:Static resx:Resources.Settings_ViewWebsite}" Command="{Binding ViewWebsiteCommand}"/> <Button Content="{x:Static resx:Resources.Settings_ViewWebsite}" Command="{Binding ViewWebsiteCommand}"/>
</StackPanel> </StackPanel>
</TabItem> </ScrollViewer>
</TabControl>
</UserControl> </UserControl>