feat: more design things

This commit is contained in:
2026-03-03 11:27:57 +01:00
parent 5fe1a4cea1
commit a33baa2166
2 changed files with 63 additions and 54 deletions

View File

@@ -34,7 +34,6 @@
flpCars = new System.Windows.Forms.FlowLayoutPanel();
tlpControls = new System.Windows.Forms.TableLayoutPanel();
btnNewCar = new System.Windows.Forms.Button();
imageList1 = new System.Windows.Forms.ImageList(components);
tlpSearch = new System.Windows.Forms.TableLayoutPanel();
tbxSearch = new System.Windows.Forms.TextBox();
pbxSearch = new System.Windows.Forms.PictureBox();
@@ -46,6 +45,7 @@
importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
recentFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
revealInFileExplorerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
imageList1 = new System.Windows.Forms.ImageList(components);
tableLayoutPanel1.SuspendLayout();
tlpControls.SuspendLayout();
tlpSearch.SuspendLayout();
@@ -91,12 +91,12 @@
tlpControls.Controls.Add(btnNewCar, 1, 0);
tlpControls.Controls.Add(tlpSearch, 0, 0);
tlpControls.Dock = System.Windows.Forms.DockStyle.Fill;
tlpControls.Location = new System.Drawing.Point(3, 28);
tlpControls.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0);
tlpControls.Location = new System.Drawing.Point(0, 28);
tlpControls.Margin = new System.Windows.Forms.Padding(0);
tlpControls.Name = "tlpControls";
tlpControls.RowCount = 1;
tlpControls.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
tlpControls.Size = new System.Drawing.Size(796, 50);
tlpControls.Size = new System.Drawing.Size(802, 50);
tlpControls.TabIndex = 2;
//
// btnNewCar
@@ -107,9 +107,8 @@
btnNewCar.Dock = System.Windows.Forms.DockStyle.Fill;
btnNewCar.FlatAppearance.BorderSize = 0;
btnNewCar.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
btnNewCar.ImageKey = "Icon_Add.png";
btnNewCar.ImageList = imageList1;
btnNewCar.Location = new System.Drawing.Point(716, 0);
btnNewCar.Image = (System.Drawing.Image)resources.GetObject("btnNewCar.Image");
btnNewCar.Location = new System.Drawing.Point(722, 0);
btnNewCar.Margin = new System.Windows.Forms.Padding(0);
btnNewCar.Name = "btnNewCar";
btnNewCar.Size = new System.Drawing.Size(80, 50);
@@ -117,14 +116,6 @@
btnNewCar.UseVisualStyleBackColor = false;
btnNewCar.Click += btnNewCar_Click;
//
// imageList1
//
imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
imageList1.ImageStream = (System.Windows.Forms.ImageListStreamer)resources.GetObject("imageList1.ImageStream");
imageList1.TransparentColor = System.Drawing.Color.Transparent;
imageList1.Images.SetKeyName(0, "Icon_Search.png");
imageList1.Images.SetKeyName(1, "Icon_Add.png");
//
// tlpSearch
//
tlpSearch.BackColor = System.Drawing.SystemColors.Window;
@@ -140,7 +131,7 @@
tlpSearch.RowCount = 1;
tlpSearch.RowStyles.Add(new System.Windows.Forms.RowStyle());
tlpSearch.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
tlpSearch.Size = new System.Drawing.Size(716, 50);
tlpSearch.Size = new System.Drawing.Size(722, 50);
tlpSearch.TabIndex = 5;
//
// tbxSearch
@@ -152,7 +143,7 @@
tbxSearch.Location = new System.Drawing.Point(53, 15);
tbxSearch.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
tbxSearch.Name = "tbxSearch";
tbxSearch.Size = new System.Drawing.Size(660, 20);
tbxSearch.Size = new System.Drawing.Size(666, 20);
tbxSearch.TabIndex = 3;
tbxSearch.TextChanged += tbxSearch_TextChanged;
//
@@ -170,6 +161,7 @@
//
// menuStrip1
//
menuStrip1.BackColor = System.Drawing.SystemColors.ButtonFace;
menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { fileToolStripMenuItem });
menuStrip1.Location = new System.Drawing.Point(0, 0);
@@ -227,6 +219,14 @@
revealInFileExplorerToolStripMenuItem.Text = "Reveal in File Explorer";
revealInFileExplorerToolStripMenuItem.Click += revealInFileExplorerToolStripMenuItem_Click;
//
// imageList1
//
imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
imageList1.ImageStream = (System.Windows.Forms.ImageListStreamer)resources.GetObject("imageList1.ImageStream");
imageList1.TransparentColor = System.Drawing.Color.Transparent;
imageList1.Images.SetKeyName(0, "Icon_Search.png");
imageList1.Images.SetKeyName(1, "Icon_Add.png");
//
// MainForm
//
AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);