Skip to content

Commit

Permalink
feat: New loading screen design (#13)
Browse files Browse the repository at this point in the history
* New loading screen design
* Reused the pictureBox1 and removed references to the old gif.
  • Loading branch information
Segergren authored Aug 6, 2022
1 parent 0e3c23d commit 2a12da9
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
18 changes: 17 additions & 1 deletion Classes/frmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Classes/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ private void frmMain_Load(object sender, System.EventArgs e) {
}

private void RefreshLoader() {
pictureBox1.Size = new Size(pictureBox1.Image.Width, pictureBox1.Image.Height);
pictureBox1.Location = new Point((pictureBox1.Parent.ClientSize.Width / 2) - (pictureBox1.Image.Width / 2),
(pictureBox1.Parent.ClientSize.Height / 2) - (pictureBox1.Image.Height / 2));
pictureBox1.Size = new Size(128,128);
pictureBox1.Location = new Point((this.Size.Width / 2) - (pictureBox1.Size.Width / 2),
(this.Size.Height / 2) - (pictureBox1.Size.Height / 2));
pictureBox1.Refresh();
}

Expand Down
4 changes: 2 additions & 2 deletions Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="91" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\91.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="loading" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\loading.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file removed Resources/91.gif
Binary file not shown.
Binary file added Resources/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2a12da9

Please sign in to comment.