Setting v2: added power preview settings (#1702)

* added power preview settings

* Added link to module oververview

* create settings file if one is not found

* removed run oon start up speficic callback

* Update src/core/Microsoft.PowerToys.Settings.UI.Lib/ModuleSettings.cs

Co-Authored-By: Andrey Nekrasov <yuyoyuppe@users.noreply.github.com>

* fixed merge conflicts

Co-authored-by: Andrey Nekrasov <yuyoyuppe@users.noreply.github.com>
This commit is contained in:
Lavius Motileng
2020-03-30 02:02:25 -07:00
parent a84be2ba60
commit f1951d0d5f
14 changed files with 423 additions and 132 deletions

View File

@@ -0,0 +1,27 @@
<Page
x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerPreviewPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<StackPanel Orientation="Vertical">
<TextBlock Text="These settings allow you to manage your Windows File Explorer Addons."
TextWrapping="Wrap"/>
<ToggleSwitch Header="Svg Preview Handler"
x:Name="ToggleSwitch_Preview_SVG"
Margin="{StaticResource SmallTopMargin}"
Toggled="ToggleSwitch_Preview_SVG_Toggled" />
<ToggleSwitch Header="Markdown Preview Handler"
x:Name="ToggleSwitch_Preview_MD"
Margin="{StaticResource SmallTopMargin}"
Toggled="ToggleSwitch_Preview_MD_Toggled" />
</StackPanel>
</Grid>
</Page>