diff --git a/Examples/SDUI.Test/FluentForm.Designer.cs b/Examples/SDUI.Test/FluentForm.Designer.cs deleted file mode 100644 index 196f931..0000000 --- a/Examples/SDUI.Test/FluentForm.Designer.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace SDUI.Test -{ - partial class FluentForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - button1 = new Controls.Button(); - button2 = new Controls.Button(); - button3 = new Controls.Button(); - generalPage1 = new GeneralPage(); - SuspendLayout(); - // - // button1 - // - button1.Color = System.Drawing.Color.Transparent; - button1.Location = new System.Drawing.Point(31, 74); - button1.Name = "button1"; - button1.Radius = 6; - button1.ShadowDepth = 4F; - button1.Size = new System.Drawing.Size(94, 29); - button1.TabIndex = 0; - button1.Text = "Dark"; - button1.UseVisualStyleBackColor = true; - button1.Click += button1_Click; - // - // button2 - // - button2.Color = System.Drawing.Color.Transparent; - button2.Location = new System.Drawing.Point(131, 74); - button2.Name = "button2"; - button2.Radius = 6; - button2.ShadowDepth = 4F; - button2.Size = new System.Drawing.Size(94, 29); - button2.TabIndex = 1; - button2.Text = "Light"; - button2.UseVisualStyleBackColor = true; - button2.Click += button2_Click; - // - // button3 - // - button3.Color = System.Drawing.Color.Transparent; - button3.Location = new System.Drawing.Point(231, 74); - button3.Name = "button3"; - button3.Radius = 6; - button3.ShadowDepth = 4F; - button3.Size = new System.Drawing.Size(94, 29); - button3.TabIndex = 2; - button3.Text = "Transparent"; - button3.UseVisualStyleBackColor = true; - button3.Click += button3_Click; - // - // generalPage1 - // - generalPage1.Location = new System.Drawing.Point(3, 144); - generalPage1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - generalPage1.Name = "generalPage1"; - generalPage1.Size = new System.Drawing.Size(1802, 979); - generalPage1.TabIndex = 5; - // - // FluentForm - // - AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - BackColor = System.Drawing.Color.FromArgb(0, 0, 0, 0); - ClientSize = new System.Drawing.Size(1380, 965); - Controls.Add(generalPage1); - Controls.Add(button3); - Controls.Add(button2); - Controls.Add(button1); - DwmMargin = -1; - Location = new System.Drawing.Point(0, 0); - Name = "FluentForm"; - Text = "FluentForm"; - ResumeLayout(false); - } - - #endregion - - private Controls.Button button1; - private Controls.Button button2; - private Controls.Button button3; - private GeneralPage generalPage1; - } -} \ No newline at end of file diff --git a/Examples/SDUI.Test/FluentForm.cs b/Examples/SDUI.Test/FluentForm.cs deleted file mode 100644 index f073dc2..0000000 --- a/Examples/SDUI.Test/FluentForm.cs +++ /dev/null @@ -1,32 +0,0 @@ -using SDUI.Controls; -using System; -using System.Drawing; - -namespace SDUI.Test -{ - public partial class FluentForm : UIWindow - { - public FluentForm() - { - InitializeComponent(); - } - - private void button1_Click(object sender, EventArgs e) - { - ColorScheme.BackColor = Color.Black; - BackColor = ColorScheme.BackColor; - } - - private void button2_Click(object sender, EventArgs e) - { - ColorScheme.BackColor = Color.White; - BackColor = ColorScheme.BackColor; - } - - private void button3_Click(object sender, EventArgs e) - { - ColorScheme.BackColor = Color.Transparent; - BackColor = ColorScheme.BackColor; - } - } -} diff --git a/Examples/SDUI.Test/FluentForm.resx b/Examples/SDUI.Test/FluentForm.resx deleted file mode 100644 index 8b2ff64..0000000 --- a/Examples/SDUI.Test/FluentForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Examples/SDUI.Test/Program.cs b/Examples/SDUI.Test/Program.cs index fff9374..548a4e2 100644 --- a/Examples/SDUI.Test/Program.cs +++ b/Examples/SDUI.Test/Program.cs @@ -15,7 +15,7 @@ static void Main() Application.SetHighDpiMode(HighDpiMode.PerMonitor | HighDpiMode.PerMonitorV2); Application.SetCompatibleTextRenderingDefault(false); - Application.SetDefaultFont(SDUI.Helpers.FontManager.Segoe); + //Application.SetDefaultFont(SDUI.Helpers.FontManager.Segoe); Application.Run(new MainWindow()); } } diff --git a/SDUI/Controls/InputDailog.Designer.cs b/SDUI/Controls/InputDailog.Designer.cs index 4e748ba..c2273e9 100644 --- a/SDUI/Controls/InputDailog.Designer.cs +++ b/SDUI/Controls/InputDailog.Designer.cs @@ -53,7 +53,7 @@ private void InitializeComponent() lblTitle.GradientAnimation = false; lblTitle.Location = new System.Drawing.Point(0, 0); lblTitle.Name = "lblTitle"; - lblTitle.Size = new System.Drawing.Size(319, 20); + lblTitle.Size = new System.Drawing.Size(324, 20); lblTitle.TabIndex = 1; lblTitle.Text = "Input"; // @@ -71,13 +71,13 @@ private void InitializeComponent() lblMessage.GradientAnimation = false; lblMessage.Location = new System.Drawing.Point(0, 20); lblMessage.Name = "lblMessage"; - lblMessage.Size = new System.Drawing.Size(319, 46); + lblMessage.Size = new System.Drawing.Size(324, 46); lblMessage.TabIndex = 2; lblMessage.Text = "Please enter a value"; // // txtValue // - txtValue.Location = new System.Drawing.Point(11, 69); + txtValue.Location = new System.Drawing.Point(11, 83); txtValue.MaxLength = 32767; txtValue.MultiLine = false; txtValue.Name = "txtValue"; @@ -94,11 +94,11 @@ private void InitializeComponent() btnOK.Color = System.Drawing.Color.DodgerBlue; btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; btnOK.ForeColor = System.Drawing.Color.White; - btnOK.Location = new System.Drawing.Point(11, 8); + btnOK.Location = new System.Drawing.Point(11, 6); btnOK.Name = "btnOK"; - btnOK.Radius = 2; + btnOK.Radius = 6; btnOK.ShadowDepth = 4F; - btnOK.Size = new System.Drawing.Size(75, 23); + btnOK.Size = new System.Drawing.Size(106, 29); btnOK.TabIndex = 0; btnOK.Text = "OK"; btnOK.UseVisualStyleBackColor = true; @@ -109,11 +109,11 @@ private void InitializeComponent() btnCancel.Color = System.Drawing.Color.Firebrick; btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; btnCancel.ForeColor = System.Drawing.Color.White; - btnCancel.Location = new System.Drawing.Point(239, 8); + btnCancel.Location = new System.Drawing.Point(223, 6); btnCancel.Name = "btnCancel"; - btnCancel.Radius = 2; + btnCancel.Radius = 6; btnCancel.ShadowDepth = 4F; - btnCancel.Size = new System.Drawing.Size(75, 23); + btnCancel.Size = new System.Drawing.Size(91, 29); btnCancel.TabIndex = 1; btnCancel.Text = "Cancel"; btnCancel.UseVisualStyleBackColor = true; @@ -125,12 +125,12 @@ private void InitializeComponent() comboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; comboBox.FormattingEnabled = true; comboBox.IntegralHeight = false; - comboBox.ItemHeight = 17; - comboBox.Location = new System.Drawing.Point(12, 69); + comboBox.ItemHeight = 23; + comboBox.Location = new System.Drawing.Point(12, 80); comboBox.Name = "comboBox"; comboBox.Radius = 5; comboBox.ShadowDepth = 4F; - comboBox.Size = new System.Drawing.Size(298, 23); + comboBox.Size = new System.Drawing.Size(277, 29); comboBox.TabIndex = 4; comboBox.Visible = false; // @@ -139,12 +139,12 @@ private void InitializeComponent() numValue.BackColor = System.Drawing.Color.Transparent; numValue.Font = new System.Drawing.Font("Segoe UI", 9.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); numValue.ForeColor = System.Drawing.Color.FromArgb(0, 0, 0); - numValue.Location = new System.Drawing.Point(12, 69); + numValue.Location = new System.Drawing.Point(12, 77); numValue.Maximum = new decimal(new int[] { 32765, 0, 0, 0 }); numValue.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); numValue.MinimumSize = new System.Drawing.Size(80, 25); numValue.Name = "numValue"; - numValue.Size = new System.Drawing.Size(156, 25); + numValue.Size = new System.Drawing.Size(156, 34); numValue.TabIndex = 5; numValue.Value = new decimal(new int[] { 1, 0, 0, 0 }); numValue.KeyUp += numValue_KeyUp; @@ -157,19 +157,18 @@ private void InitializeComponent() panel1.Controls.Add(btnOK); panel1.Controls.Add(btnCancel); panel1.Dock = System.Windows.Forms.DockStyle.Bottom; - panel1.Location = new System.Drawing.Point(0, 101); + panel1.Location = new System.Drawing.Point(0, 125); panel1.Name = "panel1"; panel1.Radius = 0; panel1.ShadowDepth = 4F; - panel1.Size = new System.Drawing.Size(319, 39); + panel1.Size = new System.Drawing.Size(324, 39); panel1.TabIndex = 6; // // InputDialog // AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - BackColor = System.Drawing.Color.White; - ClientSize = new System.Drawing.Size(319, 140); + ClientSize = new System.Drawing.Size(324, 164); ControlBox = false; Controls.Add(panel1); Controls.Add(numValue); @@ -177,7 +176,6 @@ private void InitializeComponent() Controls.Add(txtValue); Controls.Add(lblMessage); Controls.Add(lblTitle); - Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); ForeColor = System.Drawing.Color.Black; FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; MaximizeBox = false; diff --git a/SDUI/Controls/InputDailog.resx b/SDUI/Controls/InputDailog.resx index af32865..8b2ff64 100644 --- a/SDUI/Controls/InputDailog.resx +++ b/SDUI/Controls/InputDailog.resx @@ -1,7 +1,7 @@