From 874559a5b1fae865d38d27fb2a8c564139fbf7f8 Mon Sep 17 00:00:00 2001 From: Michael Ellnebrand Date: Sun, 12 Mar 2023 21:49:13 +0100 Subject: [PATCH] Added alternative icon theme --- App.config | 3 + NotificationAreaIcon.ico | Bin 45451 -> 0 bytes Properties/Resources.Designer.cs | 20 +++++ Properties/Resources.resx | 6 ++ Properties/Settings.Designer.cs | 12 +++ Properties/Settings.settings | 3 + Resources/AltClampFalse.ico | Bin 0 -> 38078 bytes Resources/AltClampTrue.ico | Bin 0 -> 38078 bytes WindowTool 128x128.ico | Bin 0 -> 140206 bytes WindowTool.csproj | 14 +++- mainForm.Designer.cs | 133 ++++++++++++++++--------------- mainForm.cs | 32 +++++++- 12 files changed, 153 insertions(+), 70 deletions(-) delete mode 100644 NotificationAreaIcon.ico create mode 100644 Resources/AltClampFalse.ico create mode 100644 Resources/AltClampTrue.ico create mode 100644 WindowTool 128x128.ico diff --git a/App.config b/App.config index 5ef77f1..332a430 100644 --- a/App.config +++ b/App.config @@ -10,6 +10,9 @@ True + + True + \ No newline at end of file diff --git a/NotificationAreaIcon.ico b/NotificationAreaIcon.ico deleted file mode 100644 index 5d06b9f2857b39f0b5d3395e3e7999ba6bcc3a38..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 45451 zcmeHQ2V4`$_n!>`f|LYoh=qWPSiy=FB49<4^YlDC1oTw&lwubJvRJ^5oLDFdo((IW z*bpR96!ApE*^r{)4iE(uM5G8w{xgB)x2_3AY2KgtFnKfc-n{pHZ`JR%LyWA^>Ijs5h#!!DKZ6<{ARP;Z)WQ z%>g()gwV$Z;XMI(w3^Td>rl`75JDdtETRL@{VV`mZLBA#x6x?>)v8aLXgM8elUh`Q z#BO=`LR4EZeS$eS_n^ybSfM+OojMkPKmAlI=0Z$B#ciVP3IH_XP{!`KhR+9}P530s zu`|}%zkP1CsB3a3{`*Xq&9AyUKAzJjCUVX{?Yi7cqHm<1?do<=St)r4DzgMu3+ z8%zG|YM{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)rstD*{3RJn>WtEg@jHLIdrNKxFR@s!T)BE^*wXEaZX4KoL3;{W;JELdqxwMGD* zlhO4>2y;VSC(*SEuhlRVfO0ksXqSq=Rt(U#)Ng-(f4R?!>pQ+gx~hE2uPp|I@Ab7& zn>?YnzV@m2iS?}$xW0G$gdeq0YJ3R!Z}p$hL;XH9dXGx}4m7e)$dbzqWuJJLg}y~c ze5aQDPK#`lTy7})Kg#5HQbZd;iC8q0ee}+h&`r>q-lI08{hHp3%6kvmkoE~( zHGPv0#e|R}mm4bngl>7?#3S1zmmAtXfrCnsO>!pq-)f(%vp(fk`<36jYKZs~u_VWz z+(wjT(dM*IUK`t(*MC`llWoHogf^x9`r1a=i0wr9Lf+Q3m5DxxevR#hvj4TVW!WeD zRG0F%*siiK9e*P|b+Jd5`BvLi_R+l$F<$>#>W6fFZG!gEJ&-gGUxCH(YwiAj>?eI} z0Dns1YB0D2jM=~$=`@3x3$vsEKJh4kYuQTCI<~5Wo>Q=3X2VQ8r{K_GrIAv7_a`b0 z)SrCJ)l^2Z^7_~1Tv}UyVjN0Pq!ZyGXl?z8?`g{#S0g<&^(W5(MfR!xv!J&Ag#Tph z1a5-XWS{6SYkq2d`V)Gnv@ZC`u_kPyHX_#rKiMwP57DY~`4`VikWR!W_an+gf1)px vHI}#k5wcVo5)y*8y8vc3wJ)k8`?X}$7ah_Kn$R;(zCt~-GL&alJ}>=0A=}t% diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 466807d..9145df4 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -60,6 +60,26 @@ internal Resources() { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon AltClampFalse { + get { + object obj = ResourceManager.GetObject("AltClampFalse", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon AltClampTrue { + get { + object obj = ResourceManager.GetObject("AltClampTrue", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// diff --git a/Properties/Resources.resx b/Properties/Resources.resx index b9d5cf1..490df85 100644 --- a/Properties/Resources.resx +++ b/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\AltClampFalse.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\AltClampTrue.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\ClampFalse.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs index 71fb320..1a1a7d3 100644 --- a/Properties/Settings.Designer.cs +++ b/Properties/Settings.Designer.cs @@ -34,5 +34,17 @@ public bool ClampedToScreen { this["ClampedToScreen"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool AltIcon { + get { + return ((bool)(this["AltIcon"])); + } + set { + this["AltIcon"] = value; + } + } } } diff --git a/Properties/Settings.settings b/Properties/Settings.settings index c09191c..1630517 100644 --- a/Properties/Settings.settings +++ b/Properties/Settings.settings @@ -5,5 +5,8 @@ True + + True + \ No newline at end of file diff --git a/Resources/AltClampFalse.ico b/Resources/AltClampFalse.ico new file mode 100644 index 0000000000000000000000000000000000000000..d147f31d84e7d128e031f0f5c4008a746bad630e GIT binary patch literal 38078 zcmeI*y=@yo6ot`o6OJ9aEH%O0?!iSkat&_6^~k#cApu%k?}$SIzC02r3Vi%~-yA9B z7@xN9r>C*~{4#$27~}I8=~rzGMhh}ng06D_dV0>>=~SSF87%~qm}(H zm&>!uOM^2WSM}HZrTgm^|2l&e{a?SH-`}1?Is^UR_F8R7|NA#iXQsdY$w&K)fBxHz zr~UZnKlx~%@y~y|@w6ZR{3jpnGyeH+H=g$6pa0~eea1ik?Z(r7{PUlDw9okGzukD+ zkAMD?kM$i z=Rf&qpYhLsyYaLi|NJK(?KA%QZ#SOyHy{AWcotgIfum3xl?e7fMoxywB qUmx=*{~zwP=e6Ul*Y|pVtV|*QBeBUnHP2=}=*>B&!erz*e3Mim}0tzVb{}gzB{`2B;zQL-K z)%<+(qgJ<^!_o7(ZT>tyat1ojcTUY_&mcXQ+5Fke^w)R3@0n(2&*02+xzGF=t?Ylf zTwYvW8=UdDs=w~9-QTwO*BPwn|MvC#{{9@&8R-AM*J?xh-@kD>GyU~XKH6ve^WSbf z?Z-d=$w&K)fBxHzr~UZnKlx~%@y~y|@w6ZR{3jpnGyeH+H=g$6pa0~eea1ik?Z(r7 z{PUlDw9okGzukD+kAMD?kM$i=Rf&qpYhLsyYaLi|NJK(?KA%QZ#SOyNQD%gfpR`~5!aJw3|n%(T~k{ol!Ke`m1n3_jBS p`j|)g|8TE8uN`l_zSsL}ecoGpd%OY)D4>7>3Mim}0t)mM_zNJ6eIWn< literal 0 HcmV?d00001 diff --git a/WindowTool 128x128.ico b/WindowTool 128x128.ico new file mode 100644 index 0000000000000000000000000000000000000000..ec80157078f096702f6a8976813620a892876d60 GIT binary patch literal 140206 zcmeI52apuS_s5qYoDx(-6cGgkK}AJCf+&ZAiV_TE2IW9eP(cAjjJFsNb1YG+R6wQF zD(m-CtBhcY5f$(!DkePCzhXczXSDzQX|B(?+1cIM+qs>Y-Pd*RW_Ch%zwhgQ{rYuJ zcOuas(KNBuRtbIVkeJXok(i!HB(~pv)9=}vClXcqT89psem|(6JH2Hh(W6K8?=Fc% z%bgR6L4!8^?siZj@x+isqN1Yu{_XnxS&2k4S$)5(L1I?B28nKoL_$Z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q@7)fF{uljk+YQH2pGGFs zv}-y?vi^(5x8TzLr|LH8|4aX0`v0l*Li~U6Z|~jni$wpYmUFlMm-YWsF+vxViv2J9 zf0UN|ng8Q#|LHpfO|t(_LHdZbWinExe netcoreapp3.1 true + WindowTool 128x128.ico @@ -14,6 +15,10 @@ none + + + + True @@ -35,13 +40,16 @@ - - PreserveNewest - SettingsSingleFileGenerator Settings.Designer.cs + + PreserveNewest + + + PreserveNewest + PreserveNewest diff --git a/mainForm.Designer.cs b/mainForm.Designer.cs index ff615f0..ee54c17 100644 --- a/mainForm.Designer.cs +++ b/mainForm.Designer.cs @@ -28,95 +28,99 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); - this.mainMenuStrip = new System.Windows.Forms.MenuStrip(); - this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components); - this.notifyMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); - this.settingsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.clampMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.exitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.mainMenuStrip.SuspendLayout(); - this.notifyMenuStrip.SuspendLayout(); - this.SuspendLayout(); + mainMenuStrip = new System.Windows.Forms.MenuStrip(); + aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + notifyIcon = new System.Windows.Forms.NotifyIcon(components); + notifyMenuStrip = new System.Windows.Forms.ContextMenuStrip(components); + settingsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + clampMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + iconMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + exitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + mainMenuStrip.SuspendLayout(); + notifyMenuStrip.SuspendLayout(); + SuspendLayout(); // // mainMenuStrip // - this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.aboutToolStripMenuItem}); - this.mainMenuStrip.Location = new System.Drawing.Point(0, 0); - this.mainMenuStrip.Name = "mainMenuStrip"; - this.mainMenuStrip.Size = new System.Drawing.Size(620, 24); - this.mainMenuStrip.TabIndex = 0; - this.mainMenuStrip.Text = "menuStrip1"; + mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { aboutToolStripMenuItem }); + mainMenuStrip.Location = new System.Drawing.Point(0, 0); + mainMenuStrip.Name = "mainMenuStrip"; + mainMenuStrip.Size = new System.Drawing.Size(620, 24); + mainMenuStrip.TabIndex = 0; + mainMenuStrip.Text = "menuStrip1"; // // aboutToolStripMenuItem // - this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(52, 20); - this.aboutToolStripMenuItem.Text = "About"; + aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + aboutToolStripMenuItem.Size = new System.Drawing.Size(52, 20); + aboutToolStripMenuItem.Text = "About"; // // notifyIcon // - this.notifyIcon.ContextMenuStrip = this.notifyMenuStrip; - this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon"))); - this.notifyIcon.Text = "Window Tool"; - this.notifyIcon.Visible = true; - this.notifyIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon_MouseDoubleClick); + notifyIcon.ContextMenuStrip = notifyMenuStrip; + notifyIcon.Icon = (System.Drawing.Icon)resources.GetObject("notifyIcon.Icon"); + notifyIcon.Text = "Window Tool"; + notifyIcon.Visible = true; + notifyIcon.MouseDoubleClick += notifyIcon_MouseDoubleClick; // // notifyMenuStrip // - this.notifyMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.settingsMenuItem, - this.clampMenuItem, - this.exitMenuItem}); - this.notifyMenuStrip.Name = "notifyMenuStrip"; - this.notifyMenuStrip.Size = new System.Drawing.Size(161, 70); + notifyMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { settingsMenuItem, clampMenuItem, iconMenuItem, exitMenuItem }); + notifyMenuStrip.Name = "notifyMenuStrip"; + notifyMenuStrip.Size = new System.Drawing.Size(161, 92); // // settingsMenuItem // - this.settingsMenuItem.Name = "settingsMenuItem"; - this.settingsMenuItem.Size = new System.Drawing.Size(160, 22); - this.settingsMenuItem.Text = "Settings"; - this.settingsMenuItem.Visible = false; - this.settingsMenuItem.Click += new System.EventHandler(this.settingsMenuItem_Click); + settingsMenuItem.Name = "settingsMenuItem"; + settingsMenuItem.Size = new System.Drawing.Size(160, 22); + settingsMenuItem.Text = "Settings"; + settingsMenuItem.Visible = false; + settingsMenuItem.Click += settingsMenuItem_Click; // // clampMenuItem // - this.clampMenuItem.CheckOnClick = true; - this.clampMenuItem.Name = "clampMenuItem"; - this.clampMenuItem.Size = new System.Drawing.Size(160, 22); - this.clampMenuItem.Text = "Clamp to screen"; - this.clampMenuItem.Click += new System.EventHandler(this.clampMenuItem_Click); + clampMenuItem.CheckOnClick = true; + clampMenuItem.Name = "clampMenuItem"; + clampMenuItem.Size = new System.Drawing.Size(160, 22); + clampMenuItem.Text = "Clamp to screen"; + clampMenuItem.Click += clampMenuItem_Click; + // + // iconMenuItem + // + iconMenuItem.CheckOnClick = true; + iconMenuItem.Name = "iconMenuItem"; + iconMenuItem.Size = new System.Drawing.Size(160, 22); + iconMenuItem.Text = "Alternate icon"; + iconMenuItem.Click += iconMenuItem_Click; // // exitMenuItem // - this.exitMenuItem.Name = "exitMenuItem"; - this.exitMenuItem.Size = new System.Drawing.Size(160, 22); - this.exitMenuItem.Text = "Exit"; - this.exitMenuItem.Click += new System.EventHandler(this.exitMenuItem_Click); + exitMenuItem.Name = "exitMenuItem"; + exitMenuItem.Size = new System.Drawing.Size(160, 22); + exitMenuItem.Text = "Exit"; + exitMenuItem.Click += exitMenuItem_Click; // // MainForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 25F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(620, 406); - this.Controls.Add(this.mainMenuStrip); - this.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.MainMenuStrip = this.mainMenuStrip; - this.Margin = new System.Windows.Forms.Padding(5); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "MainForm"; - this.Text = "WindowTool"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.mainForm_FormClosing); - this.mainMenuStrip.ResumeLayout(false); - this.mainMenuStrip.PerformLayout(); - this.notifyMenuStrip.ResumeLayout(false); - this.ResumeLayout(false); - this.PerformLayout(); - + AutoScaleDimensions = new System.Drawing.SizeF(11F, 25F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + ClientSize = new System.Drawing.Size(620, 406); + Controls.Add(mainMenuStrip); + Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + MainMenuStrip = mainMenuStrip; + Margin = new System.Windows.Forms.Padding(5); + MaximizeBox = false; + MinimizeBox = false; + Name = "MainForm"; + Text = "WindowTool"; + FormClosing += mainForm_FormClosing; + mainMenuStrip.ResumeLayout(false); + mainMenuStrip.PerformLayout(); + notifyMenuStrip.ResumeLayout(false); + ResumeLayout(false); + PerformLayout(); } #endregion @@ -128,5 +132,6 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem exitMenuItem; private System.Windows.Forms.ToolStripMenuItem settingsMenuItem; private System.Windows.Forms.ToolStripMenuItem clampMenuItem; + private System.Windows.Forms.ToolStripMenuItem iconMenuItem; } } diff --git a/mainForm.cs b/mainForm.cs index 70bd26d..b8c3d98 100644 --- a/mainForm.cs +++ b/mainForm.cs @@ -19,12 +19,13 @@ public partial class MainForm : Form public MainForm() { InitializeComponent(); - + hotkeyHandler = new HotkeyHandler(); hotkeyHandler.Start(); Application.ApplicationExit += Application_ApplicationExit; + iconMenuItem.Checked = Properties.Settings.Default.AltIcon; bool isClamped = Properties.Settings.Default.ClampedToScreen; handleSetClampToScreen(isClamped); @@ -79,6 +80,10 @@ private void clampMenuItem_Click(object sender, EventArgs e) { handleSetClampToScreen(clampMenuItem.Checked); } + private void iconMenuItem_Click(object sender, EventArgs e) + { + updateIcon(); + } private void handleSetClampToScreen(bool isClamped) { @@ -86,15 +91,36 @@ private void handleSetClampToScreen(bool isClamped) Properties.Settings.Default.Save(); clampMenuItem.Checked = isClamped; hotkeyHandler.SetClampToScreen(isClamped); + updateIcon(); + /* if (isClamped) { - notifyIcon.Icon = WindowTool.Properties.Resources.ClampTrue; + notifyIcon.Icon = iconMenuItem.Checked ? Properties.Resources.ClampTrue : Properties.Resources.AltClampTrue; + //notifyIcon.Icon = WindowTool.Properties.Resources.AltClampTrue; + } + else + { + notifyIcon.Icon = iconMenuItem.Checked ? Properties.Resources.ClampFalse : Properties.Resources.AltClampFalse; + //notifyIcon.Icon = WindowTool.Properties.Resources.AltClampFalse; + } + */ + } + + private void updateIcon() + { + Properties.Settings.Default.AltIcon = iconMenuItem.Checked; + Properties.Settings.Default.Save(); + + if (clampMenuItem.Checked) + { + notifyIcon.Icon = iconMenuItem.Checked ? Properties.Resources.AltClampTrue : Properties.Resources.ClampTrue; } else { - notifyIcon.Icon = WindowTool.Properties.Resources.ClampFalse; + notifyIcon.Icon = iconMenuItem.Checked ? Properties.Resources.AltClampFalse : Properties.Resources.ClampFalse; } } + } }