From b23b1dad91d083e8bef4e8ad768e500278c73613 Mon Sep 17 00:00:00 2001 From: t0815 <10379828+t0815@users.noreply.github.com> Date: Thu, 12 Sep 2024 18:02:30 +0200 Subject: [PATCH] update language editor cell style to match other grid styles... --- MyCBZ/App.config | 2 +- MyCBZ/Forms/LanguageEditorForm.Designer.cs | 9 + MyCBZ/Forms/LanguageEditorForm.resx | 4 +- MyCBZ/Forms/MainForm.Designer.cs | 35 ++- MyCBZ/Forms/MainForm.resx | 271 +++++++++++---------- MyCBZ/Properties/AssemblyInfo.cs | 4 +- MyCBZ/Win_CBZSettings.Designer.cs | 4 +- MyCBZ/Win_CBZSettings.settings | 2 +- Readme.md | 2 +- Win_CBZ-Setup/Win_CBZ-Setup.vdproj | 6 +- 10 files changed, 182 insertions(+), 157 deletions(-) diff --git a/MyCBZ/App.config b/MyCBZ/App.config index 4fb71ef6..67444e5b 100644 --- a/MyCBZ/App.config +++ b/MyCBZ/App.config @@ -153,7 +153,7 @@ - 0.20.159b + 0.20.160b diff --git a/MyCBZ/Forms/LanguageEditorForm.Designer.cs b/MyCBZ/Forms/LanguageEditorForm.Designer.cs index b043bfba..9ad8bcdf 100644 --- a/MyCBZ/Forms/LanguageEditorForm.Designer.cs +++ b/MyCBZ/Forms/LanguageEditorForm.Designer.cs @@ -30,6 +30,7 @@ private void InitializeComponent() { components = new System.ComponentModel.Container(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); ItemEditorTableLayout = new System.Windows.Forms.TableLayoutPanel(); HeaderPanel = new System.Windows.Forms.Panel(); HeaderLabel = new System.Windows.Forms.Label(); @@ -182,6 +183,14 @@ private void InitializeComponent() LanguageListDatagrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; LanguageListDatagrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; ItemEditorTableLayout.SetColumnSpan(LanguageListDatagrid, 2); + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 9F); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.Gold; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + LanguageListDatagrid.DefaultCellStyle = dataGridViewCellStyle2; LanguageListDatagrid.Dock = System.Windows.Forms.DockStyle.Fill; LanguageListDatagrid.Location = new System.Drawing.Point(3, 140); LanguageListDatagrid.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); diff --git a/MyCBZ/Forms/LanguageEditorForm.resx b/MyCBZ/Forms/LanguageEditorForm.resx index b3bdf359..3f5e251a 100644 --- a/MyCBZ/Forms/LanguageEditorForm.resx +++ b/MyCBZ/Forms/LanguageEditorForm.resx @@ -1,7 +1,7 @@