gahhhh they were just slightly offcenter and it triggers me

This commit is contained in:
william341 2017-05-06 18:50:37 -07:00
parent 5fbf30dbc0
commit 57c8eb3904
2 changed files with 11 additions and 6 deletions

View file

@ -52,7 +52,7 @@
//
this.btnlogin.AutoSize = true;
this.btnlogin.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.btnlogin.Location = new System.Drawing.Point(129, 184);
this.btnlogin.Location = new System.Drawing.Point(159, 163);
this.btnlogin.Name = "btnlogin";
this.btnlogin.Size = new System.Drawing.Size(43, 23);
this.btnlogin.TabIndex = 2;
@ -64,19 +64,19 @@
//
this.txtpassword.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtpassword.Location = new System.Drawing.Point(24, 157);
this.txtpassword.Location = new System.Drawing.Point(69, 115);
this.txtpassword.Name = "txtpassword";
this.txtpassword.Size = new System.Drawing.Size(301, 20);
this.txtpassword.Size = new System.Drawing.Size(300, 20);
this.txtpassword.TabIndex = 1;
this.txtpassword.UseSystemPasswordChar = true;
//
// txtusername
//
this.txtusername.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
this.txtusername.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtusername.Location = new System.Drawing.Point(24, 131);
this.txtusername.Location = new System.Drawing.Point(3, 14);
this.txtusername.Name = "txtusername";
this.txtusername.Size = new System.Drawing.Size(301, 20);
this.txtusername.Size = new System.Drawing.Size(300, 20);
this.txtusername.TabIndex = 0;
//
// lblogintitle

View file

@ -44,6 +44,11 @@ namespace ShiftOS.WinForms
ControlManager.SetupControls(pnlloginform);
ControlManager.SetupControl(btnshutdown);
pnlloginform.CenterParent();
txtusername.CenterParent();
txtusername.Location = new System.Drawing.Point(txtusername.Location.X, 77);
txtpassword.CenterParent();
btnlogin.CenterParent();
btnlogin.Location = new System.Drawing.Point(btnlogin.Location.X, 143);
this.BackColor = SkinEngine.LoadedSkin.LoginScreenColor;
this.BackgroundImage = SkinEngine.GetImage("login");
this.BackgroundImageLayout = SkinEngine.GetImageLayout("login");