Skip to content

Commit

Permalink
misery
Browse files Browse the repository at this point in the history
  • Loading branch information
heftymouse committed Feb 16, 2023
1 parent b661fc4 commit c185c27
Showing 1 changed file with 82 additions and 82 deletions.
164 changes: 82 additions & 82 deletions src/Files.App/Views/SettingsPages/Advanced.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,95 +17,95 @@
<settingsviewmodels:AdvancedViewModel x:Name="ViewModel" />
</Page.DataContext>

<Grid>
<StackPanel
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Spacing="4">
<StackPanel.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition />
</TransitionCollection>
</StackPanel.ChildrenTransitions>
<Grid>
<StackPanel
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Spacing="4">
<StackPanel.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition />
</TransitionCollection>
</StackPanel.ChildrenTransitions>

<!-- Manage Settings -->
<TextBlock
Padding="0,0,0,4"
FontSize="14"
FontWeight="Medium"
Text="{helpers:ResourceString Name=ManageSettings}" />
<!-- Manage Settings -->
<TextBlock
Padding="0,0,0,4"
FontSize="14"
FontWeight="Medium"
Text="{helpers:ResourceString Name=ManageSettings}" />

<!-- Export -->
<local:SettingsBlockControl
Title="{helpers:ResourceString Name=ExportSettings}"
ButtonCommand="{x:Bind ViewModel.ExportSettingsCommand}"
IsClickable="True">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xEDE1;" />
</local:SettingsBlockControl.Icon>
<FontIcon
FontSize="14"
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
Glyph="&#xE2B4;" />
</local:SettingsBlockControl>
<!-- Export -->
<local:SettingsBlockControl
Title="{helpers:ResourceString Name=ExportSettings}"
ButtonCommand="{x:Bind ViewModel.ExportSettingsCommand}"
IsClickable="True">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xEDE1;" />
</local:SettingsBlockControl.Icon>
<FontIcon
FontSize="14"
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
Glyph="&#xE2B4;" />
</local:SettingsBlockControl>

<!-- Import -->
<local:SettingsBlockControl
Title="{helpers:ResourceString Name=ImportSettings}"
ButtonCommand="{x:Bind ViewModel.ImportSettingsCommand}"
IsClickable="True">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xEDE2;" />
</local:SettingsBlockControl.Icon>
<FontIcon
FontSize="14"
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
Glyph="&#xE2B4;" />
</local:SettingsBlockControl>
<!-- Import -->
<local:SettingsBlockControl
Title="{helpers:ResourceString Name=ImportSettings}"
ButtonCommand="{x:Bind ViewModel.ImportSettingsCommand}"
IsClickable="True">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xEDE2;" />
</local:SettingsBlockControl.Icon>
<FontIcon
FontSize="14"
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
Glyph="&#xE2B4;" />
</local:SettingsBlockControl>

<!-- Edit Settings File -->
<local:SettingsBlockControl
Title="{helpers:ResourceString Name=EditSettingsFile}"
ButtonCommand="{x:Bind ViewModel.OpenSettingsJsonCommand}"
IsClickable="True">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xE8DA;" />
</local:SettingsBlockControl.Icon>
<FontIcon
FontSize="14"
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
Glyph="&#xE2B4;" />
</local:SettingsBlockControl>
<!-- Edit Settings File -->
<local:SettingsBlockControl
Title="{helpers:ResourceString Name=EditSettingsFile}"
ButtonCommand="{x:Bind ViewModel.OpenSettingsJsonCommand}"
IsClickable="True">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xE8DA;" />
</local:SettingsBlockControl.Icon>
<FontIcon
FontSize="14"
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
Glyph="&#xE2B4;" />
</local:SettingsBlockControl>


<!-- Default file manager -->
<TextBlock
Padding="0,12,0,4"
FontSize="14"
FontWeight="Medium"
Text="{helpers:ResourceString Name=ExperimentalFeatureFlags}" />
<!-- Default file manager -->
<TextBlock
Padding="0,12,0,4"
FontSize="14"
FontWeight="Medium"
Text="{helpers:ResourceString Name=ExperimentalFeatureFlags}" />

<!-- Replace File Explorer -->
<local:SettingsBlockControl
x:Name="SetAsDefaultSettingsBlockControl"
Title="{helpers:ResourceString Name=SettingsSetAsDefaultFileManager}"
HorizontalAlignment="Stretch"
Description="{helpers:ResourceString Name=SettingsSetAsDefaultFileManagerDescription}"
IsExpanded="True">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xEC50;" />
</local:SettingsBlockControl.Icon>
<ToggleSwitch
AutomationProperties.Name="{helpers:ResourceString Name=SettingsSetAsDefaultFileManager}"
IsOn="{x:Bind ViewModel.IsSetAsDefaultFileManager, Mode=TwoWay}"
Style="{StaticResource RightAlignedToggleSwitchStyle}">
<i:Interaction.Behaviors>
<icore:EventTriggerBehavior EventName="Toggled">
<icore:InvokeCommandAction Command="{x:Bind ViewModel.SetAsDefaultExplorerCommand, Mode=OneWay}" />
</icore:EventTriggerBehavior>
</i:Interaction.Behaviors>
</ToggleSwitch>
</local:SettingsBlockControl>
<!-- Replace File Explorer -->
<local:SettingsBlockControl
x:Name="SetAsDefaultSettingsBlockControl"
Title="{helpers:ResourceString Name=SettingsSetAsDefaultFileManager}"
HorizontalAlignment="Stretch"
Description="{helpers:ResourceString Name=SettingsSetAsDefaultFileManagerDescription}"
IsExpanded="True">
<local:SettingsBlockControl.Icon>
<FontIcon Glyph="&#xEC50;" />
</local:SettingsBlockControl.Icon>
<ToggleSwitch
AutomationProperties.Name="{helpers:ResourceString Name=SettingsSetAsDefaultFileManager}"
IsOn="{x:Bind ViewModel.IsSetAsDefaultFileManager, Mode=TwoWay}"
Style="{StaticResource RightAlignedToggleSwitchStyle}">
<i:Interaction.Behaviors>
<icore:EventTriggerBehavior EventName="Toggled">
<icore:InvokeCommandAction Command="{x:Bind ViewModel.SetAsDefaultExplorerCommand, Mode=OneWay}" />
</icore:EventTriggerBehavior>
</i:Interaction.Behaviors>
</ToggleSwitch>
</local:SettingsBlockControl>

<!-- Replace Open File Dialog -->
<local:SettingsBlockControl
Expand Down

0 comments on commit c185c27

Please sign in to comment.