Skip to content

Commit

Permalink
......
Browse files Browse the repository at this point in the history
  • Loading branch information
SDClowen committed May 24, 2024
1 parent b506156 commit f32bf3e
Show file tree
Hide file tree
Showing 32 changed files with 616 additions and 266 deletions.
71 changes: 66 additions & 5 deletions Examples/SDUI.Demo/MainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Examples/SDUI.Demo/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public partial class MainWindow : UIWindow
public MainWindow()
{
InitializeComponent();

BackColor = Color.Transparent;
ColorScheme.BackColor = Color.Black;
}
}
}
6 changes: 3 additions & 3 deletions Examples/SDUI.Demo/MainWindow.resx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
Expand All @@ -18,7 +18,7 @@
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing"">Blue</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
Expand Down Expand Up @@ -48,7 +48,7 @@
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
Expand Down
1 change: 0 additions & 1 deletion Examples/SDUI.Demo/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ static void Main()
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.SetDefaultFont(Helpers.FontManager.Inter);
Application.Run(new MainWindow());
}
}
Expand Down
14 changes: 7 additions & 7 deletions Examples/SDUI.Test/ConfigPage.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Examples/SDUI.Test/ConfigPage.resx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
Expand Down Expand Up @@ -48,7 +48,7 @@
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
Expand Down
96 changes: 96 additions & 0 deletions Examples/SDUI.Test/FluentForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions Examples/SDUI.Test/FluentForm.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using SDUI.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TextBox;

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;
}
}
}
Loading

0 comments on commit f32bf3e

Please sign in to comment.