From 9bd2688da2541374d10783acfca09e9c373eca4c Mon Sep 17 00:00:00 2001 From: seerge Date: Fri, 21 Apr 2023 14:59:06 +0200 Subject: [PATCH] UI tweaks --- app/Aura.cs | 4 ++ app/Keyboard.Designer.cs | 13 ++++--- app/Program.cs | 4 +- app/Properties/Strings.Designer.cs | 9 +++++ app/Properties/Strings.es.resx | 3 ++ app/Properties/Strings.resx | 62 ++++++++++++++++++++++++++++++ app/Properties/Strings.tr.resx | 3 ++ app/Properties/Strings.uk.resx | 3 ++ app/Properties/Strings.zh-CN.resx | 5 ++- app/Properties/Strings.zh-TW.resx | 5 ++- 10 files changed, 101 insertions(+), 10 deletions(-) diff --git a/app/Aura.cs b/app/Aura.cs index 71729e63..607b3848 100644 --- a/app/Aura.cs +++ b/app/Aura.cs @@ -223,6 +223,10 @@ namespace GHelper flags.Add(AuraDev19b6.SleepLid); flags.Add(AuraDev19b6.ShutdownLid); + flags.Add(AuraDev19b6.AwakeLogo); + flags.Add(AuraDev19b6.BootLogo); + flags.Add(AuraDev19b6.SleepLogo); + flags.Add(AuraDev19b6.ShutdownLogo); byte[] msg = AuraDev19b6Extensions.ToBytes(flags.ToArray()); diff --git a/app/Keyboard.Designer.cs b/app/Keyboard.Designer.cs index dc88604f..540b8ea3 100644 --- a/app/Keyboard.Designer.cs +++ b/app/Keyboard.Designer.cs @@ -1,4 +1,5 @@ using CustomControls; +using GHelper.Properties; namespace GHelper { @@ -188,25 +189,27 @@ namespace GHelper groupLight.Dock = DockStyle.Top; groupLight.Location = new Point(10, 252); groupLight.Name = "groupLight"; - groupLight.Size = new Size(840, 374); + groupLight.Size = new Size(840, 390); groupLight.TabIndex = 1; groupLight.TabStop = false; groupLight.Text = Properties.Strings.KeyboardBacklight; // // labelBrightness // - labelBrightness.Location = new Point(25, 284); + labelBrightness.Location = new Point(25, 304); labelBrightness.Name = "labelBrightness"; labelBrightness.Size = new Size(197, 49); labelBrightness.TabIndex = 0; - labelBrightness.Text = "Brightness"; + labelBrightness.Text = Properties.Strings.Brightness; // // trackBrightness // - trackBrightness.Location = new Point(228, 284); + trackBrightness.Location = new Point(228, 294); trackBrightness.Name = "trackBrightness"; - trackBrightness.Size = new Size(612, 90); + trackBrightness.Size = new Size(600, 70); trackBrightness.TabIndex = 1; + trackBrightness.Minimum = 0; + trackBrightness.Maximum = 3; // // labelSpeed // diff --git a/app/Program.cs b/app/Program.cs index b524de0c..60f7c4d1 100644 --- a/app/Program.cs +++ b/app/Program.cs @@ -35,7 +35,7 @@ namespace GHelper Debug.WriteLine(CultureInfo.CurrentUICulture); - //Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("zh"); + Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("es"); if (Process.GetProcesses().Count(p => p.ProcessName == "GHelper") > 1) { @@ -62,8 +62,6 @@ namespace GHelper } - - Logger.WriteLine("------------"); Logger.WriteLine("App launched: " + config.GetModel()); diff --git a/app/Properties/Strings.Designer.cs b/app/Properties/Strings.Designer.cs index 8eb6f7f7..47e6a2b3 100644 --- a/app/Properties/Strings.Designer.cs +++ b/app/Properties/Strings.Designer.cs @@ -294,6 +294,15 @@ namespace GHelper.Properties { } } + /// + /// Looks up a localized string similar to Brightness. + /// + internal static string Brightness { + get { + return ResourceManager.GetString("Brightness", resourceCulture); + } + } + /// /// Looks up a localized string similar to Color. /// diff --git a/app/Properties/Strings.es.resx b/app/Properties/Strings.es.resx index 8fd9921d..f8c76f39 100644 --- a/app/Properties/Strings.es.resx +++ b/app/Properties/Strings.es.resx @@ -195,6 +195,9 @@ Al arrancar + + Brillo + Color diff --git a/app/Properties/Strings.resx b/app/Properties/Strings.resx index 32da890a..20186d99 100644 --- a/app/Properties/Strings.resx +++ b/app/Properties/Strings.resx @@ -1,5 +1,64 @@  + @@ -136,6 +195,9 @@ Boot + + Brightness + Color diff --git a/app/Properties/Strings.tr.resx b/app/Properties/Strings.tr.resx index 6c5c2864..7d60cfb1 100644 --- a/app/Properties/Strings.tr.resx +++ b/app/Properties/Strings.tr.resx @@ -195,6 +195,9 @@ Önyükleme + + Parlaklığı + Renk diff --git a/app/Properties/Strings.uk.resx b/app/Properties/Strings.uk.resx index 474747cf..796754e3 100644 --- a/app/Properties/Strings.uk.resx +++ b/app/Properties/Strings.uk.resx @@ -195,6 +195,9 @@ Старт + + Яскравість + Колір diff --git a/app/Properties/Strings.zh-CN.resx b/app/Properties/Strings.zh-CN.resx index 77a8245a..d4f0c229 100644 --- a/app/Properties/Strings.zh-CN.resx +++ b/app/Properties/Strings.zh-CN.resx @@ -195,6 +195,9 @@ 开机时 + + 亮度 + 颜色 @@ -405,4 +408,4 @@ 窗口置顶 - + \ No newline at end of file diff --git a/app/Properties/Strings.zh-TW.resx b/app/Properties/Strings.zh-TW.resx index be8ca76c..8497a41f 100644 --- a/app/Properties/Strings.zh-TW.resx +++ b/app/Properties/Strings.zh-TW.resx @@ -195,6 +195,9 @@ 開機時 + + 亮度 + 顏色 @@ -405,4 +408,4 @@ 視窗置頂 - + \ No newline at end of file