Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ public virtual async Task InitAsync(PluginInitContext context)
this.context = context;
await InitSettingAsync();
}
private static readonly Thickness settingControlMargin = new(10);
private static readonly Thickness settingControlMargin = new(10, 4, 10, 4);
private static readonly Thickness settingPanelMargin = new(15, 20, 15, 20);
private static readonly Thickness settingTextBlockMargin = new(10, 4, 10, 4);
private JsonRpcConfigurationModel _settingsTemplate;
public Control CreateSettingPanel()
{
Expand All @@ -363,7 +365,7 @@ public Control CreateSettingPanel()
var settingWindow = new UserControl();
var mainPanel = new StackPanel
{
Margin = settingControlMargin,
Margin = settingPanelMargin,
Orientation = Orientation.Vertical
};
settingWindow.Content = mainPanel;
Expand All @@ -375,10 +377,13 @@ public Control CreateSettingPanel()
Orientation = Orientation.Horizontal,
Margin = settingControlMargin
};
var name = new Label()
var name = new TextBlock()
{
Content = attribute.Label,
Margin = settingControlMargin
Text = attribute.Label,
Width = 120,
VerticalAlignment = VerticalAlignment.Center,
Margin = settingControlMargin,
TextWrapping = TextWrapping.WrapWithOverflow
};

FrameworkElement contentControl;
Expand All @@ -390,8 +395,8 @@ public Control CreateSettingPanel()
contentControl = new TextBlock
{
Text = attribute.Description.Replace("\\r\\n", "\r\n"),
Margin = settingControlMargin,
MaxWidth = 400,
Margin = settingTextBlockMargin,
MaxWidth = 500,
TextWrapping = TextWrapping.WrapWithOverflow
};
break;
Expand Down