Make UI clearer

mac
Miepee 4 years ago
parent b582e0fcbf
commit 9e2a61142a

@ -14,22 +14,29 @@ public partial class MainForm : Form
public MainForm() public MainForm()
{ {
Title = $"AM2RPortHelper - v{PortHelper.Version}"; Title = $"AM2RPortHelper - v{PortHelper.Version}";
MinimumSize = new Size(200, 200); MinimumSize = new Size(250, 280);
var mainLayout = new DynamicLayout(); var mainLayout = new DynamicLayout();
mainLayout.BeginVertical(); mainLayout.BeginVertical();
mainLayout.AddRange(labelSelectMod, mainLayout.AddRange(labelSelectMod,
new Label { Height = 5 }, new Label { Height = 5 },
filePicker, filePicker,
labelProgress, labelProgress);
new Label { Height = 10 });
mainLayout.EndVertical(); mainLayout.EndVertical();
mainLayout.BeginCentered(); mainLayout.BeginCentered();
mainLayout.AddRow(new Label { Height = 15 });
mainLayout.AddRow(null, labelOSHeader, null);
mainLayout.EndCentered();
mainLayout.BeginCentered();
mainLayout.AddRow(checkboxLinux, checkboxAndroid, checkboxMac); mainLayout.AddRow(checkboxLinux, checkboxAndroid, checkboxMac);
mainLayout.AddSpace(); mainLayout.AddSpace();
mainLayout.EndCentered(); mainLayout.EndCentered();
mainLayout.BeginCentered(); mainLayout.BeginCentered();
mainLayout.AddRow(new Label { Height = 15 });
mainLayout.AddRow(null, labelOptionsHeader, null);
mainLayout.EndCentered();
mainLayout.BeginCentered();
mainLayout.AddRow(checkboxAndroidRequiresInternet); mainLayout.AddRow(checkboxAndroidRequiresInternet);
mainLayout.AddSpace(); mainLayout.AddSpace();
mainLayout.EndCentered(); mainLayout.EndCentered();
@ -163,7 +170,17 @@ public partial class MainForm : Form
{ {
Filters = { new FileFilter("Zip file", "*.zip") } Filters = { new FileFilter("Zip file", "*.zip") }
}; };
private readonly Label labelProgress = new Label
{
Text = "Info: (currently no ports in progress)"
};
private readonly Label labelOSHeader = new Label
{
Text = "Choose the OS to port to",
Font = new Font(SystemFont.Bold)
};
private readonly CheckBox checkboxLinux = new CheckBox private readonly CheckBox checkboxLinux = new CheckBox
{ {
Text = "Linux" Text = "Linux"
@ -172,15 +189,20 @@ public partial class MainForm : Form
{ {
Text = "Android" Text = "Android"
}; };
private readonly CheckBox checkboxAndroidRequiresInternet = new CheckBox
{
Text = "Requires internet (Android only)"
};
private readonly CheckBox checkboxMac = new CheckBox private readonly CheckBox checkboxMac = new CheckBox
{ {
Text = "Mac" Text = "Mac"
}; };
private readonly Label labelOptionsHeader = new Label
{
Text = "Choose port options",
Font = new Font(SystemFont.Bold)
};
private readonly CheckBox checkboxAndroidRequiresInternet = new CheckBox
{
Text = "Requires internet (Android only)"
};
private readonly Label labelModName = new Label private readonly Label labelModName = new Label
{ {
Text = "Enter mod name:\n(Required for Mac!)" Text = "Enter mod name:\n(Required for Mac!)"
@ -192,9 +214,4 @@ public partial class MainForm : Form
Text = "Port!", Text = "Port!",
Enabled = false Enabled = false
}; };
private readonly Label labelProgress = new Label
{
Text = "Info: "
};
} }
Loading…
Cancel
Save