mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-19 00:51:30 -07:00
- Features - Added three new bootstrapper styles (Vista, Legacy 2009 and Progress Dark Theme) - Added ability to disable rich presence activity buttons - Added ability to restore old mouse cursor - Quality of Life - Refactored code for bootstrapper styles
55 lines
1.4 KiB
C#
55 lines
1.4 KiB
C#
using Bloxstrap.Helpers;
|
|
|
|
namespace Bloxstrap.Dialogs.BootstrapperStyles
|
|
{
|
|
// basically just the modern dialog
|
|
|
|
public partial class ProgressDialogDark : BootstrapperStyleForm
|
|
{
|
|
public override string Message
|
|
{
|
|
get => labelMessage.Text;
|
|
set => labelMessage.Text = value;
|
|
}
|
|
|
|
public override ProgressBarStyle ProgressStyle
|
|
{
|
|
get => ProgressBar.Style;
|
|
set => ProgressBar.Style = value;
|
|
}
|
|
|
|
public override int ProgressValue
|
|
{
|
|
get => ProgressBar.Value;
|
|
set => ProgressBar.Value = value;
|
|
}
|
|
|
|
public override bool CancelEnabled
|
|
{
|
|
get => this.buttonCancel.Enabled;
|
|
set => this.buttonCancel.Enabled = this.buttonCancel.Visible = value;
|
|
}
|
|
|
|
public ProgressDialogDark(Bootstrapper? bootstrapper = null)
|
|
{
|
|
InitializeComponent();
|
|
|
|
Bootstrapper = bootstrapper;
|
|
|
|
this.IconBox.BackgroundImage = IconManager.GetBitmapResource();
|
|
|
|
SetupDialog();
|
|
}
|
|
|
|
private void ButtonCancel_MouseEnter(object sender, EventArgs e)
|
|
{
|
|
this.buttonCancel.Image = Properties.Resources.DarkCancelButtonHover;
|
|
}
|
|
|
|
private void ButtonCancel_MouseLeave(object sender, EventArgs e)
|
|
{
|
|
this.buttonCancel.Image = Properties.Resources.DarkCancelButton;
|
|
}
|
|
}
|
|
}
|