mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[Workspaces] UI fixes (#34534)
* fix launch button width * fix "Add back" button * fix snapshot overlay window text wrapping * xaml formatting --------- Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<Page
|
<Page
|
||||||
x:Class="WorkspacesEditor.MainPage"
|
x:Class="WorkspacesEditor.MainPage"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
<Grid HorizontalAlignment="Stretch">
|
<Grid HorizontalAlignment="Stretch">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
<ColumnDefinition Width="110" />
|
<ColumnDefinition Width="Auto" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Margin="12,14,10,10"
|
Margin="12,14,10,10"
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
xmlns:ui="http://schemas.modernwpf.com/2019"
|
xmlns:ui="http://schemas.modernwpf.com/2019"
|
||||||
Title="{x:Static props:Resources.SnapshotWindowTitle}"
|
Title="{x:Static props:Resources.SnapshotWindowTitle}"
|
||||||
Width="350"
|
Width="350"
|
||||||
Height="140"
|
|
||||||
ui:TitleBar.Background="{DynamicResource PrimaryBackgroundBrush}"
|
ui:TitleBar.Background="{DynamicResource PrimaryBackgroundBrush}"
|
||||||
ui:TitleBar.InactiveBackground="{DynamicResource TertiaryBackgroundBrush}"
|
ui:TitleBar.InactiveBackground="{DynamicResource TertiaryBackgroundBrush}"
|
||||||
ui:WindowHelper.UseModernWindowStyle="True"
|
ui:WindowHelper.UseModernWindowStyle="True"
|
||||||
@@ -18,6 +17,7 @@
|
|||||||
BorderThickness="5"
|
BorderThickness="5"
|
||||||
Closing="Window_Closing"
|
Closing="Window_Closing"
|
||||||
ResizeMode="NoResize"
|
ResizeMode="NoResize"
|
||||||
|
SizeToContent="Height"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<Grid Margin="5" Background="Transparent">
|
<Grid Margin="5" Background="Transparent">
|
||||||
@@ -31,9 +31,10 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Margin="5"
|
Margin="5,5,5,15"
|
||||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||||
Text="{x:Static props:Resources.SnapshotDescription}" />
|
Text="{x:Static props:Resources.SnapshotDescription}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="CancelButton"
|
x:Name="CancelButton"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
<controls:ResetIsEnabled Grid.Column="4">
|
<controls:ResetIsEnabled Grid.Column="4">
|
||||||
<Button
|
<Button
|
||||||
Width="120"
|
Width="Auto"
|
||||||
Margin="10,5"
|
Margin="10,5"
|
||||||
Padding="24,6"
|
Padding="24,6"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
||||||
|
|||||||
Reference in New Issue
Block a user