From a02f6c595f33435f5568be848144e4a2b70c9f62 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Wed, 13 Mar 2024 18:41:33 +0100 Subject: [PATCH] UI tweaks --- app/Program.cs | 7 +++---- app/Settings.Designer.cs | 7 +++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/Program.cs b/app/Program.cs index 379c6868..bbd4f5c7 100644 --- a/app/Program.cs +++ b/app/Program.cs @@ -179,6 +179,8 @@ namespace GHelper { case UserPreferenceCategory.General: bool changed = settingsForm.InitTheme(); + settingsForm.VisualiseIcon(); + if (changed) { Debug.WriteLine("Theme Changed"); @@ -197,11 +199,8 @@ namespace GHelper if (settingsForm.matrixForm is not null && settingsForm.matrixForm.Text != "") 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.VisualiseIcon(); - } break; } diff --git a/app/Settings.Designer.cs b/app/Settings.Designer.cs index 1b718cd6..9aaed8b1 100644 --- a/app/Settings.Designer.cs +++ b/app/Settings.Designer.cs @@ -318,9 +318,10 @@ namespace GHelper buttonMatrix.Location = new Point(526, 4); buttonMatrix.Margin = new Padding(2, 4, 4, 8); buttonMatrix.MaximumSize = new Size(0, 48); + buttonMatrix.MinimumSize = new Size(0, 44); buttonMatrix.Name = "buttonMatrix"; buttonMatrix.Secondary = true; - buttonMatrix.Size = new Size(255, 42); + buttonMatrix.Size = new Size(255, 44); buttonMatrix.TabIndex = 18; buttonMatrix.Text = Properties.Strings.PictureGif; buttonMatrix.UseVisualStyleBackColor = false; @@ -1250,9 +1251,10 @@ namespace GHelper buttonKeyboard.Location = new Point(526, 4); buttonKeyboard.Margin = new Padding(2, 4, 4, 8); buttonKeyboard.MaximumSize = new Size(0, 48); + buttonKeyboard.MinimumSize = new Size(0, 44); buttonKeyboard.Name = "buttonKeyboard"; buttonKeyboard.Secondary = true; - buttonKeyboard.Size = new Size(255, 42); + buttonKeyboard.Size = new Size(255, 44); buttonKeyboard.TabIndex = 37; buttonKeyboard.Text = "&Extra"; buttonKeyboard.TextImageRelation = TextImageRelation.ImageBeforeText; @@ -1305,6 +1307,7 @@ namespace GHelper buttonKeyboardColor.Location = new Point(0, 0); buttonKeyboardColor.Margin = new Padding(4, 8, 4, 8); buttonKeyboardColor.MaximumSize = new Size(0, 48); + buttonKeyboardColor.MinimumSize = new Size(0, 44); buttonKeyboardColor.Name = "buttonKeyboardColor"; buttonKeyboardColor.Secondary = false; buttonKeyboardColor.Size = new Size(253, 44);