UI tweaks

This commit is contained in:
Serge
2024-03-13 18:41:33 +01:00
parent a06f7f6810
commit a02f6c595f
2 changed files with 8 additions and 6 deletions

View File

@@ -179,6 +179,8 @@ namespace GHelper
{ {
case UserPreferenceCategory.General: case UserPreferenceCategory.General:
bool changed = settingsForm.InitTheme(); bool changed = settingsForm.InitTheme();
settingsForm.VisualiseIcon();
if (changed) if (changed)
{ {
Debug.WriteLine("Theme Changed"); Debug.WriteLine("Theme Changed");
@@ -197,11 +199,8 @@ namespace GHelper
if (settingsForm.matrixForm is not null && settingsForm.matrixForm.Text != "") if (settingsForm.matrixForm is not null && settingsForm.matrixForm.Text != "")
settingsForm.matrixForm.InitTheme(); settingsForm.matrixForm.InitTheme();
if (settingsForm.handheldForm is not null && settingsForm.handheldForm.Text != "") if (settingsForm.handheldForm is not null && settingsForm.handheldForm.Text != "")
{
settingsForm.handheldForm.InitTheme(); settingsForm.handheldForm.InitTheme();
settingsForm.VisualiseIcon();
}
break; break;
} }

View File

@@ -318,9 +318,10 @@ namespace GHelper
buttonMatrix.Location = new Point(526, 4); buttonMatrix.Location = new Point(526, 4);
buttonMatrix.Margin = new Padding(2, 4, 4, 8); buttonMatrix.Margin = new Padding(2, 4, 4, 8);
buttonMatrix.MaximumSize = new Size(0, 48); buttonMatrix.MaximumSize = new Size(0, 48);
buttonMatrix.MinimumSize = new Size(0, 44);
buttonMatrix.Name = "buttonMatrix"; buttonMatrix.Name = "buttonMatrix";
buttonMatrix.Secondary = true; buttonMatrix.Secondary = true;
buttonMatrix.Size = new Size(255, 42); buttonMatrix.Size = new Size(255, 44);
buttonMatrix.TabIndex = 18; buttonMatrix.TabIndex = 18;
buttonMatrix.Text = Properties.Strings.PictureGif; buttonMatrix.Text = Properties.Strings.PictureGif;
buttonMatrix.UseVisualStyleBackColor = false; buttonMatrix.UseVisualStyleBackColor = false;
@@ -1250,9 +1251,10 @@ namespace GHelper
buttonKeyboard.Location = new Point(526, 4); buttonKeyboard.Location = new Point(526, 4);
buttonKeyboard.Margin = new Padding(2, 4, 4, 8); buttonKeyboard.Margin = new Padding(2, 4, 4, 8);
buttonKeyboard.MaximumSize = new Size(0, 48); buttonKeyboard.MaximumSize = new Size(0, 48);
buttonKeyboard.MinimumSize = new Size(0, 44);
buttonKeyboard.Name = "buttonKeyboard"; buttonKeyboard.Name = "buttonKeyboard";
buttonKeyboard.Secondary = true; buttonKeyboard.Secondary = true;
buttonKeyboard.Size = new Size(255, 42); buttonKeyboard.Size = new Size(255, 44);
buttonKeyboard.TabIndex = 37; buttonKeyboard.TabIndex = 37;
buttonKeyboard.Text = "&Extra"; buttonKeyboard.Text = "&Extra";
buttonKeyboard.TextImageRelation = TextImageRelation.ImageBeforeText; buttonKeyboard.TextImageRelation = TextImageRelation.ImageBeforeText;
@@ -1305,6 +1307,7 @@ namespace GHelper
buttonKeyboardColor.Location = new Point(0, 0); buttonKeyboardColor.Location = new Point(0, 0);
buttonKeyboardColor.Margin = new Padding(4, 8, 4, 8); buttonKeyboardColor.Margin = new Padding(4, 8, 4, 8);
buttonKeyboardColor.MaximumSize = new Size(0, 48); buttonKeyboardColor.MaximumSize = new Size(0, 48);
buttonKeyboardColor.MinimumSize = new Size(0, 44);
buttonKeyboardColor.Name = "buttonKeyboardColor"; buttonKeyboardColor.Name = "buttonKeyboardColor";
buttonKeyboardColor.Secondary = false; buttonKeyboardColor.Secondary = false;
buttonKeyboardColor.Size = new Size(253, 44); buttonKeyboardColor.Size = new Size(253, 44);