Skip to content

Commit a8331af

Browse files
committed
Adjust Vertical Aligment and margins
1 parent df97be7 commit a8331af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ public virtual async Task InitAsync(PluginInitContext context)
354354
this.context = context;
355355
await InitSettingAsync();
356356
}
357-
private static readonly Thickness settingControlMargin = new(10);
357+
private static readonly Thickness settingControlMargin = new(10, 3, 10, 3);
358+
private static readonly Thickness settingPanelMargin = new(15, 20, 15, 20);
358359
private JsonRpcConfigurationModel _settingsTemplate;
359360
public Control CreateSettingPanel()
360361
{
@@ -363,7 +364,7 @@ public Control CreateSettingPanel()
363364
var settingWindow = new UserControl();
364365
var mainPanel = new StackPanel
365366
{
366-
Margin = settingControlMargin,
367+
Margin = settingPanelMargin,
367368
Orientation = Orientation.Vertical
368369
};
369370
settingWindow.Content = mainPanel;
@@ -378,6 +379,7 @@ public Control CreateSettingPanel()
378379
var name = new Label()
379380
{
380381
Content = attribute.Label,
382+
VerticalAlignment = VerticalAlignment.Center,
381383
Margin = settingControlMargin
382384
};
383385

@@ -391,7 +393,7 @@ public Control CreateSettingPanel()
391393
{
392394
Text = attribute.Description.Replace("\\r\\n", "\r\n"),
393395
Margin = settingControlMargin,
394-
MaxWidth = 400,
396+
MaxWidth = 500,
395397
TextWrapping = TextWrapping.WrapWithOverflow
396398
};
397399
break;

0 commit comments

Comments
 (0)