From 95616e3f1184a969964d4b822afb3f5c89fb36e3 Mon Sep 17 00:00:00 2001 From: Jaex Date: Thu, 26 Sep 2019 02:29:22 +0300 Subject: [PATCH] Auto size main window menu and make sure all social buttons visible --- ShareX/Forms/MainForm.Designer.cs | 10 +++- ShareX/Forms/MainForm.resx | 89 ++++++++++++++++--------------- 2 files changed, 54 insertions(+), 45 deletions(-) diff --git a/ShareX/Forms/MainForm.Designer.cs b/ShareX/Forms/MainForm.Designer.cs index ae2c57959..9b3b6feaa 100644 --- a/ShareX/Forms/MainForm.Designer.cs +++ b/ShareX/Forms/MainForm.Designer.cs @@ -396,8 +396,8 @@ private void InitializeComponent() // // tsMain // - resources.ApplyResources(this.tsMain, "tsMain"); this.tsMain.CanOverflow = false; + resources.ApplyResources(this.tsMain, "tsMain"); this.tsMain.DrawCustomBorder = true; this.tsMain.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.tsMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -2227,9 +2227,9 @@ private void InitializeComponent() // // pToolbars // + resources.ApplyResources(this.pToolbars, "pToolbars"); this.pToolbars.Controls.Add(this.tsMain); this.pToolbars.Controls.Add(this.tsSocialButtons); - resources.ApplyResources(this.pToolbars, "pToolbars"); this.pToolbars.Name = "pToolbars"; // // tsSocialButtons @@ -2254,6 +2254,7 @@ private void InitializeComponent() resources.ApplyResources(this.tsbTwitter, "tsbTwitter"); this.tsbTwitter.Margin = new System.Windows.Forms.Padding(2, 1, 0, 2); this.tsbTwitter.Name = "tsbTwitter"; + this.tsbTwitter.Padding = new System.Windows.Forms.Padding(1); this.tsbTwitter.Click += new System.EventHandler(this.TsbTwitter_Click); // // tsbDiscord @@ -2262,6 +2263,7 @@ private void InitializeComponent() this.tsbDiscord.Image = global::ShareX.Properties.Resources.Discord_32x32; resources.ApplyResources(this.tsbDiscord, "tsbDiscord"); this.tsbDiscord.Name = "tsbDiscord"; + this.tsbDiscord.Padding = new System.Windows.Forms.Padding(1); this.tsbDiscord.Click += new System.EventHandler(this.TsbDiscord_Click); // // tsbPatreon @@ -2270,6 +2272,7 @@ private void InitializeComponent() this.tsbPatreon.Image = global::ShareX.Properties.Resources.Patreon_32x32; resources.ApplyResources(this.tsbPatreon, "tsbPatreon"); this.tsbPatreon.Name = "tsbPatreon"; + this.tsbPatreon.Padding = new System.Windows.Forms.Padding(1); this.tsbPatreon.Click += new System.EventHandler(this.TsbPatreon_Click); // // tsbBitcoin @@ -2278,6 +2281,7 @@ private void InitializeComponent() this.tsbBitcoin.Image = global::ShareX.Properties.Resources.Bitcoin_32x32; resources.ApplyResources(this.tsbBitcoin, "tsbBitcoin"); this.tsbBitcoin.Name = "tsbBitcoin"; + this.tsbBitcoin.Padding = new System.Windows.Forms.Padding(1); this.tsbBitcoin.Click += new System.EventHandler(this.TsbBitcoin_Click); // // tsbGitHub @@ -2286,6 +2290,7 @@ private void InitializeComponent() this.tsbGitHub.Image = global::ShareX.Properties.Resources.GitHub_Black_32x32; resources.ApplyResources(this.tsbGitHub, "tsbGitHub"); this.tsbGitHub.Name = "tsbGitHub"; + this.tsbGitHub.Padding = new System.Windows.Forms.Padding(1); this.tsbGitHub.Click += new System.EventHandler(this.TsbGitHub_Click); // // MainForm @@ -2324,6 +2329,7 @@ private void InitializeComponent() this.tsSocialButtons.ResumeLayout(false); this.tsSocialButtons.PerformLayout(); this.ResumeLayout(false); + this.PerformLayout(); } diff --git a/ShareX/Forms/MainForm.resx b/ShareX/Forms/MainForm.resx index d0f783d2f..8ec38bc10 100644 --- a/ShareX/Forms/MainForm.resx +++ b/ShareX/Forms/MainForm.resx @@ -123,7 +123,7 @@ - 160, 0 + 165, 0 Top, Bottom, Left, Right @@ -241,7 +241,7 @@ 0, 0 - 333, 465 + 328, 465 0 @@ -271,7 +271,7 @@ 1 - 674, 465 + 669, 465 335 @@ -297,9 +297,6 @@ 17, 17 - - False - Fill @@ -433,7 +430,7 @@ Magenta - 147, 20 + 152, 20 Capture @@ -487,7 +484,7 @@ Magenta - 147, 20 + 152, 20 Upload @@ -499,7 +496,7 @@ Magenta - 147, 20 + 152, 20 Workflows @@ -595,13 +592,13 @@ Magenta - 147, 20 + 152, 20 Tools - 147, 6 + 152, 6 MiddleLeft @@ -610,7 +607,7 @@ Magenta - 147, 20 + 152, 20 After capture tasks @@ -622,7 +619,7 @@ Magenta - 147, 20 + 152, 20 After upload tasks @@ -679,7 +676,7 @@ Magenta - 147, 20 + 152, 20 Destinations @@ -691,7 +688,7 @@ Magenta - 147, 20 + 152, 20 Task settings... @@ -703,7 +700,7 @@ Magenta - 147, 20 + 152, 20 Application settings... @@ -715,13 +712,13 @@ Magenta - 147, 20 + 152, 20 Hotkey settings... - 147, 6 + 152, 6 MiddleLeft @@ -730,7 +727,7 @@ Magenta - 147, 20 + 152, 20 Screenshots folder... @@ -742,7 +739,7 @@ Magenta - 147, 20 + 152, 20 History... @@ -754,7 +751,7 @@ Magenta - 147, 20 + 152, 20 Image history... @@ -766,7 +763,7 @@ Magenta - 147, 20 + 152, 20 News @@ -814,7 +811,7 @@ Magenta - 147, 20 + 152, 20 Debug @@ -826,7 +823,7 @@ Magenta - 147, 20 + 152, 20 Donate... @@ -838,22 +835,25 @@ Magenta - 147, 20 + 152, 20 About... - 147, 6 + 152, 6 0, 0 + + 165, 0 + 6, 6, 6, 0 - 160, 425 + 165, 423 1 @@ -1825,7 +1825,7 @@ NoControl - 552, 428 + 547, 428 99, 31 @@ -1855,7 +1855,7 @@ 0, 0 - 674, 465 + 669, 465 6 @@ -1876,10 +1876,10 @@ Fill - 160, 0 + 165, 0 - 674, 465 + 669, 465 5 @@ -1915,7 +1915,7 @@ 20, 20, 20, 20 - 674, 465 + 669, 465 2 @@ -1942,7 +1942,7 @@ 0, 0 - 674, 465 + 669, 465 0 @@ -1963,10 +1963,10 @@ Fill - 160, 0 + 165, 0 - 674, 465 + 669, 465 7 @@ -1986,6 +1986,9 @@ 567, 17 + + True + 654, 17 @@ -1996,7 +1999,7 @@ Magenta - 28, 28 + 30, 30 Twitter @@ -2005,7 +2008,7 @@ Magenta - 28, 28 + 30, 30 Discord @@ -2014,7 +2017,7 @@ Magenta - 28, 28 + 30, 30 Patreon @@ -2023,7 +2026,7 @@ Magenta - 28, 28 + 30, 30 Bitcoin @@ -2032,19 +2035,19 @@ Magenta - 28, 28 + 30, 30 GitHub - 0, 425 + 0, 423 6, 3, 6, 6 - 160, 40 + 165, 42 2 @@ -2068,7 +2071,7 @@ 0, 0 - 160, 465 + 165, 465 8