diff --git a/src/webimtray/WebIMTray/App.Designer.cs b/src/webimtray/WebIMTray/App.Designer.cs
new file mode 100644
index 00000000..571070be
--- /dev/null
+++ b/src/webimtray/WebIMTray/App.Designer.cs
@@ -0,0 +1,77 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.832
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace webImTray {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class App {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal App() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("webImTray.App", typeof(App).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ internal static System.Drawing.Icon Notify {
+ get {
+ object obj = ResourceManager.GetObject("Notify", resourceCulture);
+ return ((System.Drawing.Icon)(obj));
+ }
+ }
+
+ internal static System.Drawing.Icon Notify_offl {
+ get {
+ object obj = ResourceManager.GetObject("Notify_offl", resourceCulture);
+ return ((System.Drawing.Icon)(obj));
+ }
+ }
+ }
+}
diff --git a/src/webimtray/WebIMTray/App.resx b/src/webimtray/WebIMTray/App.resx
new file mode 100644
index 00000000..56698b5e
--- /dev/null
+++ b/src/webimtray/WebIMTray/App.resx
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ icons\Notify.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ icons\Notify_offl.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/src/webimtray/WebIMTray/Main.Designer.cs b/src/webimtray/WebIMTray/Main.Designer.cs
index fb448812..b6528f96 100644
--- a/src/webimtray/WebIMTray/Main.Designer.cs
+++ b/src/webimtray/WebIMTray/Main.Designer.cs
@@ -50,26 +50,26 @@ namespace webImTray {
this.toolStripMenuItem1,
this.exitToolStripMenuItem});
this.notifyMenu.Name = "notifyMenu";
- this.notifyMenu.Size = new System.Drawing.Size(144, 58);
+ this.notifyMenu.Size = new System.Drawing.Size(161, 66);
//
// optionsToolStripMenuItem
//
this.optionsToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("optionsToolStripMenuItem.Image")));
this.optionsToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Silver;
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
- this.optionsToolStripMenuItem.Size = new System.Drawing.Size(143, 24);
+ this.optionsToolStripMenuItem.Size = new System.Drawing.Size(160, 28);
this.optionsToolStripMenuItem.Text = "Options..";
this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsMenu_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
- this.toolStripMenuItem1.Size = new System.Drawing.Size(140, 6);
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(157, 6);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
- this.exitToolStripMenuItem.Size = new System.Drawing.Size(143, 24);
+ this.exitToolStripMenuItem.Size = new System.Drawing.Size(160, 28);
this.exitToolStripMenuItem.Text = "E&xit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.menuExitClick);
//
@@ -81,7 +81,7 @@ namespace webImTray {
this.toolHideWindow});
this.toolbar.Location = new System.Drawing.Point(0, 0);
this.toolbar.Name = "toolbar";
- this.toolbar.Size = new System.Drawing.Size(864, 26);
+ this.toolbar.Size = new System.Drawing.Size(864, 31);
this.toolbar.TabIndex = 1;
this.toolbar.Text = "toolStrip1";
//
@@ -91,7 +91,7 @@ namespace webImTray {
this.toolNavigate.Image = ((System.Drawing.Image)(resources.GetObject("toolNavigate.Image")));
this.toolNavigate.ImageTransparentColor = System.Drawing.Color.Silver;
this.toolNavigate.Name = "toolNavigate";
- this.toolNavigate.Size = new System.Drawing.Size(23, 23);
+ this.toolNavigate.Size = new System.Drawing.Size(23, 28);
this.toolNavigate.Text = "Show pending users";
this.toolNavigate.Click += new System.EventHandler(this.toolNavigate_Click);
//
@@ -101,7 +101,7 @@ namespace webImTray {
this.toolOptions.Image = ((System.Drawing.Image)(resources.GetObject("toolOptions.Image")));
this.toolOptions.ImageTransparentColor = System.Drawing.Color.Silver;
this.toolOptions.Name = "toolOptions";
- this.toolOptions.Size = new System.Drawing.Size(23, 23);
+ this.toolOptions.Size = new System.Drawing.Size(23, 28);
this.toolOptions.Text = "Options..";
this.toolOptions.Click += new System.EventHandler(this.optionsMenu_Click);
//
@@ -112,17 +112,17 @@ namespace webImTray {
this.toolHideWindow.Image = ((System.Drawing.Image)(resources.GetObject("toolHideWindow.Image")));
this.toolHideWindow.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolHideWindow.Name = "toolHideWindow";
- this.toolHideWindow.Size = new System.Drawing.Size(105, 23);
+ this.toolHideWindow.Size = new System.Drawing.Size(129, 28);
this.toolHideWindow.Text = "Hide window";
this.toolHideWindow.Click += new System.EventHandler(this.toolHideWindow_Click);
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.webBrowser1.Location = new System.Drawing.Point(0, 26);
+ this.webBrowser1.Location = new System.Drawing.Point(0, 31);
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
- this.webBrowser1.Size = new System.Drawing.Size(864, 459);
+ this.webBrowser1.Size = new System.Drawing.Size(864, 454);
this.webBrowser1.TabIndex = 2;
this.webBrowser1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.webBrowser1_PreviewKeyDown);
//
@@ -133,7 +133,7 @@ namespace webImTray {
//
// MainWindow
//
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+ this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(864, 485);
this.Controls.Add(this.webBrowser1);
this.Controls.Add(this.toolbar);
diff --git a/src/webimtray/WebIMTray/Main.cs b/src/webimtray/WebIMTray/Main.cs
index a3f841f2..0c005eb4 100644
--- a/src/webimtray/WebIMTray/Main.cs
+++ b/src/webimtray/WebIMTray/Main.cs
@@ -10,7 +10,6 @@ using System.Data;
namespace webImTray {
public partial class MainWindow : LockNotificationForm {
-
public MainWindow() {
InitializeComponent();
PostInitialize();
@@ -87,8 +86,12 @@ namespace webImTray {
void webBrowser1_DocumentTitleChanged(object sender, EventArgs e) {
string s = webBrowser1.DocumentTitle;
- if (s == null || s.Length == 0)
+ if (s == null || s.Length == 0) {
s = "Web Messenger [loading]";
+ this.notifyIcon.Icon = App.Notify_offl;
+ } else {
+ this.notifyIcon.Icon = App.Notify;
+ }
this.Text = s;
}
diff --git a/src/webimtray/WebIMTray/Main.resx b/src/webimtray/WebIMTray/Main.resx
index 8965f0bd..9bab1cc3 100644
--- a/src/webimtray/WebIMTray/Main.resx
+++ b/src/webimtray/WebIMTray/Main.resx
@@ -135,7 +135,7 @@
- AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAB
+ AAABAAEAEBAAAAAACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAB
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
@@ -153,10 +153,10 @@
zADMZv8A/5kAAP+ZMwD/mWYA/5mZAP+ZzAD/mf8A/8wAAP/MMwD/zGYA/8yZAP/MzAD/zP8A//8zAMz/
ZgD//5kA///MAGZm/wBm/2YAZv//AP9mZgD/Zv8A//9mACEApQBfX18Ad3d3AIaGhgCWlpYAy8vLALKy
sgDX19cA3d3dAOPj4wDq6uoA8fHxAPj4+ADw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
- AAD///8ACgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKi4uLi4uLi4uLCgqLi4sKCouLi4uL
- i4uLiwoKi4uLCgqtrYuLi4uLi4sKCouLiwoKCq2tra2tra0KCq2trQoKCgoKra2tra0KCq2trQoKCgoK
- Cgqtra0KCq2trQoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCtSzswoKs7OzCgoKCgoKCtTU1NSzCrOzs7MK
- CgoKCgrU1NTU1Aqzs7OzCgoKCgoK1NTU1NQK1NTU1AoKCgoKCgrU1NQKCtTU1AoKCgoKCgoKCgoKCgoK
+ AAD///8ACgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoK7Ozs7Ozs7OzsCgrs7OwKCuzs7Ozs
+ 7Ozs7AoK7OzsCgqSkuzs7Ozs7OwKCuzs7AoKCpKSkpKSkpIKCpKSkgoKCgoKkpKSkpIKCpKSkgoKCgoK
+ CgqSkpIKCpKSkgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCu/39woK9/f3CgoKCgoKCu/v7+/vCvf39/cK
+ CgoKCgrv7+/v7wr39/f3CgoKCgoK7+/v7+8K7+/v7woKCgoKCgrv7+8KCu/v7woKCgoKCgoKCgoKCgoK
CgoKCgoKCgoKCgoKCgoKCgoKCgoKCv//AAD//wAAgDEAAIAxAACAMQAAwGMAAODHAADxjwAA//8AAPGP
AADghwAA4IcAAOCHAADxjwAA//8AAP//AAA=
diff --git a/src/webimtray/WebIMTray/webImTray.csproj b/src/webimtray/WebIMTray/webImTray.csproj
index ea9bfd15..fda1a5d9 100644
--- a/src/webimtray/WebIMTray/webImTray.csproj
+++ b/src/webimtray/WebIMTray/webImTray.csproj
@@ -91,6 +91,13 @@
+
+
+
+ True
+ True
+ App.resx
+
Form
@@ -136,6 +143,11 @@
OptionsSoundsPanel.cs
+
+ Designer
+ ResXFileCodeGenerator
+ App.Designer.cs
+
Designer
About.cs