mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-23 08:27:58 +08:00
f41fe145fc
* Awake * Always On Top * ColorPicker * FancyZones * FancyZones * Hosts file editor * ImageResizer * Update ImageResizerPage.xaml * KBM * General * Update MeasureToolPage.xaml * Mouse utils * PowerAccent * Run * PowerOCR * File preview * PowerRename * Shortcut Guide * VCM * XAML styler * Update ShellPage.xaml * XAML formatting and cleanup * Moving converters * Update App.xaml * XAML formatting * XAML formatting * Fixes * XAML formatting * Image resizer updates * Color picker page and margin tweaks * Update PowerLauncherPage.xaml * Tweaks based on Jay's feedback * Resolve conflicts * Add labs source to unit tests * Fix feedback * Fix KBM bug * Infobar fix * Fixes * Resolve conflicts * Add converter
218 lines
13 KiB
XML
218 lines
13 KiB
XML
<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:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
|
AutomationProperties.LandmarkType="Main"
|
|
mc:Ignorable="d">
|
|
|
|
<controls:SettingsPageControl
|
|
x:Uid="FileExplorerPreview"
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerPreview.png">
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
<StackPanel Orientation="Vertical">
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_PreviewPane">
|
|
<InfoBar
|
|
x:Uid="FileExplorerPreview_PreviewHandlerOutlookIncompatibility"
|
|
IsClosable="False"
|
|
IsOpen="True"
|
|
IsTabStop="True"
|
|
Severity="Warning" />
|
|
<labs:SettingsCard
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_SVG"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGRenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.SVGRenderIsEnabled}" />
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGRenderEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGRenderEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
|
|
<labs:SettingsCard
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_MD"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.MDRenderIsEnabled}" />
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
|
|
|
|
<labs:SettingsExpander
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_Monaco"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.MonacoRenderIsEnabled}" />
|
|
<labs:SettingsExpander.Items>
|
|
<labs:SettingsCard
|
|
ContentAlignment="Left"
|
|
IsEnabled="{x:Bind ViewModel.MonacoRenderIsEnabled, Mode=OneWay}">
|
|
<CheckBox
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Monaco_Wrap_Text"
|
|
IsChecked="{x:Bind ViewModel.MonacoWrapText, Mode=TwoWay}" />
|
|
</labs:SettingsCard>
|
|
<labs:SettingsCard
|
|
ContentAlignment="Left"
|
|
IsEnabled="{x:Bind ViewModel.MonacoRenderIsEnabled, Mode=OneWay}">
|
|
<controls:CheckBoxWithDescriptionControl
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Monaco_Try_Format"
|
|
IsChecked="{x:Bind ViewModel.MonacoPreviewTryFormat, Mode=TwoWay}"
|
|
IsEnabled="{x:Bind ViewModel.MonacoRenderIsEnabled, Mode=OneWay}" />
|
|
</labs:SettingsCard>
|
|
</labs:SettingsExpander.Items>
|
|
</labs:SettingsExpander>
|
|
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
|
|
<labs:SettingsCard
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_PDF"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFRenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.PDFRenderIsEnabled}" />
|
|
</labs:SettingsCard>
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFRenderEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFRenderEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
<labs:SettingsCard
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_GCODE"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.GCODERenderIsEnabled}" />
|
|
</labs:SettingsCard>
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
</controls:SettingsGroup>
|
|
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_IconThumbnail_GroupSettings">
|
|
<InfoBar
|
|
x:Uid="FileExplorerPreview_RebootRequired"
|
|
IsClosable="False"
|
|
IsOpen="True"
|
|
IsTabStop="True"
|
|
Severity="Informational" />
|
|
<InfoBar
|
|
x:Uid="FileExplorerPreview_ThumbnailsMightNotAppearOnRemoteFolders"
|
|
IsClosable="False"
|
|
IsOpen="True"
|
|
IsTabStop="True"
|
|
Severity="Warning" />
|
|
<labs:SettingsCard
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_SVG"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGThumbnailEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.SVGThumbnailIsEnabled}" />
|
|
</labs:SettingsCard>
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGThumbnailEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGThumbnailEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
<labs:SettingsCard
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_PDF"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFThumbnailEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.PDFThumbnailIsEnabled}" />
|
|
</labs:SettingsCard>
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFThumbnailEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFThumbnailEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
<labs:SettingsCard
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_GCODE"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.GCODEThumbnailIsEnabled}" />
|
|
</labs:SettingsCard>
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
|
|
|
|
<labs:SettingsExpander
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_STL"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.STLThumbnailIsEnabled}" />
|
|
<labs:SettingsExpander.Items>
|
|
<labs:SettingsCard x:Uid="FileExplorerPreview_Color_Thumbnail_STL">
|
|
<controls:ColorPickerButton
|
|
IsEnabled="{x:Bind ViewModel.STLThumbnailIsEnabled, Mode=OneWay}"
|
|
SelectedColor="{x:Bind Path=ViewModel.STLThumbnailColor, Mode=TwoWay}" />
|
|
</labs:SettingsCard>
|
|
</labs:SettingsExpander.Items>
|
|
</labs:SettingsExpander>
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
</controls:SettingsGroup>
|
|
</StackPanel>
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
<controls:PageLink
|
|
x:Uid="LearnMore_PowerPreview"
|
|
Link="https://aka.ms/PowerToysOverview_FileExplorerAddOns" />
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
<controls:PageLink
|
|
Link="https://blog.aaron-junker.ch"
|
|
Text="Aaron Junker's work on developer file preview" />
|
|
<controls:PageLink
|
|
Link="https://www.pedrolamas.com"
|
|
Text="Pedro Lamas's work on G-Code and STL" />
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
</controls:SettingsPageControl>
|
|
</Page>
|