Added tray icon with context menu. Removed app icon from taskbar

This commit is contained in:
_TrueLecter_ 2018-10-02 21:44:24 +03:00
parent f03fbf1e0d
commit 2a934dd801
3 changed files with 1358 additions and 11 deletions

View file

@ -67,8 +67,8 @@
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuContextClose = new System.Windows.Forms.ToolStripMenuItem();
this.fullOpacityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fullSelectWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fullOpacityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuFullscreenContext = new System.Windows.Forms.ContextMenuStrip(this.components);
this.modeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuModeStandardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -76,6 +76,7 @@
this.menuModeAllScreensToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.enableClickthroughToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fullExitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components);
this.menuContext.SuspendLayout();
this.menuWindows.SuspendLayout();
this.menuOpacity.SuspendLayout();
@ -443,14 +444,6 @@
this.menuContextClose.Text = global::OnTopReplica.Strings.MenuClose;
this.menuContextClose.Click += new System.EventHandler(this.Menu_Close_click);
//
// fullOpacityToolStripMenuItem
//
this.fullOpacityToolStripMenuItem.DropDown = this.menuOpacity;
this.fullOpacityToolStripMenuItem.Image = global::OnTopReplica.Properties.Resources.window_opacity;
this.fullOpacityToolStripMenuItem.Name = "fullOpacityToolStripMenuItem";
this.fullOpacityToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
this.fullOpacityToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuOpacity;
//
// fullSelectWindowToolStripMenuItem
//
this.fullSelectWindowToolStripMenuItem.DropDown = this.menuWindows;
@ -460,6 +453,14 @@
this.fullSelectWindowToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuWindows;
this.fullSelectWindowToolStripMenuItem.ToolTipText = global::OnTopReplica.Strings.MenuWindowsTT;
//
// fullOpacityToolStripMenuItem
//
this.fullOpacityToolStripMenuItem.DropDown = this.menuOpacity;
this.fullOpacityToolStripMenuItem.Image = global::OnTopReplica.Properties.Resources.window_opacity;
this.fullOpacityToolStripMenuItem.Name = "fullOpacityToolStripMenuItem";
this.fullOpacityToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
this.fullOpacityToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuOpacity;
//
// menuFullscreenContext
//
this.menuFullscreenContext.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -520,12 +521,19 @@
this.fullExitToolStripMenuItem.Text = global::OnTopReplica.Strings.MenuQuitFullscreen;
this.fullExitToolStripMenuItem.Click += new System.EventHandler(this.Menu_Fullscreen_ExitFullscreen_click);
//
// trayIcon
//
this.trayIcon.ContextMenuStrip = this.menuContext;
this.trayIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("trayIcon.Icon")));
this.trayIcon.Text = "OnTopReplica";
this.trayIcon.Visible = true;
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(326, 234);
this.ClientSize = new System.Drawing.Size(330, 238);
this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.HideCaption = true;
@ -534,6 +542,7 @@
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(44, 44);
this.Name = "MainForm";
this.ShowInTaskbar = false;
this.Text = "OnTopReplica";
this.TopMost = true;
this.menuContext.ResumeLayout(false);
@ -596,6 +605,7 @@
private System.Windows.Forms.ToolStripMenuItem menuModeStandardToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem menuModeFullscreenToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem menuModeAllScreensToolStripMenuItem;
private System.Windows.Forms.NotifyIcon trayIcon;
}
}

View file

@ -456,6 +456,5 @@ namespace OnTopReplica {
}
#endregion
}
}

File diff suppressed because it is too large Load diff