mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Notification hover url background is black, added label near notification combobox
This commit is contained in:
parent
9df1827b93
commit
c777060f2c
3 changed files with 19 additions and 7 deletions
|
@ -177,11 +177,11 @@ public enum HotkeyStatus
|
|||
|
||||
public enum PopUpNotificationType
|
||||
{
|
||||
[Description("Show nothing after task is completed")]
|
||||
[Description("Show nothing")]
|
||||
None,
|
||||
[Description("Show tray balloon tip after task is completed")]
|
||||
[Description("Show tray balloon tip")]
|
||||
BalloonTip,
|
||||
[Description("Show toast notification with preview after task is completed")]
|
||||
[Description("Show toast notification with preview")]
|
||||
ToastNotification
|
||||
}
|
||||
}
|
|
@ -139,12 +139,12 @@ protected override void OnPaint(PaintEventArgs e)
|
|||
{
|
||||
Rectangle textRect = new Rectangle(0, 0, rect.Width, 40);
|
||||
|
||||
using (SolidBrush brush = new SolidBrush(Color.FromArgb(150, 255, 255, 255)))
|
||||
using (SolidBrush brush = new SolidBrush(Color.FromArgb(100, 0, 0, 0)))
|
||||
{
|
||||
g.FillRectangle(brush, textRect);
|
||||
}
|
||||
|
||||
g.DrawString(ToastURL, textFont, Brushes.Black, textRect.RectangleOffset(-urlPadding));
|
||||
g.DrawString(ToastURL, textFont, Brushes.White, textRect.RectangleOffset(-urlPadding));
|
||||
}
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(ToastText))
|
||||
|
|
16
ShareX/Forms/TaskSettingsForm.Designer.cs
generated
16
ShareX/Forms/TaskSettingsForm.Designer.cs
generated
|
@ -155,6 +155,7 @@ private void InitializeComponent()
|
|||
this.tpAdvanced = new System.Windows.Forms.TabPage();
|
||||
this.pgTaskSettings = new System.Windows.Forms.PropertyGrid();
|
||||
this.chkUseDefaultAdvancedSettings = new System.Windows.Forms.CheckBox();
|
||||
this.lblAfterTaskNotification = new System.Windows.Forms.Label();
|
||||
this.tcHotkeySettings.SuspendLayout();
|
||||
this.tpTask.SuspendLayout();
|
||||
this.tpGeneral.SuspendLayout();
|
||||
|
@ -454,6 +455,7 @@ private void InitializeComponent()
|
|||
// panelGeneral
|
||||
//
|
||||
this.panelGeneral.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panelGeneral.Controls.Add(this.lblAfterTaskNotification);
|
||||
this.panelGeneral.Controls.Add(this.cboPopUpNotification);
|
||||
this.panelGeneral.Controls.Add(this.chkShowAfterUploadForm);
|
||||
this.panelGeneral.Controls.Add(this.cbShowAfterCaptureTasksForm);
|
||||
|
@ -470,9 +472,9 @@ private void InitializeComponent()
|
|||
//
|
||||
this.cboPopUpNotification.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cboPopUpNotification.FormattingEnabled = true;
|
||||
this.cboPopUpNotification.Location = new System.Drawing.Point(8, 80);
|
||||
this.cboPopUpNotification.Location = new System.Drawing.Point(128, 80);
|
||||
this.cboPopUpNotification.Name = "cboPopUpNotification";
|
||||
this.cboPopUpNotification.Size = new System.Drawing.Size(304, 21);
|
||||
this.cboPopUpNotification.Size = new System.Drawing.Size(224, 21);
|
||||
this.cboPopUpNotification.TabIndex = 20;
|
||||
this.cboPopUpNotification.SelectedIndexChanged += new System.EventHandler(this.cboPopUpNotification_SelectedIndexChanged);
|
||||
//
|
||||
|
@ -1632,6 +1634,15 @@ private void InitializeComponent()
|
|||
this.chkUseDefaultAdvancedSettings.UseVisualStyleBackColor = true;
|
||||
this.chkUseDefaultAdvancedSettings.CheckedChanged += new System.EventHandler(this.chkUseDefaultAdvancedSettings_CheckedChanged);
|
||||
//
|
||||
// lblAfterTaskNotification
|
||||
//
|
||||
this.lblAfterTaskNotification.AutoSize = true;
|
||||
this.lblAfterTaskNotification.Location = new System.Drawing.Point(8, 84);
|
||||
this.lblAfterTaskNotification.Name = "lblAfterTaskNotification";
|
||||
this.lblAfterTaskNotification.Size = new System.Drawing.Size(117, 13);
|
||||
this.lblAfterTaskNotification.TabIndex = 21;
|
||||
this.lblAfterTaskNotification.Text = "After task is completed:";
|
||||
//
|
||||
// TaskSettingsForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
@ -1827,6 +1838,7 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.CheckBox chkOverrideFTP;
|
||||
private System.Windows.Forms.ComboBox cboFTPaccounts;
|
||||
private System.Windows.Forms.ComboBox cboPopUpNotification;
|
||||
private System.Windows.Forms.Label lblAfterTaskNotification;
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue