Skip to content

Commit 2320cbe

Browse files
committed
feat: 优化文本对话框显示
1 parent dae4e4c commit 2320cbe

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/CurvaLauncher/Views/Dialogs/SimpleTextDialog.xaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@
1414
Closing="UiWindow_Closing"
1515
PreviewKeyDown="UiWindow_PreviewKeyDown"
1616
Deactivated="UiWindow_Deactivated">
17-
<TextBox Name="textBox" Margin="20"
18-
VerticalAlignment="Center"
19-
HorizontalAlignment="Center"
17+
<TextBox Name="textBox"
18+
Margin="20"
19+
Padding="10"
20+
VerticalAlignment="Stretch"
21+
HorizontalAlignment="Stretch"
2022
VerticalContentAlignment="Center"
2123
HorizontalContentAlignment="Center"
22-
BorderThickness="0" Background="Transparent" IsReadOnly="True"
24+
BorderThickness="0"
25+
IsReadOnly="True"
26+
Background="Transparent"
2327
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
2428
Text="{Binding RelativeSource={RelativeSource AncestorType=local:SimpleTextDialog},Path=Text,Mode=OneTime}"
2529
Style="{x:Null}"

0 commit comments

Comments
 (0)