mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Move news panel to front, dark theme news close button
This commit is contained in:
parent
1d4e24a8e7
commit
b683374cc2
3 changed files with 129 additions and 78 deletions
2
ShareX/Forms/MainForm.Designer.cs
generated
2
ShareX/Forms/MainForm.Designer.cs
generated
|
@ -2231,8 +2231,8 @@ private void InitializeComponent()
|
|||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.SystemColors.Window;
|
||||
this.Controls.Add(this.flpSocialButtons);
|
||||
this.Controls.Add(this.pNews);
|
||||
this.Controls.Add(this.flpSocialButtons);
|
||||
this.Controls.Add(this.pThumbnailView);
|
||||
this.Controls.Add(this.scMain);
|
||||
this.Controls.Add(this.tsMain);
|
||||
|
|
|
@ -783,6 +783,9 @@ private void UpdateTheme()
|
|||
pThumbnailView.BackColor = ShareXResources.DarkBackgroundColor;
|
||||
lblThumbnailViewTip.ForeColor = ShareXResources.DarkTextColor;
|
||||
flpSocialButtons.BackColor = ShareXResources.DarkBackgroundColor;
|
||||
btnCloseNews.FlatAppearance.BorderColor = ShareXResources.DarkBorderColor;
|
||||
btnCloseNews.ForeColor = ShareXResources.DarkTextColor;
|
||||
btnCloseNews.BackColor = ShareXResources.DarkBackgroundVariantColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -800,6 +803,9 @@ private void UpdateTheme()
|
|||
pThumbnailView.BackColor = SystemColors.Window;
|
||||
lblThumbnailViewTip.ForeColor = Color.Silver;
|
||||
flpSocialButtons.BackColor = SystemColors.Window;
|
||||
btnCloseNews.FlatAppearance.BorderColor = SystemColors.ControlText;
|
||||
btnCloseNews.ForeColor = SystemColors.ControlText;
|
||||
btnCloseNews.BackColor = SystemColors.Window;
|
||||
}
|
||||
|
||||
pbPreview.UpdateTheme();
|
||||
|
|
|
@ -1776,68 +1776,23 @@
|
|||
<metadata name="timerTraySingleClick.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>405, 17</value>
|
||||
</metadata>
|
||||
<data name=">>btnCloseNews.Name" xml:space="preserve">
|
||||
<value>btnCloseNews</value>
|
||||
</data>
|
||||
<data name=">>btnCloseNews.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>btnCloseNews.Parent" xml:space="preserve">
|
||||
<value>pNews</value>
|
||||
</data>
|
||||
<data name=">>btnCloseNews.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>ucNews.Name" xml:space="preserve">
|
||||
<value>ucNews</value>
|
||||
</data>
|
||||
<data name=">>ucNews.Type" xml:space="preserve">
|
||||
<value>ShareX.NewsListControl, ShareX, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>ucNews.Parent" xml:space="preserve">
|
||||
<value>pNews</value>
|
||||
</data>
|
||||
<data name=">>ucNews.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="pNews.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
</data>
|
||||
<data name="pNews.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>160, 0</value>
|
||||
</data>
|
||||
<data name="pNews.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>674, 429</value>
|
||||
</data>
|
||||
<data name="pNews.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="pNews.Visible" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name=">>pNews.Name" xml:space="preserve">
|
||||
<value>pNews</value>
|
||||
</data>
|
||||
<data name=">>pNews.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pNews.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pNews.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
</data>
|
||||
<data name="btnCloseNews.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Bottom, Right</value>
|
||||
</data>
|
||||
<data name="btnCloseNews.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
|
||||
<value>Flat</value>
|
||||
</data>
|
||||
<data name="btnCloseNews.Font" type="System.Drawing.Font, System.Drawing">
|
||||
<value>Arial, 11.25pt</value>
|
||||
</data>
|
||||
<data name="btnCloseNews.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="btnCloseNews.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>560, 400</value>
|
||||
<value>552, 392</value>
|
||||
</data>
|
||||
<data name="btnCloseNews.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>91, 23</value>
|
||||
<value>99, 31</value>
|
||||
</data>
|
||||
<data name="btnCloseNews.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>5</value>
|
||||
|
@ -1881,6 +1836,33 @@
|
|||
<data name=">>ucNews.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="pNews.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
</data>
|
||||
<data name="pNews.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>160, 0</value>
|
||||
</data>
|
||||
<data name="pNews.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>674, 429</value>
|
||||
</data>
|
||||
<data name="pNews.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="pNews.Visible" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name=">>pNews.Name" xml:space="preserve">
|
||||
<value>pNews</value>
|
||||
</data>
|
||||
<data name=">>pNews.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pNews.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pNews.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>lblThumbnailViewTip.Name" xml:space="preserve">
|
||||
<value>lblThumbnailViewTip</value>
|
||||
</data>
|
||||
|
@ -1998,6 +1980,90 @@
|
|||
<data name="flpSocialButtons.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
|
||||
<value>GrowAndShrink</value>
|
||||
</data>
|
||||
<data name=">>pbPatreonButton.Name" xml:space="preserve">
|
||||
<value>pbPatreonButton</value>
|
||||
</data>
|
||||
<data name=">>pbPatreonButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pbPatreonButton.Parent" xml:space="preserve">
|
||||
<value>flpSocialButtons</value>
|
||||
</data>
|
||||
<data name=">>pbPatreonButton.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>pbBitcoinButton.Name" xml:space="preserve">
|
||||
<value>pbBitcoinButton</value>
|
||||
</data>
|
||||
<data name=">>pbBitcoinButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pbBitcoinButton.Parent" xml:space="preserve">
|
||||
<value>flpSocialButtons</value>
|
||||
</data>
|
||||
<data name=">>pbBitcoinButton.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name=">>pbTwitterButton.Name" xml:space="preserve">
|
||||
<value>pbTwitterButton</value>
|
||||
</data>
|
||||
<data name=">>pbTwitterButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pbTwitterButton.Parent" xml:space="preserve">
|
||||
<value>flpSocialButtons</value>
|
||||
</data>
|
||||
<data name=">>pbTwitterButton.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name=">>pbDiscordButton.Name" xml:space="preserve">
|
||||
<value>pbDiscordButton</value>
|
||||
</data>
|
||||
<data name=">>pbDiscordButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pbDiscordButton.Parent" xml:space="preserve">
|
||||
<value>flpSocialButtons</value>
|
||||
</data>
|
||||
<data name=">>pbDiscordButton.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
</data>
|
||||
<data name=">>pbSocialHideButton.Name" xml:space="preserve">
|
||||
<value>pbSocialHideButton</value>
|
||||
</data>
|
||||
<data name=">>pbSocialHideButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>pbSocialHideButton.Parent" xml:space="preserve">
|
||||
<value>flpSocialButtons</value>
|
||||
</data>
|
||||
<data name=">>pbSocialHideButton.ZOrder" xml:space="preserve">
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="flpSocialButtons.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>614, 379</value>
|
||||
</data>
|
||||
<data name="flpSocialButtons.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>215, 45</value>
|
||||
</data>
|
||||
<data name="flpSocialButtons.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>6</value>
|
||||
</data>
|
||||
<data name=">>flpSocialButtons.Name" xml:space="preserve">
|
||||
<value>flpSocialButtons</value>
|
||||
</data>
|
||||
<data name=">>flpSocialButtons.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>flpSocialButtons.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>flpSocialButtons.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
</data>
|
||||
<metadata name="ttMain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>567, 17</value>
|
||||
</metadata>
|
||||
<data name="pbPatreonButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 0</value>
|
||||
</data>
|
||||
|
@ -2013,9 +2079,6 @@
|
|||
<data name="pbPatreonButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<metadata name="ttMain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>567, 17</value>
|
||||
</metadata>
|
||||
<data name="pbPatreonButton.ToolTip" xml:space="preserve">
|
||||
<value>Support us on Patreon</value>
|
||||
</data>
|
||||
|
@ -2163,27 +2226,9 @@
|
|||
<data name=">>pbSocialHideButton.ZOrder" xml:space="preserve">
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="flpSocialButtons.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>614, 379</value>
|
||||
</data>
|
||||
<data name="flpSocialButtons.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>215, 45</value>
|
||||
</data>
|
||||
<data name="flpSocialButtons.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>6</value>
|
||||
</data>
|
||||
<data name=">>flpSocialButtons.Name" xml:space="preserve">
|
||||
<value>flpSocialButtons</value>
|
||||
</data>
|
||||
<data name=">>flpSocialButtons.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>flpSocialButtons.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>flpSocialButtons.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<metadata name="ttMain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>567, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
|
Loading…
Reference in a new issue