Skip to content

Commit 6613cfd

Browse files
committed
A lot of major changes
1 parent e9fc0ad commit 6613cfd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+115095
-525
lines changed

.vs/QuickLibrary/v16/.suo

7.5 KB
Binary file not shown.
132 KB
Binary file not shown.

QuickLibrary/DownloadForm.Designer.cs

Lines changed: 69 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QuickLibrary/DownloadForm.cs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
using System.Drawing;
77
using System.IO;
88
using Microsoft.Win32;
9+
using System.Collections.Generic;
910

1011
namespace QuickLibrary
1112
{
12-
public partial class DownloadForm : Form
13+
public partial class DownloadForm : QlibFixedForm
1314
{
1415
private string fileName;
1516
private WebClient wc;
@@ -26,18 +27,21 @@ public DownloadForm(string url, bool darkMode)
2627
fileName = Path.Combine(GetDownloadFolderPath(), System.IO.Path.GetFileName(url));
2728

2829
InitializeComponent();
30+
(new DropShadow()).ApplyShadows(this);
31+
SetDraggableControls(new List<Control>() { titlePanel, titleLabel, statusLabel, logoPictureBox });
2932

3033
if (darkMode)
3134
{
3235
this.BackColor = ThemeManager.DarkBackColor;
3336
this.ForeColor = Color.White;
3437

3538
cancelButton.BackColor = ThemeManager.DarkSecondColor;
36-
updateButton.BackColor = ThemeManager.DarkSecondColor;
37-
38-
manuallyLink.LinkColor = ThemeManager.AccentColor;
39+
updateButton.BackColor = ThemeManager.DarkSecondColor;
3940
}
4041

42+
closeBtn.SetDarkMode(darkMode);
43+
manuallyLink.LinkColor = ThemeManager.AccentColor;
44+
4145
wc = new WebClient();
4246

4347
wc.DownloadProgressChanged += wc_DownloadProgressChanged;
@@ -117,5 +121,10 @@ private string BytesToSize(double len)
117121

118122
return String.Format("{0:0.##} {1}", len, sizes[order]);
119123
}
124+
125+
private void closeBtn_Click(object sender, EventArgs e)
126+
{
127+
this.Close();
128+
}
120129
}
121130
}

0 commit comments

Comments
 (0)