ux: update workspace/page switcher popup layout

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-18 20:33:55 +08:00
parent 6b083dcd3e
commit 4b849d9d5c
No known key found for this signature in database
7 changed files with 19 additions and 19 deletions

View file

@ -103,13 +103,13 @@
</ContentControl.DataTemplates>
</ContentControl>
<!-- Workspace Switcher -->
<!-- Workspace/Pages Switcher -->
<Border Grid.Row="1"
Background="Transparent"
IsVisible="{Binding Switcher, Converter={x:Static ObjectConverters.IsNotNull}}">
<Border HorizontalAlignment="Center" VerticalAlignment="Center" Effect="drop-shadow(0 0 12 #A0000000)">
<Border Background="{DynamicResource Brush.Popup}" CornerRadius="8">
<ContentControl Margin="16" Content="{Binding Switcher}">
<ContentControl Margin="16,10,16,12" Content="{Binding Switcher}">
<ContentControl.DataTemplates>
<DataTemplate DataType="vm:WorkspaceSwitcher">
<v:WorkspaceSwitcher/>

View file

@ -8,15 +8,15 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SourceGit.Views.LauncherPageSwitcher"
x:DataType="vm:LauncherPageSwitcher">
<Grid RowDefinitions="28,Auto,Auto">
<Grid RowDefinitions="Auto,Auto,Auto">
<TextBlock Grid.Row="0"
Text="{DynamicResource Text.Launcher.SwitchTab}"
Text="{DynamicResource Text.Launcher.Pages}"
FontWeight="Bold"
HorizontalAlignment="Center" VerticalAlignment="Top"/>
HorizontalAlignment="Center"/>
<TextBox Grid.Row="1"
Height="24"
Margin="4,0"
Margin="4,8,4,0"
BorderThickness="1"
CornerRadius="12"
Text="{Binding SearchFilter, Mode=TwoWay}"
@ -50,7 +50,7 @@
x:Name="PagesListBox"
Width="300"
MaxHeight="400"
Margin="0,8,0,0"
Margin="4,8,4,0"
BorderThickness="0"
SelectionMode="Single"
Background="Transparent"

View file

@ -7,15 +7,15 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SourceGit.Views.WorkspaceSwitcher"
x:DataType="vm:WorkspaceSwitcher">
<Grid RowDefinitions="28,Auto,Auto">
<Grid RowDefinitions="Auto,Auto,Auto">
<TextBlock Grid.Row="0"
Text="{DynamicResource Text.Launcher.SwitchWorkspace}"
Text="{DynamicResource Text.Launcher.Workspaces}"
FontWeight="Bold"
HorizontalAlignment="Center" VerticalAlignment="Top"/>
HorizontalAlignment="Center"/>
<TextBox Grid.Row="1"
Height="24"
Margin="4,0"
Margin="4,8,4,0"
BorderThickness="1"
CornerRadius="12"
Text="{Binding SearchFilter, Mode=TwoWay}"
@ -49,7 +49,7 @@
x:Name="WorkspaceListBox"
Width="300"
MaxHeight="400"
Margin="0,8,0,0"
Margin="4,8,4,0"
BorderThickness="0"
SelectionMode="Single"
Background="Transparent"