diff --git a/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/BigColorButton.cs b/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/BigColorButton.cs new file mode 100644 index 0000000..b5719e7 --- /dev/null +++ b/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/BigColorButton.cs @@ -0,0 +1,17 @@ +namespace AM2RLauncher; + +public class BigColorButton : ColorButton +{ + public BigColorButton(string text) + { + Text = text; + Height = 40; + Width = 275; + TextColor = LauncherColors.Green; + TextColorDisabled = LauncherColors.Inactive; + BackgroundColor = LauncherColors.BG; + BackgroundColorHover = LauncherColors.BGHover; + FrameColor = LauncherColors.Green; + FrameColorDisabled = LauncherColors.Inactive; + } +} \ No newline at end of file diff --git a/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/ColorButton.cs b/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/ColorButton.cs index 9ce01e7..520b135 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/ColorButton.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/ColorButton.cs @@ -7,7 +7,7 @@ namespace AM2RLauncher; /// /// Extension of that allows for advanced color settings. /// -class ColorButton : CustomButton +public class ColorButton : CustomButton { /// The to draw the background with when is true. public Color BackgroundColorHover { get; set; } diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs index adbca02..100e2ba 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs @@ -178,17 +178,7 @@ public partial class MainForm : Form DynamicLayout centerInterface = new DynamicLayout(); // PLAY button - playButton = new ColorButton - { - BackgroundColorHover = LauncherColors.BGHover, - Height = 40, - Width = 250, - TextColor = LauncherColors.Green, - TextColorDisabled = LauncherColors.Inactive, - BackgroundColor = LauncherColors.BG, - FrameColor = LauncherColors.Green, - FrameColorDisabled = LauncherColors.Inactive - }; + playButton = new BigColorButton(Text.Play); centerInterface.AddRow(playButton); @@ -197,16 +187,7 @@ public partial class MainForm : Form if (OS.IsWindows) centerInterface.AddRow(new Label { BackgroundColor = LauncherColors.BG, Height = 2 }); // APK button - apkButton = new ColorButton - { - Text = Text.CreateAPK, - Height = 40, - Width = 250, - TextColor = LauncherColors.Green, - BackgroundColor = LauncherColors.BG, - FrameColor = LauncherColors.Green, - BackgroundColorHover = LauncherColors.BGHover - }; + apkButton = new BigColorButton(Text.CreateAPK); centerInterface.AddRow(apkButton); @@ -624,7 +605,7 @@ public partial class MainForm : Form { Text = Text.AddNewMod, Font = smallButtonFont, - Height = 30, + Height = 40, Width = 275, TextColor = LauncherColors.Green, BackgroundColor = LauncherColors.BG, @@ -662,7 +643,7 @@ public partial class MainForm : Form { Text = Text.CreateShortcut, Font = smallButtonFont, - Height = 30, + Height = 40, Width = 275, TextColor = LauncherColors.Green, BackgroundColor = LauncherColors.BG, @@ -674,7 +655,7 @@ public partial class MainForm : Form { Text = Text.OpenProfileFolder, Font = smallButtonFont, - Height = 30, + Height = 40, Width = 275, TextColor = LauncherColors.Green, BackgroundColor = LauncherColors.BG, @@ -686,7 +667,7 @@ public partial class MainForm : Form { Text = Text.OpenSaveFolder, Font = smallButtonFont, - Height = 30, + Height = 40, Width = 275, TextColor = LauncherColors.Green, BackgroundColor = LauncherColors.BG, @@ -698,7 +679,7 @@ public partial class MainForm : Form { Text = Text.UpdateModButtonText, Font = smallButtonFont, - Height = 30, + Height = 40, Width = 275, TextColor = LauncherColors.Green, BackgroundColor = LauncherColors.BG, @@ -710,7 +691,7 @@ public partial class MainForm : Form { Text = Text.DeleteModButtonText, Font = smallButtonFont, - Height = 30, + Height = 40, Width = 275, TextColor = LauncherColors.Green, BackgroundColor = LauncherColors.BG,