From 6787d38678bce3fcde6a6095a97a79b2004bf8e4 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Mon, 13 Nov 2023 10:28:45 +0100 Subject: [PATCH] Main window icon --- app/Properties/Resources.Designer.cs | 30 +++++++++++++++++++++++++++ app/Properties/Resources.resx | 9 ++++++++ app/Resources/dot-eco.ico | Bin 0 -> 16958 bytes app/Resources/dot-standard.ico | Bin 0 -> 16958 bytes app/Resources/dot-ultimate.ico | Bin 0 -> 16958 bytes app/Settings.Designer.cs | 2 +- app/Settings.cs | 9 +++++--- 7 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 app/Resources/dot-eco.ico create mode 100644 app/Resources/dot-standard.ico create mode 100644 app/Resources/dot-ultimate.ico diff --git a/app/Properties/Resources.Designer.cs b/app/Properties/Resources.Designer.cs index 1feaca86..4d557b78 100644 --- a/app/Properties/Resources.Designer.cs +++ b/app/Properties/Resources.Designer.cs @@ -110,6 +110,36 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon dot_eco { + get { + object obj = ResourceManager.GetObject("dot_eco", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon dot_standard { + get { + object obj = ResourceManager.GetObject("dot_standard", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon dot_ultimate { + get { + object obj = ResourceManager.GetObject("dot_ultimate", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// diff --git a/app/Properties/Resources.resx b/app/Properties/Resources.resx index 0bd6a5cb..29c0043f 100644 --- a/app/Properties/Resources.resx +++ b/app/Properties/Resources.resx @@ -292,4 +292,13 @@ ..\Resources\Font.otf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\dot-eco.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\dot-standard.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\dot-ultimate.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/app/Resources/dot-eco.ico b/app/Resources/dot-eco.ico new file mode 100644 index 0000000000000000000000000000000000000000..972ddc275cf5b90f9e9aa4d6016717b7ef1a971c GIT binary patch literal 16958 zcmeI4!EVAZ3_v|?Et7T_(xhF-k>mbgXg@}8&~g}m0Dn-4!WsT#{6TlzVH&ejQmO)j zrfyS&nTko9IQDbmrU4D$2LF0J!1oSx-vOQhpo<5d0uK*5uUf)|_*V2ibG#5TXXcy1#+7~lP{h5wa z?shzRzBmW!m)n=3`Y87Gjr)B@w&#JZ*k|r9lcF)>tZy^+#K2}ApmlmC4!gDd(Y4(E z_~mFnvh=(VM9!GQ{<1oTXb0z*K35lx{bgC(Ioi{6@2MX(*AAv zo#~e|uIK6!|EtO8CS1>r8E3s~pZ}8oulxRg?dw0vB@M^{F=tLIs>`1_Q{9luc2e29-rBGI(f<7?vy|avK03PPp$c`q{Q(a5IK=<} literal 0 HcmV?d00001 diff --git a/app/Resources/dot-standard.ico b/app/Resources/dot-standard.ico new file mode 100644 index 0000000000000000000000000000000000000000..e3bbfdfb1a1bbf32921cd69a69420ba3adeef30b GIT binary patch literal 16958 zcmeI4%}&BV5P-*c@Zdob6R&dQ=o{FWn9zFhjo=Y@1AGH+ws4U*DQ{2{TJd14J6kp- zwAvqLyNe8_9lG64XTI5;?QV$xXX4LsKNfC(@GCcp%k025#WOn{oe+8;Xct2>DU_bmzBFbTXg-`o((@jTX}zPBlT z8-Li3efOp4@2>B~@A2G=*1k7RXHL(Q?T6kM?a$*|^s&ylW8{D_ZyN7v7H)`o4~>cL z>*IxYm&~7{YJZxy2W$(dU$+l!_3QLq@wAnJZ1bApu6$P#8Q9bpqSxSv zPN}b>$nz?;jieY~sC{XwPsYBZc3;NEbU!c_`~2B)+B9aA^>vMPWw9qE}tXk*!iC)!chX3BcP*1b8bF&0Li1=_?)*EN)J zt*c9yFKzVJwVASB8#{GfL+MvtUBZ`>?*FHr|4)7VKlSH7%oE0QfLIHuo3C`#%htAy zJ@=%E;WdCruJs!7U&KDL;Qc@{_eQ$L^*{9*j{RbzDoUXa;9jaFmA~B&?UME^b1Cgz ZZS7b7DF42sS<-McUpTtuArHFR{Q$-#`l$c_ literal 0 HcmV?d00001 diff --git a/app/Resources/dot-ultimate.ico b/app/Resources/dot-ultimate.ico new file mode 100644 index 0000000000000000000000000000000000000000..fd34b088e2e02ff844dc45d2d7b9d04502f3f117 GIT binary patch literal 16958 zcmeHPL2kk@5ZtPV9(pKJrC#eJM}APNA4{IV58x-^C*cS5*h5u1W3Y%QRE=@6Ml982 zYh&;3%-T)~Qbq3Y*=)DPRhi0;Yf|U<#N5 zrhqA63YY?>fGLn$0q3?Jm;(*a0^1JQWVIT9cvYBgYxQnx*pmYaad1hUSp!e_-xWmm)O)cdq%N z>K?gA%Q!BzPPykHmkH1UF~2cvo0~_fKk(*#Y7EZDG3wNubIk*9)_$yYf6Sk4my1h^ zAH>(Hebi!+l6S5-%C)BkYUcoAdmz?9)B0TX?BfUA`B_DicZ@ynlXtGM;NBF%zsbd^ zj~{Sv3*oPF1{A_Q?14UY%Qe>c7jgD!*8kS`e^baF&^rHb{r-Q`fB*45g7vR`25fTO z&rlQlQZ)C@I^bT&eIC%Ci!n;K$d%8fGJ=Km;z-hu+@95?{~39 zD*o~<@=E(D@4WHAkI)$F@&oR~CT{=$ literal 0 HcmV?d00001 diff --git a/app/Settings.Designer.cs b/app/Settings.Designer.cs index a28fc544..fe197056 100644 --- a/app/Settings.Designer.cs +++ b/app/Settings.Designer.cs @@ -1439,7 +1439,7 @@ namespace GHelper MinimumSize = new Size(822, 71); Name = "SettingsForm"; Padding = new Padding(11); - ShowIcon = false; + ShowIcon = true; StartPosition = FormStartPosition.CenterScreen; Text = "G-Helper"; panelMatrix.ResumeLayout(false); diff --git a/app/Settings.cs b/app/Settings.cs index 9094bea7..e7114da3 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -1176,19 +1176,22 @@ namespace GHelper buttonEco.Activated = !GPUAuto; buttonOptimized.Activated = GPUAuto; labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeEco; - Icon = Program.trayIcon.Icon = Properties.Resources.eco; + Program.trayIcon.Icon = Properties.Resources.eco; + Icon = Properties.Resources.dot_eco; break; case AsusACPI.GPUModeUltimate: buttonUltimate.Activated = true; labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeUltimate; - Icon = Program.trayIcon.Icon = Properties.Resources.ultimate; + Program.trayIcon.Icon = Properties.Resources.ultimate; + Icon = Properties.Resources.dot_ultimate; break; default: buttonOptimized.BorderColor = colorStandard; buttonStandard.Activated = !GPUAuto; buttonOptimized.Activated = GPUAuto; labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeStandard; - Icon = Program.trayIcon.Icon = Properties.Resources.standard; + Program.trayIcon.Icon = Properties.Resources.standard; + Icon = Properties.Resources.dot_standard; break; }