mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Showing transparent logo on main window, 16x16 icon changes
This commit is contained in:
parent
4cfaf86184
commit
1362bc0192
6 changed files with 63 additions and 33 deletions
|
@ -127,13 +127,13 @@
|
|||
<data name="Crosshair" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\crosshair.cur;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="ShareX_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ShareX_Icon.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ShareX_Logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ShareX_Logo.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="cross" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cross.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ShareX_Logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\sharex_logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ShareX_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\sharex_icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
Binary file not shown.
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
80
ShareX/Forms/MainForm.Designer.cs
generated
80
ShareX/Forms/MainForm.Designer.cs
generated
|
@ -50,6 +50,7 @@ private void InitializeComponent()
|
|||
this.tsmiAutoCapture = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsddbUpload = new System.Windows.Forms.ToolStripDropDownButton();
|
||||
this.tsmiUploadFile = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiUploadFolder = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiUploadClipboard = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiUploadURL = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiUploadDragDrop = new System.Windows.Forms.ToolStripMenuItem();
|
||||
|
@ -95,6 +96,8 @@ private void InitializeComponent()
|
|||
this.tsmiDonate = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsmiAbout = new System.Windows.Forms.ToolStripButton();
|
||||
this.scMain = new HelpersLib.SplitContainerCustomSplitter();
|
||||
this.pBackground = new System.Windows.Forms.Panel();
|
||||
this.pbLogo = new HelpersLib.MyPictureBox();
|
||||
this.lblDragAndDropTip = new System.Windows.Forms.Label();
|
||||
this.lblSplitter = new System.Windows.Forms.Label();
|
||||
this.lvUploads = new HelpersLib.MyListView();
|
||||
|
@ -179,6 +182,7 @@ private void InitializeComponent()
|
|||
this.tsmiTrayAutoCapture = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiTrayUpload = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiTrayUploadFile = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiTrayUploadFolder = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiTrayUploadClipboard = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiTrayUploadURL = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiTrayUploadDragDrop = new System.Windows.Forms.ToolStripMenuItem();
|
||||
|
@ -219,13 +223,12 @@ private void InitializeComponent()
|
|||
this.tsmiTrayShow = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiTrayExit = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.ssToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiUploadFolder = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsmiTrayUploadFolder = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsMain.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.scMain)).BeginInit();
|
||||
this.scMain.Panel1.SuspendLayout();
|
||||
this.scMain.Panel2.SuspendLayout();
|
||||
this.scMain.SuspendLayout();
|
||||
this.pBackground.SuspendLayout();
|
||||
this.cmsTaskInfo.SuspendLayout();
|
||||
this.cmsTray.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
|
@ -449,6 +452,14 @@ private void InitializeComponent()
|
|||
this.tsmiUploadFile.Text = "Upload file...";
|
||||
this.tsmiUploadFile.Click += new System.EventHandler(this.tsbFileUpload_Click);
|
||||
//
|
||||
// tsmiUploadFolder
|
||||
//
|
||||
this.tsmiUploadFolder.Image = global::ShareX.Properties.Resources.folder;
|
||||
this.tsmiUploadFolder.Name = "tsmiUploadFolder";
|
||||
this.tsmiUploadFolder.Size = new System.Drawing.Size(203, 22);
|
||||
this.tsmiUploadFolder.Text = "Upload folder...";
|
||||
this.tsmiUploadFolder.Click += new System.EventHandler(this.tsmiUploadFolder_Click);
|
||||
//
|
||||
// tsmiUploadClipboard
|
||||
//
|
||||
this.tsmiUploadClipboard.Image = global::ShareX.Properties.Resources.clipboard;
|
||||
|
@ -850,7 +861,7 @@ private void InitializeComponent()
|
|||
//
|
||||
// scMain.Panel1
|
||||
//
|
||||
this.scMain.Panel1.Controls.Add(this.lblDragAndDropTip);
|
||||
this.scMain.Panel1.Controls.Add(this.pBackground);
|
||||
this.scMain.Panel1.Controls.Add(this.lblSplitter);
|
||||
this.scMain.Panel1.Controls.Add(this.lvUploads);
|
||||
//
|
||||
|
@ -863,21 +874,43 @@ private void InitializeComponent()
|
|||
this.scMain.TabIndex = 1;
|
||||
this.scMain.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.scMain_SplitterMoved);
|
||||
//
|
||||
// lblDragAndDropTip
|
||||
// pBackground
|
||||
//
|
||||
this.lblDragAndDropTip.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
this.pBackground.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pBackground.BackColor = System.Drawing.Color.White;
|
||||
this.pBackground.Controls.Add(this.pbLogo);
|
||||
this.pBackground.Controls.Add(this.lblDragAndDropTip);
|
||||
this.pBackground.Location = new System.Drawing.Point(8, 40);
|
||||
this.pBackground.Name = "pBackground";
|
||||
this.pBackground.Size = new System.Drawing.Size(320, 344);
|
||||
this.pBackground.TabIndex = 3;
|
||||
//
|
||||
// pbLogo
|
||||
//
|
||||
this.pbLogo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pbLogo.Location = new System.Drawing.Point(0, 0);
|
||||
this.pbLogo.Name = "pbLogo";
|
||||
this.pbLogo.Size = new System.Drawing.Size(320, 280);
|
||||
this.pbLogo.TabIndex = 2;
|
||||
this.pbLogo.TabStop = false;
|
||||
//
|
||||
// lblDragAndDropTip
|
||||
//
|
||||
this.lblDragAndDropTip.BackColor = System.Drawing.Color.White;
|
||||
this.lblDragAndDropTip.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.lblDragAndDropTip.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
|
||||
this.lblDragAndDropTip.ForeColor = System.Drawing.Color.Gainsboro;
|
||||
this.lblDragAndDropTip.Location = new System.Drawing.Point(8, 39);
|
||||
this.lblDragAndDropTip.Location = new System.Drawing.Point(0, 280);
|
||||
this.lblDragAndDropTip.Name = "lblDragAndDropTip";
|
||||
this.lblDragAndDropTip.Padding = new System.Windows.Forms.Padding(30, 20, 30, 30);
|
||||
this.lblDragAndDropTip.Size = new System.Drawing.Size(319, 328);
|
||||
this.lblDragAndDropTip.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
|
||||
this.lblDragAndDropTip.Size = new System.Drawing.Size(320, 64);
|
||||
this.lblDragAndDropTip.TabIndex = 1;
|
||||
this.lblDragAndDropTip.Text = "You can drag and drop files to this window";
|
||||
this.lblDragAndDropTip.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.lblDragAndDropTip.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
this.lblDragAndDropTip.MouseUp += new System.Windows.Forms.MouseEventHandler(this.lblDragAndDropTip_MouseUp);
|
||||
//
|
||||
// lblSplitter
|
||||
|
@ -1588,6 +1621,14 @@ private void InitializeComponent()
|
|||
this.tsmiTrayUploadFile.Text = "Upload file...";
|
||||
this.tsmiTrayUploadFile.Click += new System.EventHandler(this.tsbFileUpload_Click);
|
||||
//
|
||||
// tsmiTrayUploadFolder
|
||||
//
|
||||
this.tsmiTrayUploadFolder.Image = global::ShareX.Properties.Resources.folder;
|
||||
this.tsmiTrayUploadFolder.Name = "tsmiTrayUploadFolder";
|
||||
this.tsmiTrayUploadFolder.Size = new System.Drawing.Size(203, 22);
|
||||
this.tsmiTrayUploadFolder.Text = "Upload folder...";
|
||||
this.tsmiTrayUploadFolder.Click += new System.EventHandler(this.tsmiUploadFolder_Click);
|
||||
//
|
||||
// tsmiTrayUploadClipboard
|
||||
//
|
||||
this.tsmiTrayUploadClipboard.Image = global::ShareX.Properties.Resources.clipboard;
|
||||
|
@ -1905,22 +1946,6 @@ private void InitializeComponent()
|
|||
this.ssToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.ssToolStripMenuItem.Text = "ss";
|
||||
//
|
||||
// tsmiUploadFolder
|
||||
//
|
||||
this.tsmiUploadFolder.Image = global::ShareX.Properties.Resources.folder;
|
||||
this.tsmiUploadFolder.Name = "tsmiUploadFolder";
|
||||
this.tsmiUploadFolder.Size = new System.Drawing.Size(203, 22);
|
||||
this.tsmiUploadFolder.Text = "Upload folder...";
|
||||
this.tsmiUploadFolder.Click += new System.EventHandler(this.tsmiUploadFolder_Click);
|
||||
//
|
||||
// tsmiTrayUploadFolder
|
||||
//
|
||||
this.tsmiTrayUploadFolder.Image = global::ShareX.Properties.Resources.folder;
|
||||
this.tsmiTrayUploadFolder.Name = "tsmiTrayUploadFolder";
|
||||
this.tsmiTrayUploadFolder.Size = new System.Drawing.Size(203, 22);
|
||||
this.tsmiTrayUploadFolder.Text = "Upload folder...";
|
||||
this.tsmiTrayUploadFolder.Click += new System.EventHandler(this.tsmiUploadFolder_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AllowDrop = true;
|
||||
|
@ -1948,6 +1973,7 @@ private void InitializeComponent()
|
|||
this.scMain.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.scMain)).EndInit();
|
||||
this.scMain.ResumeLayout(false);
|
||||
this.pBackground.ResumeLayout(false);
|
||||
this.cmsTaskInfo.ResumeLayout(false);
|
||||
this.cmsTray.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
@ -2092,7 +2118,6 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.ToolStripSeparator tssTray3;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiIndexFolder;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiTrayIndexFolder;
|
||||
public System.Windows.Forms.Label lblDragAndDropTip;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiImageEffects;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiTrayImageEffects;
|
||||
private System.Windows.Forms.ToolStripButton tsmiAbout;
|
||||
|
@ -2148,5 +2173,8 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.ToolStripMenuItem screenRecordingFFmpegToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiUploadFolder;
|
||||
private System.Windows.Forms.ToolStripMenuItem tsmiTrayUploadFolder;
|
||||
private HelpersLib.MyPictureBox pbLogo;
|
||||
private System.Windows.Forms.Label lblDragAndDropTip;
|
||||
internal System.Windows.Forms.Panel pBackground;
|
||||
}
|
||||
}
|
|
@ -135,6 +135,8 @@ private void InitControls()
|
|||
il.Images.Add(Resources.navigation_000_button);
|
||||
lvUploads.SmallImageList = il;
|
||||
|
||||
pbLogo.LoadImage(ColorMatrixManager.Alpha(0.3f, 0f).Apply(ShareXResources.Logo));
|
||||
|
||||
TaskManager.ListViewControl = lvUploads;
|
||||
uim = new UploadInfoManager(lvUploads);
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
@ -115,7 +115,7 @@ public static void StopAllTasks()
|
|||
|
||||
private static void UpdateDragAndDropTip()
|
||||
{
|
||||
Program.MainForm.lblDragAndDropTip.Visible = Tasks.Count == 0;
|
||||
Program.MainForm.pBackground.Visible = Tasks.Count == 0;
|
||||
}
|
||||
|
||||
private static ListViewItem FindListViewItem(UploadTask task)
|
||||
|
|
Loading…
Reference in a new issue