mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Adjust Control Aligment
This commit is contained in:
parent
31ce34bac6
commit
a05f2bb92b
1 changed files with 6 additions and 6 deletions
|
|
@ -356,7 +356,7 @@ namespace Flow.Launcher.Core.Plugin
|
||||||
}
|
}
|
||||||
private static readonly Thickness settingControlMargin = new(10, 4, 10, 4);
|
private static readonly Thickness settingControlMargin = new(10, 4, 10, 4);
|
||||||
private static readonly Thickness settingPanelMargin = new(15, 20, 15, 20);
|
private static readonly Thickness settingPanelMargin = new(15, 20, 15, 20);
|
||||||
private static readonly Thickness settingTextBlockMargin = new(-10, 0, 0, 0);
|
private static readonly Thickness settingTextBlockMargin = new(10, 4, 10, 4);
|
||||||
private JsonRpcConfigurationModel _settingsTemplate;
|
private JsonRpcConfigurationModel _settingsTemplate;
|
||||||
public Control CreateSettingPanel()
|
public Control CreateSettingPanel()
|
||||||
{
|
{
|
||||||
|
|
@ -377,12 +377,13 @@ namespace Flow.Launcher.Core.Plugin
|
||||||
Orientation = Orientation.Horizontal,
|
Orientation = Orientation.Horizontal,
|
||||||
Margin = settingControlMargin
|
Margin = settingControlMargin
|
||||||
};
|
};
|
||||||
var name = new Label()
|
var name = new TextBlock()
|
||||||
{
|
{
|
||||||
Content = attribute.Label,
|
Text = attribute.Label,
|
||||||
MinWidth = 0,
|
Width = 120,
|
||||||
VerticalAlignment = VerticalAlignment.Center,
|
VerticalAlignment = VerticalAlignment.Center,
|
||||||
Margin = settingControlMargin
|
Margin = settingControlMargin,
|
||||||
|
TextWrapping = TextWrapping.WrapWithOverflow
|
||||||
};
|
};
|
||||||
|
|
||||||
FrameworkElement contentControl;
|
FrameworkElement contentControl;
|
||||||
|
|
@ -395,7 +396,6 @@ namespace Flow.Launcher.Core.Plugin
|
||||||
{
|
{
|
||||||
Text = attribute.Description.Replace("\\r\\n", "\r\n"),
|
Text = attribute.Description.Replace("\\r\\n", "\r\n"),
|
||||||
Margin = settingTextBlockMargin,
|
Margin = settingTextBlockMargin,
|
||||||
LineHeight = 20,
|
|
||||||
MaxWidth = 500,
|
MaxWidth = 500,
|
||||||
TextWrapping = TextWrapping.WrapWithOverflow
|
TextWrapping = TextWrapping.WrapWithOverflow
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue