From 2b89905e2af2f06a5a51d5539296b2e3713f9cea Mon Sep 17 00:00:00 2001 From: Nguyen Duy Date: Mon, 16 Dec 2024 09:35:51 +0700 Subject: [PATCH] add translate icon to language menu --- app/Properties/Resources.resx | 17 ++++++++++++----- app/Properties/Settings.Designer.cs | 26 -------------------------- app/Properties/Settings.settings | 7 ------- app/Resources/translate.png | Bin 0 -> 1630 bytes app/Tray.cs | 3 ++- 5 files changed, 14 insertions(+), 39 deletions(-) delete mode 100644 app/Properties/Settings.Designer.cs delete mode 100644 app/Properties/Settings.settings create mode 100644 app/Resources/translate.png diff --git a/app/Properties/Resources.resx b/app/Properties/Resources.resx index af7dbeb..5046638 100644 --- a/app/Properties/Resources.resx +++ b/app/Properties/Resources.resx @@ -46,7 +46,7 @@ mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with - : System.Serialization.Formatters.Binary.BinaryFormatter + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 @@ -60,6 +60,7 @@ : and then encoded with base64 encoding. --> + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -109,9 +112,13 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\translate.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/app/Properties/Settings.Designer.cs b/app/Properties/Settings.Designer.cs deleted file mode 100644 index 83151b4..0000000 --- a/app/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace ParsecVDisplay.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - } -} diff --git a/app/Properties/Settings.settings b/app/Properties/Settings.settings deleted file mode 100644 index 033d7a5..0000000 --- a/app/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/app/Resources/translate.png b/app/Resources/translate.png new file mode 100644 index 0000000000000000000000000000000000000000..0b28798b01f010757e77837d8f6012fc2b1c882f GIT binary patch literal 1630 zcmV-k2BGPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1@lQnK~z{rtyXJn zR7Dj2=I-6Tb}7)>0xex0g;Eg88^!YUfjk4I6oW*uKlG1@i5lY%`NIzrNi-2q6aN@P zVlXNo5f!2cm)2tdAJ)=lsJ1kfVZ&}b z_*#CY(;7NN&Cb|t&9>_yH0ekYq(}!0z_y@Sm~r6sVGWLFXwZaVlVdGpAZ`UL-sn}t6W8g(yXb+*cw-2#cw`{u$&)fk&c$X*@BV+(P z%oWD73k}R2XW`FQ4cosC;^n1@cm!R&kxbHJbmZn{Q`OTv zY8)Tkwbk=bQ8t>J%XH=C6D83^MaFqwSZ<*uYU0RWly~aSA-)%u7(@X4+@!Y2o0K6? z5_t&Iif$n*OQQ-8fG#*$?LVEpK)x(2o;6jD98)+_YDT|P!15tgJfH2&3ry_VoW%C^ zN$lR7z?_JM`YRevT%^w&R#!O34r9 zsxLTzjF$$l_C}Y$n+Jk8bS^;E4GgF8Em46_PU_hC18t|J#yU!ZbKlY#!nJ5O_8mKo zt8G!~KVIK}+?*^-8(%7~=FDOgYj<=l6`5DDLi$jG&yh(kHOczP*U;2>6iG9Qg;fX`~MD3%GptZdNpZ|CgNh3W7hGyAz(l?z4mvB&GhOgn8JoJ`TLKZ!6s8L!}fTtg; zM(fQE9R2m28k71^>j-xKZdmp|wnc?uQLdE8vqr+NUsqfozb2%xpC<8>Gx{hESMG%A ze?DJCkU?x&u>^}}Pm@LHhrItD-_c!S8TRw^&drzJdqg09y9(X0RknMLGAIa+WA%K2 zCuZ7oBk}`;UrNp^i8Vh;*rs5X`M&(`cyh~kQ;dXp!8=T92c}HSM%|_&)Y|~4ZM7kxooeA2VSY>5p cy%56w7p@W?%tg5H*#H0l07*qoM6N<$f-LC+z5oCK literal 0 HcmV?d00001 diff --git a/app/Tray.cs b/app/Tray.cs index 4687985..e47413f 100644 --- a/app/Tray.cs +++ b/app/Tray.cs @@ -51,6 +51,7 @@ namespace ParsecVDisplay var appName = $"{Program.AppName} v{Program.AppVersion}"; var appIcon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); + var translateIcon = (Image)Properties.Resources.ResourceManager.GetObject("translate_icon"); TrayIcon = new NotifyIcon() { @@ -81,7 +82,7 @@ namespace ParsecVDisplay null, OptionsCheck) { CheckOnClick = true, Checked = Config.KeepScreenOn }), } }, - (MI_Language = new ToolStripMenuItem("t_language")), + (MI_Language = new ToolStripMenuItem("t_language", translateIcon)), new ToolStripMenuItem("t_check_for_update", null, CheckUpdate), new ToolStripSeparator(), new ToolStripMenuItem("t_exit", null, Exit),