From 93908243f2016adf794a92f1d9f0fce2cf96bb96 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 20 Sep 2022 20:44:17 +0200 Subject: [PATCH] Fixed alignment of tool icons for text element component --- .../Components/TextElements.Designer.cs | 40 +++++++++---------- .../UI WinForms/Components/TextElements.resx | 3 -- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/I18N Commander/UI WinForms/Components/TextElements.Designer.cs b/I18N Commander/UI WinForms/Components/TextElements.Designer.cs index f4325b3..1655b10 100644 --- a/I18N Commander/UI WinForms/Components/TextElements.Designer.cs +++ b/I18N Commander/UI WinForms/Components/TextElements.Designer.cs @@ -34,13 +34,13 @@ this.buttonAdd = new System.Windows.Forms.Button(); this.buttonRemove = new System.Windows.Forms.Button(); this.buttonRename = new System.Windows.Forms.Button(); + this.buttonChangeMultiLine = new System.Windows.Forms.Button(); this.textBoxFilter = new System.Windows.Forms.TextBox(); this.labelFilter = new System.Windows.Forms.Label(); this.labelSectionPath = new System.Windows.Forms.Label(); this.listTextElements = new System.Windows.Forms.ListView(); this.column = new System.Windows.Forms.ColumnHeader(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); - this.buttonChangeMultiLine = new System.Windows.Forms.Button(); this.tableLayout.SuspendLayout(); this.flowLayoutToolbar.SuspendLayout(); this.SuspendLayout(); @@ -77,8 +77,8 @@ this.flowLayoutToolbar.Location = new System.Drawing.Point(0, 0); this.flowLayoutToolbar.Margin = new System.Windows.Forms.Padding(0); this.flowLayoutToolbar.Name = "flowLayoutToolbar"; - this.tableLayout.SetRowSpan(this.flowLayoutToolbar, 3); - this.flowLayoutToolbar.Size = new System.Drawing.Size(66, 302); + this.tableLayout.SetRowSpan(this.flowLayoutToolbar, 2); + this.flowLayoutToolbar.Size = new System.Drawing.Size(66, 262); this.flowLayoutToolbar.TabIndex = 0; // // buttonAdd @@ -87,7 +87,7 @@ this.buttonAdd.FlatAppearance.BorderSize = 0; this.buttonAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonAdd.Image = global::UI_WinForms.Resources.Icons.icons8_add_tag_512; - this.buttonAdd.Location = new System.Drawing.Point(3, 239); + this.buttonAdd.Location = new System.Drawing.Point(3, 199); this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.Size = new System.Drawing.Size(60, 60); this.buttonAdd.TabIndex = 0; @@ -101,7 +101,7 @@ this.buttonRemove.FlatAppearance.BorderSize = 0; this.buttonRemove.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonRemove.Image = global::UI_WinForms.Resources.Icons.icons8_remove_tag_512; - this.buttonRemove.Location = new System.Drawing.Point(3, 173); + this.buttonRemove.Location = new System.Drawing.Point(3, 133); this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.Size = new System.Drawing.Size(60, 60); this.buttonRemove.TabIndex = 2; @@ -115,7 +115,7 @@ this.buttonRename.FlatAppearance.BorderSize = 0; this.buttonRename.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonRename.Image = global::UI_WinForms.Resources.Icons.icons8_rename_512; - this.buttonRename.Location = new System.Drawing.Point(3, 107); + this.buttonRename.Location = new System.Drawing.Point(3, 67); this.buttonRename.Name = "buttonRename"; this.buttonRename.Size = new System.Drawing.Size(60, 60); this.buttonRename.TabIndex = 1; @@ -123,6 +123,20 @@ this.buttonRename.UseVisualStyleBackColor = true; this.buttonRename.Click += new System.EventHandler(this.buttonRename_Click); // + // buttonChangeMultiLine + // + this.buttonChangeMultiLine.Enabled = false; + this.buttonChangeMultiLine.FlatAppearance.BorderSize = 0; + this.buttonChangeMultiLine.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonChangeMultiLine.Image = global::UI_WinForms.Resources.Icons.icons8_align_text_left_512; + this.buttonChangeMultiLine.Location = new System.Drawing.Point(69, 199); + this.buttonChangeMultiLine.Name = "buttonChangeMultiLine"; + this.buttonChangeMultiLine.Size = new System.Drawing.Size(60, 60); + this.buttonChangeMultiLine.TabIndex = 3; + this.toolTip.SetToolTip(this.buttonChangeMultiLine, "Toggles the selected element\'s multi-line state"); + this.buttonChangeMultiLine.UseVisualStyleBackColor = true; + this.buttonChangeMultiLine.Click += new System.EventHandler(this.buttonChangeMultiLine_Click); + // // textBoxFilter // this.textBoxFilter.Dock = System.Windows.Forms.DockStyle.Fill; @@ -186,20 +200,6 @@ this.toolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; this.toolTip.ToolTipTitle = "Help"; // - // buttonChangeMultiLine - // - this.buttonChangeMultiLine.Enabled = false; - this.buttonChangeMultiLine.FlatAppearance.BorderSize = 0; - this.buttonChangeMultiLine.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonChangeMultiLine.Image = global::UI_WinForms.Resources.Icons.icons8_align_text_left_512; - this.buttonChangeMultiLine.Location = new System.Drawing.Point(3, 41); - this.buttonChangeMultiLine.Name = "buttonChangeMultiLine"; - this.buttonChangeMultiLine.Size = new System.Drawing.Size(60, 60); - this.buttonChangeMultiLine.TabIndex = 3; - this.toolTip.SetToolTip(this.buttonChangeMultiLine, "Toggles the selected element\'s multi-line state"); - this.buttonChangeMultiLine.UseVisualStyleBackColor = true; - this.buttonChangeMultiLine.Click += new System.EventHandler(this.buttonChangeMultiLine_Click); - // // TextElements // this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); diff --git a/I18N Commander/UI WinForms/Components/TextElements.resx b/I18N Commander/UI WinForms/Components/TextElements.resx index 8d589da..99de901 100644 --- a/I18N Commander/UI WinForms/Components/TextElements.resx +++ b/I18N Commander/UI WinForms/Components/TextElements.resx @@ -60,7 +60,4 @@ 17, 17 - - 17, 17 - \ No newline at end of file