mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Narrator improvements https://github.com/seerge/g-helper/issues/2035
This commit is contained in:
@@ -1382,11 +1382,13 @@ namespace GHelper
|
||||
buttonEco.Activated = !GPUAuto;
|
||||
buttonOptimized.Activated = GPUAuto;
|
||||
labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeEco;
|
||||
panelGPU.AccessibleName = Properties.Strings.GPUMode + ": " + (GPUAuto ? Properties.Strings.Optimized : Properties.Strings.EcoMode);
|
||||
Program.trayIcon.Icon = Properties.Resources.eco;
|
||||
break;
|
||||
case AsusACPI.GPUModeUltimate:
|
||||
buttonUltimate.Activated = true;
|
||||
labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeUltimate;
|
||||
panelGPU.AccessibleName = Properties.Strings.GPUMode + ": " + Properties.Strings.UltimateMode;
|
||||
Program.trayIcon.Icon = Properties.Resources.ultimate;
|
||||
break;
|
||||
default:
|
||||
@@ -1394,10 +1396,13 @@ namespace GHelper
|
||||
buttonStandard.Activated = !GPUAuto;
|
||||
buttonOptimized.Activated = GPUAuto;
|
||||
labelGPU.Text = Properties.Strings.GPUMode + ": " + Properties.Strings.GPUModeStandard;
|
||||
panelGPU.AccessibleName = Properties.Strings.GPUMode + ": " + (GPUAuto ? Properties.Strings.Optimized : Properties.Strings.StandardMode);
|
||||
Program.trayIcon.Icon = Properties.Resources.standard;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
VisualizeXGM(GPUMode);
|
||||
|
||||
if (isGpuSection)
|
||||
|
||||
2
app/Updates.Designer.cs
generated
2
app/Updates.Designer.cs
generated
@@ -126,7 +126,7 @@ namespace GHelper
|
||||
buttonRefresh.Name = "buttonRefresh";
|
||||
buttonRefresh.Secondary = true;
|
||||
buttonRefresh.Size = new Size(52, 46);
|
||||
buttonRefresh.TabIndex = 3;
|
||||
buttonRefresh.TabIndex = 1;
|
||||
buttonRefresh.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// panelBios
|
||||
|
||||
@@ -35,10 +35,15 @@ namespace GHelper
|
||||
|
||||
(bios, model) = AppConfig.GetBiosAndModel();
|
||||
|
||||
buttonRefresh.TabStop = false;
|
||||
|
||||
updatesCount = 0;
|
||||
labelUpdates.ForeColor = colorEco;
|
||||
labelUpdates.Text = Properties.Strings.NoNewUpdates;
|
||||
|
||||
panelBios.AccessibleRole = AccessibleRole.Grouping;
|
||||
panelBios.AccessibleName = Properties.Strings.NoNewUpdates;
|
||||
panelBios.TabStop = true;
|
||||
|
||||
Text = Properties.Strings.BiosAndDriverUpdates + ": " + model + " " + bios;
|
||||
labelBIOS.Text = "BIOS";
|
||||
@@ -121,12 +126,17 @@ namespace GHelper
|
||||
Invoke(delegate
|
||||
{
|
||||
string versionText = driver.version.Replace("latest version at the ", "");
|
||||
Label versionLabel = new Label { Text = versionText, Anchor = AnchorStyles.Left, AutoSize = true };
|
||||
LinkLabel versionLabel = new LinkLabel { Text = versionText, Anchor = AnchorStyles.Left, AutoSize = true };
|
||||
|
||||
versionLabel.AccessibleName = driver.title;
|
||||
versionLabel.TabStop = true;
|
||||
versionLabel.TabIndex = table.RowCount + 1;
|
||||
|
||||
versionLabel.Cursor = Cursors.Hand;
|
||||
versionLabel.Font = new Font(versionLabel.Font, FontStyle.Underline);
|
||||
versionLabel.ForeColor = colorEco;
|
||||
versionLabel.LinkColor = colorEco;
|
||||
versionLabel.Padding = new Padding(5, 5, 5, 5);
|
||||
versionLabel.Click += delegate
|
||||
versionLabel.LinkClicked += delegate
|
||||
{
|
||||
Process.Start(new ProcessStartInfo(driver.downloadUrl) { UseShellExecute = true });
|
||||
};
|
||||
@@ -152,18 +162,19 @@ namespace GHelper
|
||||
|
||||
public void VisualiseNewDriver(int position, int newer, TableLayoutPanel table)
|
||||
{
|
||||
var label = table.GetControlFromPosition(3, position) as Label;
|
||||
var label = table.GetControlFromPosition(3, position) as LinkLabel;
|
||||
if (label != null)
|
||||
{
|
||||
Invoke(delegate
|
||||
{
|
||||
if (newer == DRIVER_NEWER)
|
||||
{
|
||||
label.AccessibleName = label.AccessibleName + Properties.Strings.NewUpdates;
|
||||
label.Font = new Font(label.Font, FontStyle.Underline | FontStyle.Bold);
|
||||
label.ForeColor = colorTurbo;
|
||||
label.LinkColor = colorTurbo;
|
||||
}
|
||||
|
||||
if (newer == DRIVER_NOT_FOUND) label.ForeColor = Color.Gray;
|
||||
if (newer == DRIVER_NOT_FOUND) label.LinkColor = Color.Gray;
|
||||
|
||||
});
|
||||
}
|
||||
@@ -176,6 +187,9 @@ namespace GHelper
|
||||
labelUpdates.Text = $"{Properties.Strings.NewUpdates}: {updatesCount}";
|
||||
labelUpdates.ForeColor = colorTurbo;
|
||||
labelUpdates.Font = new Font(labelUpdates.Font, FontStyle.Bold);
|
||||
|
||||
panelBios.AccessibleName = labelUpdates.Text;
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user