Improve area text box

This commit is contained in:
Jack251970 2025-03-17 11:19:47 +08:00
parent fcd7e55641
commit 43bf6342ca
3 changed files with 3 additions and 8 deletions

View file

@ -31,7 +31,6 @@ namespace Flow.Launcher.Core.Plugin
private static readonly Thickness SettingPanelItemLeftTopBottomMargin = (Thickness)Application.Current.FindResource("SettingPanelItemLeftTopBottomMargin");
private static readonly double SettingPanelTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelTextBoxMinWidth");
private static readonly double SettingPanelPathTextBoxWidth = (double)Application.Current.FindResource("SettingPanelPathTextBoxWidth");
private static readonly double SettingPanelAreaTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelAreaTextBoxMinWidth");
private static readonly double SettingPanelAreaTextBoxMinHeight = (double)Application.Current.FindResource("SettingPanelAreaTextBoxMinHeight");
public async Task InitializeAsync()
@ -327,8 +326,7 @@ namespace Flow.Launcher.Core.Plugin
var textBox = new TextBox()
{
MinHeight = SettingPanelAreaTextBoxMinHeight,
MinWidth = SettingPanelAreaTextBoxMinWidth,
HorizontalAlignment = HorizontalAlignment.Left,
HorizontalAlignment = HorizontalAlignment.Stretch,
VerticalAlignment = VerticalAlignment.Center,
Margin = SettingPanelItemLeftTopBottomMargin,
TextWrapping = TextWrapping.WrapWithOverflow,

View file

@ -5605,7 +5605,6 @@
<system:Double x:Key="SettingPanelTextBoxMinWidth">180</system:Double>
<system:Double x:Key="SettingPanelPathTextBoxWidth">240</system:Double>
<system:Double x:Key="SettingPanelAreaTextBoxMinWidth">270</system:Double>
<system:Double x:Key="SettingPanelAreaTextBoxMinHeight">150</system:Double>
<Style x:Key="SettingPanelTextBlockDescriptionStyle" TargetType="TextBlock">

View file

@ -358,10 +358,9 @@
Grid.Row="15"
Grid.Column="0"
Grid.ColumnSpan="2"
MinWidth="{StaticResource SettingPanelAreaTextBoxMinWidth}"
MinHeight="{StaticResource SettingPanelAreaTextBoxMinHeight}"
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
HorizontalAlignment="Left"
HorizontalAlignment="Stretch"
AcceptsReturn="True"
Text="{Binding WindowsContextMenuIncludedItems}"
TextWrapping="Wrap" />
@ -378,10 +377,9 @@
Grid.Row="17"
Grid.Column="0"
Grid.ColumnSpan="2"
MinWidth="{StaticResource SettingPanelAreaTextBoxMinWidth}"
MinHeight="{StaticResource SettingPanelAreaTextBoxMinHeight}"
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
HorizontalAlignment="Left"
HorizontalAlignment="Stretch"
AcceptsReturn="True"
Text="{Binding WindowsContextMenuExcludedItems}"
TextWrapping="Wrap" />