mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
Apply xaml styling + add conditional for pruning bug in VS2026
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
<NuGetAuditMode>direct</NuGetAuditMode>
|
||||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> <!-- Don't add source revision hash to the product version of binaries. -->
|
||||
<PlatformTarget>$(Platform)</PlatformTarget>
|
||||
<RestoreEnablePackagePruning Condition=" '$(VisualStudioVersion)' == '17.0'">false </RestoreEnablePackagePruning>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
|
||||
|
||||
@@ -44,39 +44,31 @@
|
||||
</ToggleButton.Content>
|
||||
</ToggleButton>
|
||||
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="8">
|
||||
<TextBlock Text="{x:Bind helper:ResourceLoaderInstance.GetString('ProgramsPage_ExampleHeader')}"/>
|
||||
<TextBox
|
||||
x:Name="ProgramPathInput"/>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<TextBlock Text="{x:Bind helper:ResourceLoaderInstance.GetString('ProgramsPage_ExampleHeader')}" />
|
||||
<TextBox x:Name="ProgramPathInput" />
|
||||
<Button
|
||||
x:Name="ProgramPathSelectButton"
|
||||
Content="Select Program"
|
||||
Click="ProgramPathSelectButton_Click"/>
|
||||
Click="ProgramPathSelectButton_Click"
|
||||
Content="Select Program" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="8">
|
||||
<TextBlock Text="{x:Bind helper:ResourceLoaderInstance.GetString('ProgramsPage_Arguments')}"/>
|
||||
<TextBox
|
||||
x:Name="ProgramArgsInput"/>
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<TextBlock Text="{x:Bind helper:ResourceLoaderInstance.GetString('ProgramsPage_Arguments')}" />
|
||||
<TextBox x:Name="ProgramArgsInput" />
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel
|
||||
Orientation="Horizontal"
|
||||
Spacing="8">
|
||||
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<TextBlock>
|
||||
Start in
|
||||
</TextBlock>
|
||||
<TextBox
|
||||
x:Name="StartInPathInput"/>
|
||||
<TextBox x:Name="StartInPathInput" />
|
||||
<Button
|
||||
x:Name="StartInSelectButton"
|
||||
Content="Select Starting Directory"
|
||||
Click="StartInSelectButton_Click"/>
|
||||
Click="StartInSelectButton_Click"
|
||||
Content="Select Starting Directory" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="8">
|
||||
<ComboBox
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<ComboBox
|
||||
x:Name="ElevationComboBox"
|
||||
Header="Elevation"
|
||||
SelectedValue="Normal">
|
||||
@@ -104,7 +96,7 @@
|
||||
<x:String>Maximized</x:String>
|
||||
</ComboBox>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -23,13 +23,9 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock
|
||||
x:Uid="InputControlOriginalKeysTextBlock"
|
||||
Margin="0,12,0,0" />
|
||||
<TextBlock x:Uid="InputControlOriginalKeysTextBlock" Margin="0,12,0,0" />
|
||||
<Grid Grid.Column="2">
|
||||
<TextBlock
|
||||
x:Uid="InputControlNewKeysTextBlock"
|
||||
Margin="0,12,0,0" />
|
||||
<TextBlock x:Uid="InputControlNewKeysTextBlock" Margin="0,12,0,0" />
|
||||
</Grid>
|
||||
<Grid Grid.Row="1" Margin="0,8,0,0">
|
||||
<ToggleButton
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<TextBlock
|
||||
x:Uid="TextPageInputControlShortcutKeysTextBlock"
|
||||
Margin="0,12,0,8"
|
||||
FontWeight="SemiBold"/>
|
||||
FontWeight="SemiBold" />
|
||||
|
||||
<ToggleButton
|
||||
x:Name="ShortcutToggleBtn"
|
||||
@@ -67,6 +67,6 @@
|
||||
x:Uid="TextPageInputControlAllAppsTextBox"
|
||||
Background="{ThemeResource TextControlBackgroundFocused}"
|
||||
BorderBrush="{ThemeResource ControlStrokeColorDefaultBrush}"
|
||||
IsEnabled="{Binding ElementName=AllAppsCheckBox, Path=IsChecked}"/>
|
||||
IsEnabled="{Binding ElementName=AllAppsCheckBox, Path=IsChecked}" />
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
@@ -44,12 +44,9 @@
|
||||
</ToggleButton.Content>
|
||||
</ToggleButton>
|
||||
|
||||
<StackPanel Orientation="Vertical"
|
||||
Spacing="8">
|
||||
<TextBlock Text="URL to open"/>
|
||||
<TextBox
|
||||
x:Name="UrlPathInput"
|
||||
Width="360"/>
|
||||
<StackPanel Orientation="Vertical" Spacing="8">
|
||||
<TextBlock Text="URL to open" />
|
||||
<TextBox x:Name="UrlPathInput" Width="360" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
@@ -157,12 +157,12 @@
|
||||
Width="480"
|
||||
MinWidth="600"
|
||||
MaxWidth="600"
|
||||
PrimaryButtonStyle="{StaticResource AccentButtonStyle}"
|
||||
PrimaryButtonClick="KeyDialog_PrimaryButtonClick"
|
||||
PrimaryButtonStyle="{StaticResource AccentButtonStyle}"
|
||||
PrimaryButtonText="{x:Bind helper:ResourceLoaderInstance.GetString('ProgramsPage_KeyDialogPrimary')}"
|
||||
SecondaryButtonText="{x:Bind helper:ResourceLoaderInstance.GetString('ProgramsPage_KeyDialogSecondary')}">
|
||||
<Grid>
|
||||
<controls:AppPageInputControl x:Name="AppShortcutControl"/>
|
||||
<controls:AppPageInputControl x:Name="AppShortcutControl" />
|
||||
</Grid>
|
||||
</ContentDialog>
|
||||
</Grid>
|
||||
|
||||
@@ -23,16 +23,12 @@
|
||||
Height="36"
|
||||
Margin="0,12,0,0"
|
||||
Click="NewRemappingBtn_Click">
|
||||
<StackPanel
|
||||
Orientation="Horizontal"
|
||||
Spacing="8">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<FontIcon
|
||||
FontSize="14"
|
||||
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
|
||||
Glyph="" />
|
||||
<TextBlock
|
||||
x:Uid="RemappingsPageNewTextBlock"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBlock x:Uid="RemappingsPageNewTextBlock" VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
<Grid
|
||||
@@ -78,7 +74,7 @@
|
||||
Margin="12,-2,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
|
||||
|
||||
<Rectangle
|
||||
Grid.ColumnSpan="4"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Page
|
||||
x:Class="KeyboardManagerEditorUI.Pages.Text"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
@@ -27,9 +27,7 @@
|
||||
FontSize="14"
|
||||
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
|
||||
Glyph="" />
|
||||
<TextBlock
|
||||
x:Uid="TextPageNewTextBlock"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBlock x:Uid="TextPageNewTextBlock" VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
<Grid
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Page
|
||||
x:Class="KeyboardManagerEditorUI.Pages.URLs"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
@@ -126,7 +126,7 @@
|
||||
BorderThickness="0"
|
||||
Click="DeleteButton_Click"
|
||||
ToolTipService.ToolTip="{x:Bind helper:ResourceLoaderInstance.GetString('RemappingsPage_DeleteTooltip')}">
|
||||
<FontIcon
|
||||
<FontIcon
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
FontSize="16"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
@@ -145,12 +145,12 @@
|
||||
Height="360"
|
||||
MinWidth="600"
|
||||
MaxWidth="600"
|
||||
PrimaryButtonStyle="{StaticResource AccentButtonStyle}"
|
||||
PrimaryButtonClick="KeyDialog_PrimaryButtonClick"
|
||||
PrimaryButtonStyle="{StaticResource AccentButtonStyle}"
|
||||
PrimaryButtonText="{x:Bind helper:ResourceLoaderInstance.GetString('UrlPage_KeyDialogPrimary')}"
|
||||
SecondaryButtonText="{x:Bind helper:ResourceLoaderInstance.GetString('UrlPage_KeyDialogSecondary')}">
|
||||
<Grid>
|
||||
<controls:UrlPageInputControl x:Name="UrlShortcutControl"/>
|
||||
<controls:UrlPageInputControl x:Name="UrlShortcutControl" />
|
||||
</Grid>
|
||||
</ContentDialog>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user