From 5d669df21a756f4381c0e0400917b45992fdb6bd Mon Sep 17 00:00:00 2001 From: Davide Giacometti Date: Wed, 11 Oct 2023 12:34:06 +0200 Subject: [PATCH] [FancyZonesEditor] XamlStyler formatting (#29126) --- .pipelines/applyXamlStyling.ps1 | 2 +- .../editor/FancyZonesEditor/App.xaml | 17 +- .../editor/FancyZonesEditor/CanvasEditor.xaml | 18 +- .../FancyZonesEditor/CanvasEditorWindow.xaml | 132 +- .../editor/FancyZonesEditor/CanvasZone.xaml | 329 +++-- .../ClickAutomationEventButton.xaml | 19 +- .../Controls/CustomSlider.xaml | 10 +- .../editor/FancyZonesEditor/GridEditor.xaml | 43 +- .../FancyZonesEditor/GridEditorWindow.xaml | 99 +- .../editor/FancyZonesEditor/GridResizer.xaml | 67 +- .../editor/FancyZonesEditor/GridZone.xaml | 28 +- .../FancyZonesEditor/LayoutOverlayWindow.xaml | 33 +- .../FancyZonesEditor/LayoutPreview.xaml | 27 +- .../editor/FancyZonesEditor/MainWindow.xaml | 1153 +++++++++-------- .../FancyZonesEditor/Styles/ButtonStyles.xaml | 152 +-- .../Styles/GridViewStyles.xaml | 353 ++--- .../Styles/LayoutPreviewStyles.xaml | 15 +- .../editor/FancyZonesEditor/Themes/Dark.xaml | 17 +- .../Themes/HighContrast1.xaml | 7 +- .../Themes/HighContrast2.xaml | 7 +- .../Themes/HighContrastBlack.xaml | 7 +- .../Themes/HighContrastWhite.xaml | 9 +- .../editor/FancyZonesEditor/Themes/Light.xaml | 17 +- 23 files changed, 1312 insertions(+), 1249 deletions(-) diff --git a/.pipelines/applyXamlStyling.ps1 b/.pipelines/applyXamlStyling.ps1 index 354abf351d..42e235f195 100644 --- a/.pipelines/applyXamlStyling.ps1 +++ b/.pipelines/applyXamlStyling.ps1 @@ -107,7 +107,7 @@ if (-not $Passive) else { Write-Output "Checking all files (passively)" - $files = Get-ChildItem -Path "$PSScriptRoot\..\src\*.xaml" -Recurse | Select-Object -ExpandProperty FullName | Where-Object { $_ -notmatch "(\\obj\\)|(\\bin\\)|(\\x64\\)|(\\launcher\\PowerLauncher\\)|(\\launcher\\Wox.Plugin\\)|(\\colorPicker\\ColorPickerUI\\)|(\\editor\\FancyZonesEditor\\)|(\\settings-ui\\Settings.UI\\)" } + $files = Get-ChildItem -Path "$PSScriptRoot\..\src\*.xaml" -Recurse | Select-Object -ExpandProperty FullName | Where-Object { $_ -notmatch "(\\obj\\)|(\\bin\\)|(\\x64\\)|(\\launcher\\PowerLauncher\\)|(\\launcher\\Wox.Plugin\\)|(\\colorPicker\\ColorPickerUI\\)|(\\settings-ui\\Settings.UI\\)" } if ($files.count -gt 0) { diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml b/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml index 8c9e6461e9..59084b3ed6 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml +++ b/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml @@ -1,10 +1,11 @@ - + @@ -15,7 +16,7 @@ - - - + - - - - - + + + + + - - - - - + + + + + - + - + - - - - + + + + - - - - + + + + - + diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/GridEditorWindow.xaml b/src/modules/fancyzones/editor/FancyZonesEditor/GridEditorWindow.xaml index 0213518bc0..63e440cc19 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/GridEditorWindow.xaml +++ b/src/modules/fancyzones/editor/FancyZonesEditor/GridEditorWindow.xaml @@ -1,86 +1,81 @@ - + + Background="{DynamicResource SecondaryBackgroundBrush}"> + Background="{DynamicResource TitleBarSecondaryForegroundBrush}" + CornerRadius="1.5" /> - - + + - - + - - + - - - + + + - - + - + - - + + - + Data="M45,48H25.5V45H45V25.5H25.5v-3H45V3H25.5V0H48V48ZM22.5,48H3V45H22.5V3H3V0H25.5V48ZM0,48V0H3V48Z" + Foreground="{DynamicResource SecondaryForegroundBrush}" /> + - + - @@ -273,64 +286,70 @@ - - + - + - + - + - + - + - - - - - - - + + + + + - + + + + - - - - - + + - - - + + + - + - + - + - + - - - @@ -739,101 +788,107 @@ - - + + - + - - - + + + - + - - - - + + + + - + - + - - - - - - - - - + + + + + + + + + diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Styles/ButtonStyles.xaml b/src/modules/fancyzones/editor/FancyZonesEditor/Styles/ButtonStyles.xaml index 6fe26fb955..d61638b872 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/Styles/ButtonStyles.xaml +++ b/src/modules/fancyzones/editor/FancyZonesEditor/Styles/ButtonStyles.xaml @@ -1,7 +1,8 @@ - - + + - - - - -