From c9e9239477b2345ceeaa36eb8b5ab03b0bcba562 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Mon, 20 Nov 2023 18:37:25 +0100 Subject: [PATCH] minor ui fixes --- .../Main.Designer.cs | 147 +++++++++--------- Pilz.Updating.UpdateInstaller/Main.resx | 62 +++++++- 2 files changed, 131 insertions(+), 78 deletions(-) diff --git a/Pilz.Updating.UpdateInstaller/Main.Designer.cs b/Pilz.Updating.UpdateInstaller/Main.Designer.cs index eafd303..31614fe 100644 --- a/Pilz.Updating.UpdateInstaller/Main.Designer.cs +++ b/Pilz.Updating.UpdateInstaller/Main.Designer.cs @@ -37,101 +37,94 @@ namespace Pilz.Updating.UpdateInstaller private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main)); - this._Panel1 = new System.Windows.Forms.Panel(); - this.radWaitingBar1 = new Telerik.WinControls.UI.RadWaitingBar(); - this.dotsLineWaitingBarIndicatorElement1 = new Telerik.WinControls.UI.DotsLineWaitingBarIndicatorElement(); - this.radLabel_Status = new Telerik.WinControls.UI.RadLabel(); - this.radLabel_Header = new Telerik.WinControls.UI.RadLabel(); - this._Panel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.radWaitingBar1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.radLabel_Status)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.radLabel_Header)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); - this.SuspendLayout(); + _Panel1 = new Panel(); + radWaitingBar1 = new Telerik.WinControls.UI.RadWaitingBar(); + dotsLineWaitingBarIndicatorElement1 = new Telerik.WinControls.UI.DotsLineWaitingBarIndicatorElement(); + radLabel_Status = new Telerik.WinControls.UI.RadLabel(); + radLabel_Header = new Telerik.WinControls.UI.RadLabel(); + _Panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)radWaitingBar1).BeginInit(); + ((System.ComponentModel.ISupportInitialize)radLabel_Status).BeginInit(); + ((System.ComponentModel.ISupportInitialize)radLabel_Header).BeginInit(); + ((System.ComponentModel.ISupportInitialize)this).BeginInit(); + SuspendLayout(); // // _Panel1 // - this._Panel1.BackColor = System.Drawing.Color.Transparent; - this._Panel1.Controls.Add(this.radWaitingBar1); - this._Panel1.Controls.Add(this.radLabel_Status); - this._Panel1.Controls.Add(this.radLabel_Header); - this._Panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this._Panel1.Location = new System.Drawing.Point(0, 0); - this._Panel1.Name = "_Panel1"; - this._Panel1.Size = new System.Drawing.Size(692, 106); - this._Panel1.TabIndex = 1; + _Panel1.BackColor = Color.Transparent; + _Panel1.Controls.Add(radWaitingBar1); + _Panel1.Controls.Add(radLabel_Status); + _Panel1.Controls.Add(radLabel_Header); + _Panel1.Dock = DockStyle.Fill; + _Panel1.Location = new Point(0, 0); + _Panel1.Name = "_Panel1"; + _Panel1.Size = new Size(692, 87); + _Panel1.TabIndex = 1; // // radWaitingBar1 // - this.radWaitingBar1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.radWaitingBar1.Location = new System.Drawing.Point(3, 85); - this.radWaitingBar1.Name = "radWaitingBar1"; - this.radWaitingBar1.Size = new System.Drawing.Size(130, 18); - this.radWaitingBar1.TabIndex = 3; - this.radWaitingBar1.Text = "radWaitingBar1"; - this.radWaitingBar1.WaitingIndicators.Add(this.dotsLineWaitingBarIndicatorElement1); - this.radWaitingBar1.WaitingSpeed = 80; - this.radWaitingBar1.WaitingStyle = Telerik.WinControls.Enumerations.WaitingBarStyles.DotsLine; - ((Telerik.WinControls.UI.RadWaitingBarElement)(radWaitingBar1.GetChildAt(0))).WaitingSpeed = 80; - ((Telerik.WinControls.UI.WaitingBarContentElement)(radWaitingBar1.GetChildAt(0).GetChildAt(0))).WaitingStyle = Telerik.WinControls.Enumerations.WaitingBarStyles.DotsLine; - ((Telerik.WinControls.UI.WaitingBarSeparatorElement)(radWaitingBar1.GetChildAt(0).GetChildAt(0).GetChildAt(0))).Dash = false; + radWaitingBar1.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + radWaitingBar1.Location = new Point(3, 66); + radWaitingBar1.Name = "radWaitingBar1"; + radWaitingBar1.Size = new Size(130, 18); + radWaitingBar1.TabIndex = 3; + radWaitingBar1.Text = "radWaitingBar1"; + radWaitingBar1.WaitingIndicators.Add(dotsLineWaitingBarIndicatorElement1); + radWaitingBar1.WaitingIndicatorSize = new Size(100, 14); + radWaitingBar1.WaitingSpeed = 80; + radWaitingBar1.WaitingStyle = Telerik.WinControls.Enumerations.WaitingBarStyles.DotsLine; + ((Telerik.WinControls.UI.RadWaitingBarElement)radWaitingBar1.GetChildAt(0)).WaitingSpeed = 80; + ((Telerik.WinControls.UI.WaitingBarContentElement)radWaitingBar1.GetChildAt(0).GetChildAt(0)).WaitingStyle = Telerik.WinControls.Enumerations.WaitingBarStyles.DotsLine; + ((Telerik.WinControls.UI.WaitingBarSeparatorElement)radWaitingBar1.GetChildAt(0).GetChildAt(0).GetChildAt(0)).Dash = false; // // dotsLineWaitingBarIndicatorElement1 // - this.dotsLineWaitingBarIndicatorElement1.Name = "dotsLineWaitingBarIndicatorElement1"; + dotsLineWaitingBarIndicatorElement1.Name = "dotsLineWaitingBarIndicatorElement1"; // // radLabel_Status // - this.radLabel_Status.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.radLabel_Status.AutoSize = false; - this.radLabel_Status.Location = new System.Drawing.Point(139, 85); - this.radLabel_Status.Name = "radLabel_Status"; - this.radLabel_Status.Size = new System.Drawing.Size(550, 18); - this.radLabel_Status.TabIndex = 2; - this.radLabel_Status.Text = "Idle ..."; + radLabel_Status.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + radLabel_Status.AutoSize = false; + radLabel_Status.Location = new Point(139, 66); + radLabel_Status.Name = "radLabel_Status"; + radLabel_Status.Size = new Size(550, 18); + radLabel_Status.TabIndex = 2; + radLabel_Status.Text = "Idle ..."; + radLabel_Status.TextImageRelation = TextImageRelation.ImageBeforeText; // // radLabel_Header // - this.radLabel_Header.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.radLabel_Header.AutoSize = false; - this.radLabel_Header.Image = global::Pilz.Updating.UpdateInstaller.MyIcons.icons8_installing_updates_48px; - this.radLabel_Header.Location = new System.Drawing.Point(3, 3); - this.radLabel_Header.Name = "radLabel_Header"; - this.radLabel_Header.Size = new System.Drawing.Size(686, 76); - this.radLabel_Header.TabIndex = 1; - this.radLabel_Header.Text = "SM64 ROM Manager wird aktu" + - "allisierung ..."; - this.radLabel_Header.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - this.radLabel_Header.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + radLabel_Header.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + radLabel_Header.AutoSize = false; + radLabel_Header.Image = MyIcons.icons8_installing_updates_48px; + radLabel_Header.Location = new Point(3, 3); + radLabel_Header.Name = "radLabel_Header"; + radLabel_Header.Size = new Size(686, 57); + radLabel_Header.TabIndex = 1; + radLabel_Header.Text = "SM64 ROM Manager wird aktuallisierung ..."; + radLabel_Header.TextAlignment = ContentAlignment.MiddleCenter; + radLabel_Header.TextImageRelation = TextImageRelation.ImageBeforeText; // // Main // - this.AutoScaleBaseSize = new System.Drawing.Size(7, 15); - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(692, 106); - this.Controls.Add(this._Panel1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "Main"; - // - // - // - this.RootElement.ApplyShapeToControl = true; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Installing"; - this._Panel1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.radWaitingBar1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.radLabel_Status)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.radLabel_Header)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); - this.ResumeLayout(false); - + AutoScaleBaseSize = new Size(7, 15); + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(692, 87); + Controls.Add(_Panel1); + FormBorderStyle = FormBorderStyle.FixedSingle; + Icon = (Icon)resources.GetObject("$this.Icon"); + MaximizeBox = false; + MinimizeBox = false; + Name = "Main"; + StartPosition = FormStartPosition.CenterScreen; + Text = "Installing"; + _Panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)radWaitingBar1).EndInit(); + ((System.ComponentModel.ISupportInitialize)radLabel_Status).EndInit(); + ((System.ComponentModel.ISupportInitialize)radLabel_Header).EndInit(); + ((System.ComponentModel.ISupportInitialize)this).EndInit(); + ResumeLayout(false); } private Panel _Panel1; diff --git a/Pilz.Updating.UpdateInstaller/Main.resx b/Pilz.Updating.UpdateInstaller/Main.resx index d2235dd..886ba53 100644 --- a/Pilz.Updating.UpdateInstaller/Main.resx +++ b/Pilz.Updating.UpdateInstaller/Main.resx @@ -1,4 +1,64 @@ - + + +