mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
* [MeasureTool] initial commit * [chore] clean up needless WindowsTargetPlatformVersion overrides from projects * [MeasureTool] initial implementation * Fix build errors * Update vsconfig for needed Windows 10 SDK versions * fix spellchecker * another spellcheck fix * more spellcheck errors * Fix measurement being off by 1 on both ends * UI fixes * Add feet to crosses * Remove anti-aliasing, as it's creating artifacts * Use pixel tolerance from settings * Tooltip updates * Restore antialiasing to draw the tooltip * remove comment for spell check * Updated icons * Icon updates * Improve measurement accuracy and display * Fix spellchecker * Add less precise drawing on continuous warning * Add setting for turning cross feet on * Swap LMB/RMB for interaction * Uncheck active tool's RadioButton when it exits * activation hotkey toggles UI instead of just launching it * track runner process and exit when it exits * add proj ref * toolbar is interactive during measurements * always open toolbar on the main display * refactor colors * refactor edge detection & overlay ui * refactor overlay ui even more * simplify state structs * multimonitor preparation: eliminate global state * prepare for merge * spelling * proper thread termination + minor fixes * multimonitor: launch tools on all monitors * multimonitor support: track cursor position * spell * fix powertoys! * ScreenSize -> Box * add shadow effect for textbox * spell * fix debug mode * dynamic text box size based on text layout metrics * add mouse wheel to adjust pixel tolerance + per channel detection algorithm setting * spelling * fix per channel distance calculations * update installer deps + spelling * tool activation telemetry * update assets and try to fix build * use × instead of x * allow multiple measurements with bounds tool with shift-click * move #define DEBUG_OVERLAY in an appropriate space * spell-checked * update issue template + refactor text box drawing * implement custom renderer and make × semiopaque * spelling * pass dpiScale to x renderer * add sse2neon license * update OOBE * move license to NOTICE * appropriate module preview image * localization for AutomationPeer * increase default pixel tolerance from 5 to 30 * add PowerToys.MeasureToolUI.exe to bugreport * explicitly set texture dims * clarify continuous capture description * fix a real spelling error! * cleanup * clean up x2 * debug texture * fix texture access * fix saveasbitmap * improve sum of all channel diffs method score calc * optimize * ContinuousCapture is enabled by default to avoid confusion * build fix * draw captured screen in a non continuous mode * cast a spell... * merge fix * disable stroboscopic effect * split global/perScreen measure state and minor improvements * spelling * fix comment * primary monitor debug also active for the bounds tool * dpi from rt for custom renderer * add comment * fix off by 1 * make backround convertion success for non continuous mode non-essential * fix spelling * overlay window covers taskbar * fix CI * revert taskbar covering * fix CI * fix ci again * fix 2 * fix ci * CI fix * fix arm ci * cleanup cursor convertion between coordinate spaces * fix spelling * Fix signing * Fix MeasureToolUI version * Fix core version * fix race condition in system internals which happens during concurrent d3d/d2d resource creation Co-authored-by: Jaime Bernardo <jaime@janeasystems.com> Co-authored-by: Niels Laute <niels.laute@live.nl>
171 lines
9.7 KiB
XML
171 lines
9.7 KiB
XML
<UserControl
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.ShellPage"
|
|
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:helpers="using:Microsoft.PowerToys.Settings.UI.Helpers"
|
|
xmlns:i="using:Microsoft.Xaml.Interactivity"
|
|
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
|
xmlns:views="using:Microsoft.PowerToys.Settings.UI.Views"
|
|
HighContrastAdjustment="None"
|
|
mc:Ignorable="d">
|
|
<!--
|
|
TODO(stefan): Bring back Should be available in v1.1
|
|
BackdropMaterial.ApplyToRootOrPageBackground="True"
|
|
-->
|
|
|
|
<i:Interaction.Behaviors>
|
|
<ic:EventTriggerBehavior EventName="Loaded">
|
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.LoadedCommand}" />
|
|
</ic:EventTriggerBehavior>
|
|
</i:Interaction.Behaviors>
|
|
|
|
<Grid x:Name="RootGrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
|
|
<muxc:NavigationView
|
|
x:Name="navigationView"
|
|
CompactModeThresholdWidth="1007"
|
|
ExpandedModeThresholdWidth="1007"
|
|
IsBackButtonVisible="Collapsed"
|
|
IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}"
|
|
IsSettingsVisible="False"
|
|
IsTitleBarAutoPaddingEnabled="False"
|
|
PaneClosed="NavigationView_PaneClosed"
|
|
PaneOpened="NavigationView_PaneOpened"
|
|
SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}">
|
|
<muxc:NavigationView.Resources>
|
|
<SolidColorBrush x:Key="NavigationViewContentBackground" Color="Transparent" />
|
|
<SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="Transparent" />
|
|
|
|
</muxc:NavigationView.Resources>
|
|
<muxc:NavigationView.MenuItems>
|
|
<muxc:NavigationViewItem x:Uid="Shell_General" helpers:NavHelper.NavigateTo="views:GeneralPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsSettings.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_AlwaysOnTop" helpers:NavHelper.NavigateTo="views:AlwaysOnTopPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsAlwaysOnTop.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_Awake" helpers:NavHelper.NavigateTo="views:AwakePage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsAwake.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_ColorPicker" helpers:NavHelper.NavigateTo="views:ColorPickerPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsColorPicker.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_FancyZones" helpers:NavHelper.NavigateTo="views:FancyZonesPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsFancyZones.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_PowerPreview" helpers:NavHelper.NavigateTo="views:PowerPreviewPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsFileExplorerPreview.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_ImageResizer" helpers:NavHelper.NavigateTo="views:ImageResizerPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsImageResizer.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_KeyboardManager" helpers:NavHelper.NavigateTo="views:KeyboardManagerPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsKeyboardManager.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_MouseUtilities" helpers:NavHelper.NavigateTo="views:MouseUtilsPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsMouseUtils.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_PowerAccent"
|
|
helpers:NavHelper.NavigateTo="views:PowerAccentPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsPowerAccent.png"
|
|
ShowAsMonochrome="False" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_PowerRename" helpers:NavHelper.NavigateTo="views:PowerRenamePage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsPowerRename.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_PowerOcr"
|
|
helpers:NavHelper.NavigateTo="views:PowerOcrPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsPowerOcr.png"
|
|
ShowAsMonochrome="False" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Shell_PowerLauncher" helpers:NavHelper.NavigateTo="views:PowerLauncherPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsPowerToysRun.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
<muxc:NavigationViewItem x:Uid="Shell_MeasureTool" helpers:NavHelper.NavigateTo="views:MeasureToolPage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsScreenRuler.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
<muxc:NavigationViewItem x:Uid="Shell_ShortcutGuide" helpers:NavHelper.NavigateTo="views:ShortcutGuidePage">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsShortcutGuide.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem
|
|
x:Uid="Shell_VideoConference"
|
|
helpers:NavHelper.NavigateTo="views:VideoConferencePage"
|
|
IsEnabled="{x:Bind ViewModel.IsVideoConferenceBuild, Mode=OneWay}">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<BitmapIcon ShowAsMonochrome="False" UriSource="ms-appx:///Assets/FluentIcons/FluentIconsVideoConferenceMute.png" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
|
|
|
|
</muxc:NavigationView.MenuItems>
|
|
<muxc:NavigationView.PaneFooter>
|
|
<StackPanel Orientation="Vertical">
|
|
<muxc:NavigationViewItem x:Uid="OOBE_NavViewItem" Tapped="OOBEItem_Tapped">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
<muxc:NavigationViewItem x:Uid="Feedback_NavViewItem" Tapped="FeedbackItem_Tapped">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
</StackPanel>
|
|
</muxc:NavigationView.PaneFooter>
|
|
<i:Interaction.Behaviors>
|
|
<ic:EventTriggerBehavior EventName="ItemInvoked">
|
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.ItemInvokedCommand}" />
|
|
</ic:EventTriggerBehavior>
|
|
</i:Interaction.Behaviors>
|
|
<Frame x:Name="shellFrame" />
|
|
</muxc:NavigationView>
|
|
</Grid>
|
|
</UserControl>
|