mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request - Removing dead experiments code - Refactoring and simplifying OOBE/SCOOBE windowing code - Removing dead assets - Optimizing CmdPal assets to lower res shaving off a few MBs - Scrolling works better on the What's new page - Should be merged after: #44638 <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [X] Closes: #44958 <!-- - [ ] Closes: #yyy (add separate lines for additional resolved issues) --> - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx <!-- Provide a more detailed description of the PR, other things fixed, or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed --------- Co-authored-by: Gordon Lam (SH) <yeelam@microsoft.com>
101 lines
4.3 KiB
XML
101 lines
4.3 KiB
XML
<winuiex:WindowEx
|
|
x:Class="Microsoft.PowerToys.Settings.UI.ScoobeWindow"
|
|
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:local="using:Microsoft.PowerToys.Settings.UI.OOBE.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:winuiex="using:WinUIEx"
|
|
Width="1100"
|
|
Height="700"
|
|
MinWidth="480"
|
|
MinHeight="480"
|
|
Activated="Window_Activated"
|
|
Closed="Window_Closed"
|
|
mc:Ignorable="d">
|
|
<Window.SystemBackdrop>
|
|
<MicaBackdrop />
|
|
</Window.SystemBackdrop>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="48" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<TitleBar
|
|
x:Name="AppTitleBar"
|
|
x:Uid="ScoobeWindow_TitleTxt"
|
|
IsBackButtonVisible="False"
|
|
IsPaneToggleButtonVisible="False"
|
|
PaneToggleRequested="TitleBar_PaneButtonClick">
|
|
<!-- This is a workaround for https://github.com/microsoft/microsoft-ui-xaml/issues/10374, once fixed we should just be using IconSource -->
|
|
<TitleBar.LeftHeader>
|
|
<ImageIcon
|
|
x:Name="TitleBarIcon"
|
|
Height="16"
|
|
Margin="16,0,0,0"
|
|
Source="/Assets/Settings/icon.ico" />
|
|
</TitleBar.LeftHeader>
|
|
</TitleBar>
|
|
<NavigationView
|
|
x:Name="navigationView"
|
|
Grid.Row="1"
|
|
CompactModeThresholdWidth="1007"
|
|
DisplayModeChanged="NavigationView_DisplayModeChanged"
|
|
ExpandedModeThresholdWidth="1007"
|
|
IsBackButtonVisible="Collapsed"
|
|
IsPaneOpen="True"
|
|
IsPaneToggleButtonVisible="False"
|
|
IsSettingsVisible="False"
|
|
Loaded="NavigationView_Loaded"
|
|
OpenPaneLength="186"
|
|
SelectionChanged="NavigationView_SelectionChanged">
|
|
<NavigationView.MenuItemTemplate>
|
|
<DataTemplate x:DataType="local:ScoobeReleaseGroupViewModel">
|
|
<StackPanel
|
|
Margin="0,8,0,8"
|
|
AutomationProperties.Name="{x:Bind DateText}"
|
|
Orientation="Vertical"
|
|
Spacing="4">
|
|
<TextBlock Style="{StaticResource BodyTextBlockStyle}" Text="{x:Bind DateText}" />
|
|
<TextBlock
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{x:Bind VersionText}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</NavigationView.MenuItemTemplate>
|
|
<NavigationView.Content>
|
|
<Grid>
|
|
<ProgressRing
|
|
x:Name="LoadingProgressRing"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
IsIndeterminate="True"
|
|
Visibility="Collapsed" />
|
|
<InfoBar
|
|
x:Name="ErrorInfoBar"
|
|
x:Uid="Oobe_WhatsNew_LoadingError"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
IsClosable="False"
|
|
IsOpen="False"
|
|
Severity="Error">
|
|
<InfoBar.ActionButton>
|
|
<Button
|
|
x:Uid="RetryBtn"
|
|
HorizontalAlignment="Right"
|
|
Click="RetryButton_Click">
|
|
<StackPanel Orientation="Horizontal" Spacing="8">
|
|
<FontIcon FontSize="16" Glyph="" />
|
|
<TextBlock x:Uid="RetryLabel" />
|
|
</StackPanel>
|
|
</Button>
|
|
</InfoBar.ActionButton>
|
|
</InfoBar>
|
|
<Frame x:Name="NavigationFrame" />
|
|
</Grid>
|
|
</NavigationView.Content>
|
|
</NavigationView>
|
|
</Grid>
|
|
</winuiex:WindowEx>
|