From 2d65145cad8a1bc540b4475f7f1e3a9431fae955 Mon Sep 17 00:00:00 2001 From: Jaex Date: Tue, 1 Oct 2019 02:38:01 +0300 Subject: [PATCH] Increase main window default width slightly so 3 thumbnails can fit --- ShareX/Forms/MainForm.Designer.cs | 36 +++++++++++++++---------------- ShareX/Forms/MainForm.resx | 33 +++++++++++++++------------- 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/ShareX/Forms/MainForm.Designer.cs b/ShareX/Forms/MainForm.Designer.cs index ece1172fd..3beb10e28 100644 --- a/ShareX/Forms/MainForm.Designer.cs +++ b/ShareX/Forms/MainForm.Designer.cs @@ -278,10 +278,8 @@ private void InitializeComponent() this.timerTraySingleClick = new System.Windows.Forms.Timer(this.components); this.pNews = new System.Windows.Forms.Panel(); this.btnCloseNews = new System.Windows.Forms.Button(); - this.ucNews = new ShareX.NewsListControl(); this.pThumbnailView = new System.Windows.Forms.Panel(); this.lblThumbnailViewTip = new System.Windows.Forms.Label(); - this.ucTaskThumbnailView = new ShareX.TaskThumbnailView(); this.ttMain = new System.Windows.Forms.ToolTip(this.components); this.pToolbars = new System.Windows.Forms.Panel(); this.tsSocialButtons = new ShareX.HelpersLib.ToolStripBorderRight(); @@ -290,6 +288,8 @@ private void InitializeComponent() this.tsbPatreon = new System.Windows.Forms.ToolStripButton(); this.tsbBitcoin = new System.Windows.Forms.ToolStripButton(); this.tsbGitHub = new System.Windows.Forms.ToolStripButton(); + this.ucNews = new ShareX.NewsListControl(); + this.ucTaskThumbnailView = new ShareX.TaskThumbnailView(); ((System.ComponentModel.ISupportInitialize)(this.scMain)).BeginInit(); this.scMain.Panel1.SuspendLayout(); this.scMain.Panel2.SuspendLayout(); @@ -2202,12 +2202,6 @@ private void InitializeComponent() this.btnCloseNews.UseVisualStyleBackColor = true; this.btnCloseNews.Click += new System.EventHandler(this.btnCloseNews_Click); // - // ucNews - // - this.ucNews.BackColor = System.Drawing.SystemColors.Window; - resources.ApplyResources(this.ucNews, "ucNews"); - this.ucNews.Name = "ucNews"; - // // pThumbnailView // this.pThumbnailView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(47)))), ((int)(((byte)(56))))); @@ -2225,16 +2219,6 @@ private void InitializeComponent() this.lblThumbnailViewTip.UseMnemonic = false; this.lblThumbnailViewTip.MouseUp += new System.Windows.Forms.MouseEventHandler(this.LblThumbnailViewTip_MouseUp); // - // ucTaskThumbnailView - // - resources.ApplyResources(this.ucTaskThumbnailView, "ucTaskThumbnailView"); - this.ucTaskThumbnailView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(47)))), ((int)(((byte)(56))))); - this.ucTaskThumbnailView.Name = "ucTaskThumbnailView"; - this.ucTaskThumbnailView.ThumbnailSize = new System.Drawing.Size(200, 150); - this.ucTaskThumbnailView.TitleLocation = ShareX.ThumbnailTitleLocation.Top; - this.ucTaskThumbnailView.TitleVisible = true; - this.ucTaskThumbnailView.ContextMenuRequested += new ShareX.TaskThumbnailView.TaskViewMouseEventHandler(this.UcTaskView_ContextMenuRequested); - // // ttMain // this.ttMain.AutoPopDelay = 5000; @@ -2311,6 +2295,22 @@ private void InitializeComponent() this.tsbGitHub.Padding = new System.Windows.Forms.Padding(1); this.tsbGitHub.Click += new System.EventHandler(this.TsbGitHub_Click); // + // ucNews + // + this.ucNews.BackColor = System.Drawing.SystemColors.Window; + resources.ApplyResources(this.ucNews, "ucNews"); + this.ucNews.Name = "ucNews"; + // + // ucTaskThumbnailView + // + resources.ApplyResources(this.ucTaskThumbnailView, "ucTaskThumbnailView"); + this.ucTaskThumbnailView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(47)))), ((int)(((byte)(56))))); + this.ucTaskThumbnailView.Name = "ucTaskThumbnailView"; + this.ucTaskThumbnailView.ThumbnailSize = new System.Drawing.Size(200, 150); + this.ucTaskThumbnailView.TitleLocation = ShareX.ThumbnailTitleLocation.Top; + this.ucTaskThumbnailView.TitleVisible = true; + this.ucTaskThumbnailView.ContextMenuRequested += new ShareX.TaskThumbnailView.TaskViewMouseEventHandler(this.UcTaskView_ContextMenuRequested); + // // MainForm // this.AllowDrop = true; diff --git a/ShareX/Forms/MainForm.resx b/ShareX/Forms/MainForm.resx index d914c8fc2..6404b3c48 100644 --- a/ShareX/Forms/MainForm.resx +++ b/ShareX/Forms/MainForm.resx @@ -141,7 +141,7 @@ 10, 0, 10, 0 - 320, 402 + 320, 408 @@ -205,7 +205,7 @@ 0, 0 - 335, 465 + 335, 471 2 @@ -241,7 +241,7 @@ 0, 0 - 328, 465 + 338, 471 0 @@ -271,7 +271,7 @@ 1 - 669, 465 + 679, 471 335 @@ -859,7 +859,7 @@ 6, 6, 6, 0 - 165, 423 + 165, 429 1 @@ -1837,7 +1837,7 @@ NoControl - 547, 428 + 557, 434 99, 31 @@ -1867,7 +1867,7 @@ 0, 0 - 669, 465 + 679, 471 6 @@ -1891,7 +1891,7 @@ 165, 0 - 669, 465 + 679, 471 5 @@ -1927,7 +1927,7 @@ 20, 20, 20, 20 - 669, 465 + 679, 471 2 @@ -1954,7 +1954,7 @@ 0, 0 - 669, 465 + 679, 471 0 @@ -1978,7 +1978,7 @@ 165, 0 - 669, 465 + 679, 471 7 @@ -2053,7 +2053,7 @@ GitHub - 0, 423 + 0, 429 6, 3, 6, 6 @@ -2083,7 +2083,7 @@ 0, 0 - 165, 465 + 165, 471 8 @@ -2110,10 +2110,13 @@ 6, 13 - 834, 465 + 844, 471 + + + NoControl - 500, 250 + 510, 250 CenterScreen