Removed social buttons

This commit is contained in:
Jaex 2021-08-23 02:45:31 +03:00
parent a91f00b5d7
commit 8b1740d13c
3 changed files with 2 additions and 247 deletions

View file

@ -124,7 +124,6 @@ private void InitializeComponent()
this.tsmiTestURLSharing = new System.Windows.Forms.ToolStripMenuItem();
this.tsbDonate = new ShareX.HelpersLib.ToolStripButtonColorAnimation();
this.tsbAbout = new System.Windows.Forms.ToolStripButton();
this.tssMain3 = new System.Windows.Forms.ToolStripSeparator();
this.cmsTaskInfo = new System.Windows.Forms.ContextMenuStrip(this.components);
this.tsmiShowErrors = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiStopUpload = new System.Windows.Forms.ToolStripMenuItem();
@ -300,12 +299,6 @@ private void InitializeComponent()
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();
this.tsbTwitter = new System.Windows.Forms.ToolStripButton();
this.tsbDiscord = new System.Windows.Forms.ToolStripButton();
this.tsbPatreon = new System.Windows.Forms.ToolStripButton();
this.tsbBitcoin = new System.Windows.Forms.ToolStripButton();
this.tsbGitHub = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.scMain)).BeginInit();
this.scMain.Panel1.SuspendLayout();
this.scMain.Panel2.SuspendLayout();
@ -315,7 +308,6 @@ private void InitializeComponent()
this.cmsTray.SuspendLayout();
this.pThumbnailView.SuspendLayout();
this.pToolbars.SuspendLayout();
this.tsSocialButtons.SuspendLayout();
this.SuspendLayout();
//
// scMain
@ -435,8 +427,7 @@ private void InitializeComponent()
this.tsbImageHistory,
this.tsddbDebug,
this.tsbDonate,
this.tsbAbout,
this.tssMain3});
this.tsbAbout});
this.tsMain.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow;
this.tsMain.Name = "tsMain";
this.tsMain.ShowItemToolTips = false;
@ -1054,11 +1045,6 @@ private void InitializeComponent()
this.tsbAbout.Name = "tsbAbout";
this.tsbAbout.Click += new System.EventHandler(this.tsbAbout_Click);
//
// tssMain3
//
this.tssMain3.Name = "tssMain3";
resources.ApplyResources(this.tssMain3, "tssMain3");
//
// cmsTaskInfo
//
this.cmsTaskInfo.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -2379,70 +2365,8 @@ private void InitializeComponent()
//
resources.ApplyResources(this.pToolbars, "pToolbars");
this.pToolbars.Controls.Add(this.tsMain);
this.pToolbars.Controls.Add(this.tsSocialButtons);
this.pToolbars.Name = "pToolbars";
//
// tsSocialButtons
//
this.tsSocialButtons.CanOverflow = false;
resources.ApplyResources(this.tsSocialButtons, "tsSocialButtons");
this.tsSocialButtons.DrawCustomBorder = true;
this.tsSocialButtons.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.tsSocialButtons.ImageScalingSize = new System.Drawing.Size(24, 24);
this.tsSocialButtons.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsbTwitter,
this.tsbDiscord,
this.tsbPatreon,
this.tsbBitcoin,
this.tsbGitHub});
this.tsSocialButtons.Name = "tsSocialButtons";
//
// tsbTwitter
//
this.tsbTwitter.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.tsbTwitter.Image = global::ShareX.Properties.Resources.Twitter_32x32;
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
//
this.tsbDiscord.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
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
//
this.tsbPatreon.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
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
//
this.tsbBitcoin.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
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
//
this.tsbGitHub.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
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
//
this.AllowDrop = true;
@ -2476,8 +2400,6 @@ private void InitializeComponent()
this.pThumbnailView.PerformLayout();
this.pToolbars.ResumeLayout(false);
this.pToolbars.PerformLayout();
this.tsSocialButtons.ResumeLayout(false);
this.tsSocialButtons.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@ -2730,13 +2652,6 @@ private void InitializeComponent()
private System.Windows.Forms.ToolStripMenuItem tsmiThumbnailTitleBottom;
private System.Windows.Forms.ToolStripMenuItem tsmiRunAction;
private System.Windows.Forms.Panel pToolbars;
private HelpersLib.ToolStripBorderRight tsSocialButtons;
private System.Windows.Forms.ToolStripButton tsbPatreon;
private System.Windows.Forms.ToolStripButton tsbBitcoin;
private System.Windows.Forms.ToolStripButton tsbTwitter;
private System.Windows.Forms.ToolStripButton tsbDiscord;
private System.Windows.Forms.ToolStripButton tsbGitHub;
private System.Windows.Forms.ToolStripSeparator tssMain3;
private System.Windows.Forms.ToolStripMenuItem tsmiImageSplitter;
private System.Windows.Forms.ToolStripMenuItem tsmiTrayImageSplitter;
private System.Windows.Forms.ToolStripMenuItem tsmiVideoConverter;

View file

@ -833,8 +833,6 @@ public void UpdateTheme()
{
tsMain.Renderer = new ToolStripDarkRenderer();
tsMain.DrawCustomBorder = false;
tsSocialButtons.Renderer = new ToolStripDarkRenderer();
tsSocialButtons.DrawCustomBorder = false;
ShareXResources.ApplyCustomThemeToContextMenuStrip(cmsTray);
ShareXResources.ApplyCustomThemeToContextMenuStrip(cmsTaskInfo);
ttMain.BackColor = ShareXResources.Theme.BackgroundColor;
@ -851,8 +849,6 @@ public void UpdateTheme()
{
tsMain.Renderer = new ToolStripCustomRenderer();
tsMain.DrawCustomBorder = true;
tsSocialButtons.Renderer = new ToolStripCustomRenderer();
tsSocialButtons.DrawCustomBorder = true;
cmsTray.Renderer = new ToolStripCustomRenderer();
cmsTray.Opacity = 1;
cmsTaskInfo.Renderer = new ToolStripCustomRenderer();
@ -870,7 +866,6 @@ public void UpdateTheme()
if (ShareXResources.IsDarkTheme)
{
tsbGitHub.Image = Resources.GitHub_White_32x32;
tsmiQRCode.Image = Resources.barcode_2d_white;
tsmiTrayQRCode.Image = Resources.barcode_2d_white;
tsmiShowQRCode.Image = Resources.barcode_2d_white;
@ -887,7 +882,6 @@ public void UpdateTheme()
}
else
{
tsbGitHub.Image = Resources.GitHub_Black_32x32;
tsmiQRCode.Image = Resources.barcode_2d;
tsmiTrayQRCode.Image = Resources.barcode_2d;
tsmiShowQRCode.Image = Resources.barcode_2d;
@ -1979,31 +1973,6 @@ private void tsbAbout_Click(object sender, EventArgs e)
}
}
private void TsbTwitter_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_TWITTER);
}
private void TsbDiscord_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_DISCORD);
}
private void TsbPatreon_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_DONATE);
}
private void TsbBitcoin_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_DONATE);
}
private void TsbGitHub_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_GITHUB);
}
#endregion Menu events
#region Tray events

View file

@ -498,9 +498,6 @@
<data name="tsbAbout.Text" xml:space="preserve">
<value>About...</value>
</data>
<data name="tssMain3.Size" type="System.Drawing.Size, System.Drawing">
<value>152, 6</value>
</data>
<data name="tsMain.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
@ -511,7 +508,7 @@
<value>6, 6, 6, 0</value>
</data>
<data name="tsMain.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 429</value>
<value>165, 471</value>
</data>
<data name="tsMain.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
@ -2028,36 +2025,6 @@
<data name="pToolbars.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<metadata name="tsSocialButtons.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>654, 17</value>
</metadata>
<data name="tsSocialButtons.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Bottom</value>
</data>
<data name="tsSocialButtons.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 429</value>
</data>
<data name="tsSocialButtons.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>6, 3, 6, 6</value>
</data>
<data name="tsSocialButtons.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 42</value>
</data>
<data name="tsSocialButtons.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="&gt;&gt;tsSocialButtons.Name" xml:space="preserve">
<value>tsSocialButtons</value>
</data>
<data name="&gt;&gt;tsSocialButtons.Type" xml:space="preserve">
<value>ShareX.HelpersLib.ToolStripBorderRight, ShareX.HelpersLib, Version=13.5.1.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;tsSocialButtons.Parent" xml:space="preserve">
<value>pToolbars</value>
</data>
<data name="&gt;&gt;tsSocialButtons.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="pToolbars.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Left</value>
</data>
@ -2082,66 +2049,6 @@
<data name="&gt;&gt;pToolbars.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="tsbTwitter.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
<value>Magenta</value>
</data>
<data name="tsbTwitter.Size" type="System.Drawing.Size, System.Drawing">
<value>30, 30</value>
</data>
<data name="tsbTwitter.Text" xml:space="preserve">
<value>Twitter</value>
</data>
<data name="tsbTwitter.ToolTipText" xml:space="preserve">
<value>Follow our Twitter account</value>
</data>
<data name="tsbDiscord.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
<value>Magenta</value>
</data>
<data name="tsbDiscord.Size" type="System.Drawing.Size, System.Drawing">
<value>30, 30</value>
</data>
<data name="tsbDiscord.Text" xml:space="preserve">
<value>Discord</value>
</data>
<data name="tsbDiscord.ToolTipText" xml:space="preserve">
<value>Join our Discord server</value>
</data>
<data name="tsbPatreon.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
<value>Magenta</value>
</data>
<data name="tsbPatreon.Size" type="System.Drawing.Size, System.Drawing">
<value>30, 30</value>
</data>
<data name="tsbPatreon.Text" xml:space="preserve">
<value>Patreon</value>
</data>
<data name="tsbPatreon.ToolTipText" xml:space="preserve">
<value>Support us on Patreon</value>
</data>
<data name="tsbBitcoin.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
<value>Magenta</value>
</data>
<data name="tsbBitcoin.Size" type="System.Drawing.Size, System.Drawing">
<value>30, 30</value>
</data>
<data name="tsbBitcoin.Text" xml:space="preserve">
<value>Bitcoin</value>
</data>
<data name="tsbBitcoin.ToolTipText" xml:space="preserve">
<value>Support us using cryptocurrency</value>
</data>
<data name="tsbGitHub.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
<value>Magenta</value>
</data>
<data name="tsbGitHub.Size" type="System.Drawing.Size, System.Drawing">
<value>30, 30</value>
</data>
<data name="tsbGitHub.Text" xml:space="preserve">
<value>GitHub</value>
</data>
<data name="tsbGitHub.ToolTipText" xml:space="preserve">
<value>Star our GitHub repo</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@ -2694,12 +2601,6 @@
<data name="&gt;&gt;tsbAbout.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tssMain3.Name" xml:space="preserve">
<value>tssMain3</value>
</data>
<data name="&gt;&gt;tssMain3.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tsmiShowErrors.Name" xml:space="preserve">
<value>tsmiShowErrors</value>
</data>
@ -3714,36 +3615,6 @@
<data name="&gt;&gt;ttMain.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolTip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tsbTwitter.Name" xml:space="preserve">
<value>tsbTwitter</value>
</data>
<data name="&gt;&gt;tsbTwitter.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tsbDiscord.Name" xml:space="preserve">
<value>tsbDiscord</value>
</data>
<data name="&gt;&gt;tsbDiscord.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tsbPatreon.Name" xml:space="preserve">
<value>tsbPatreon</value>
</data>
<data name="&gt;&gt;tsbPatreon.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tsbBitcoin.Name" xml:space="preserve">
<value>tsbBitcoin</value>
</data>
<data name="&gt;&gt;tsbBitcoin.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tsbGitHub.Name" xml:space="preserve">
<value>tsbGitHub</value>
</data>
<data name="&gt;&gt;tsbGitHub.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>MainForm</value>
</data>