🦄 Beautiful AntdUI

This commit is contained in:
Tom
2024-10-14 14:40:36 +08:00
parent 8f0d6943c8
commit b6460961a2
4 changed files with 17 additions and 65 deletions

View File

@@ -50,20 +50,20 @@ namespace Demo
private void InitializeComponent()
{
btn_mode = new AntdUI.Button();
btn_setting = new AntdUI.Button();
virtualPanel = new AntdUI.VirtualPanel();
windowBar = new AntdUI.PageHeader();
txt_search = new AntdUI.Input();
colorTheme = new AntdUI.ColorPicker();
btn_setting = new AntdUI.Button();
windowBar.SuspendLayout();
SuspendLayout();
//
// btn_mode
//
btn_mode.Dock = DockStyle.Right;
btn_mode.Font = new Font("Microsoft YaHei UI", 18F);
btn_mode.Ghost = true;
btn_mode.IconSvg = Properties.Resources.app_light;
btn_mode.IconSvg = "SunOutlined";
btn_mode.ToggleIconSvg = "MoonOutlined";
btn_mode.Location = new Point(1056, 0);
btn_mode.Name = "btn_mode";
btn_mode.Radius = 0;
@@ -72,6 +72,19 @@ namespace Demo
btn_mode.WaveSize = 0;
btn_mode.Click += btn_mode_Click;
//
// btn_setting
//
btn_setting.Dock = DockStyle.Right;
btn_setting.Ghost = true;
btn_setting.IconSvg = "SettingOutlined";
btn_setting.Location = new Point(1106, 0);
btn_setting.Name = "btn_setting";
btn_setting.Radius = 0;
btn_setting.Size = new Size(50, 40);
btn_setting.TabIndex = 7;
btn_setting.WaveSize = 0;
btn_setting.Click += btn_setting_Click;
//
// virtualPanel
//
virtualPanel.Dock = DockStyle.Fill;
@@ -130,19 +143,6 @@ namespace Demo
colorTheme.TabIndex = 8;
colorTheme.Value = Color.FromArgb(22, 119, 255);
//
// btn_setting
//
btn_setting.Dock = DockStyle.Right;
btn_setting.Ghost = true;
btn_setting.IconSvg = Properties.Resources.setting;
btn_setting.Location = new Point(1106, 0);
btn_setting.Name = "btn_setting";
btn_setting.Radius = 0;
btn_setting.Size = new Size(50, 40);
btn_setting.TabIndex = 7;
btn_setting.WaveSize = 0;
btn_setting.Click += btn_setting_Click;
//
// Overview
//
BackColor = Color.White;
@@ -161,10 +161,10 @@ namespace Demo
#endregion
private AntdUI.Button btn_mode;
private AntdUI.Button btn_setting;
private AntdUI.VirtualPanel virtualPanel;
private AntdUI.PageHeader windowBar;
private AntdUI.ColorPicker colorTheme;
private AntdUI.Input txt_search;
private AntdUI.Button btn_setting;
}
}

Binary file not shown.

View File

@@ -60,33 +60,6 @@ namespace Demo.Properties {
}
}
/// <summary>
/// 查找类似 &lt;svg viewBox=&quot;0 0 1024 1024&quot;&gt;&lt;path d=&quot;M137.6 262.144a52.8 52.8 0 0 1 4.608-5.632l0.064-0.128 168.64-177.472a46.528 46.528 0 0 1 68.48 0.256c17.088 18.24 18.56 46.784 4.48 66.816l-4.736 5.76-85.312 89.728h231.04C728.704 241.536 896 401.152 896 600.832c0 194.816-159.168 351.424-356.352 358.976L524.8 960H176.448C149.696 960 128 937.024 128 908.672c0-25.984 18.24-47.424 41.856-50.816l6.592-0.512H524.8c152.576 0 274.368-116.16 274.368-256.64 0-136.128-114.496-249.472-260.544-256.256L524.8 344.128H174.528a45.952 [字符串的其余部分被截断]&quot;; 的本地化字符串。
/// </summary>
internal static string app_back {
get {
return ResourceManager.GetString("app_back", resourceCulture);
}
}
/// <summary>
/// 查找类似 &lt;svg viewBox=&quot;0 0 1024 1024&quot;&gt;&lt;path d=&quot;M186.86 493.94h-70.39c-10.79 0-19.42 8.63-19.42 19.42 0 10.79 8.63 19.42 19.42 19.42h70.39c10.79 0 19.42-8.63 19.42-19.42 0-10.79-8.63-19.42-19.42-19.42z m77.86-200.71c7.47 7.47 19.59 7.47 27.39 0 7.47-7.8 7.47-19.92 0-27.39l-45.98-45.98c-7.8-7.8-19.92-7.8-27.39 0-7.8 7.47-7.8 19.76 0 27.39-0.01 0 45.98 45.98 45.98 45.98z m5.64 434.62l-51.63 51.63c-7.8 7.47-7.8 19.59 0 27.39 7.47 7.47 19.76 7.47 27.39 0l51.63-51.63c7.47-7.8 7.47-19.92 0-27.39-7.47-7.81-19.92-7.81-27.39 [字符串的其余部分被截断]&quot;; 的本地化字符串。
/// </summary>
internal static string app_dark {
get {
return ResourceManager.GetString("app_dark", resourceCulture);
}
}
/// <summary>
/// 查找类似 &lt;svg viewBox=&quot;0 0 1024 1024&quot;&gt;&lt;path d=&quot;M186.86 493.94h-70.39c-10.79 0-19.42 8.63-19.42 19.42 0 10.79 8.63 19.42 19.42 19.42h70.39c10.79 0 19.42-8.63 19.42-19.42 0-10.79-8.63-19.42-19.42-19.42zM264.72 293.23c7.47 7.47 19.59 7.47 27.39 0 7.47-7.8 7.47-19.92 0-27.39l-45.98-45.98c-7.8-7.8-19.92-7.8-27.39 0-7.8 7.47-7.8 19.76 0 27.39-0.01 0 45.98 45.98 45.98 45.98zM270.36 727.85l-51.63 51.63c-7.8 7.47-7.8 19.59 0 27.39 7.47 7.47 19.76 7.47 27.39 0l51.63-51.63c7.47-7.8 7.47-19.92 0-27.39-7.47-7.81-19.92-7.81-27.39 [字符串的其余部分被截断]&quot;; 的本地化字符串。
/// </summary>
internal static string app_light {
get {
return ResourceManager.GetString("app_light", resourceCulture);
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
@@ -185,14 +158,5 @@ namespace Demo.Properties {
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找类似 &lt;svg viewBox=&quot;0 0 1024 1024&quot;&gt;&lt;path d=&quot;M372.134088 1004.846981a509.94041 509.94041 0 0 1-159.298198-76.821527l2.164315-103.514738a93.088793 93.088793 0 0 0-74.238313-93.088794l-101.536602-20.991523A509.428422 509.428422 0 0 1 0.011636 537.983409l82.243949-62.834935a93.088793 93.088793 0 0 0 26.507034-116.104998l-46.89348-92.390627A514.152678 514.152678 0 0 1 172.225904 128.415991l100.419536 25.133974a93.088793 93.088793 0 0 0 107.284834-51.664281l43.007023-94.252403a515.246472 515.246472 0 0 1 88.434354-7.61 [字符串的其余部分被截断]&quot;; 的本地化字符串。
/// </summary>
internal static string setting {
get {
return ResourceManager.GetString("setting", resourceCulture);
}
}
}
}

View File

@@ -117,15 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="app_back" xml:space="preserve">
<value>&lt;svg viewBox="0 0 1024 1024"&gt;&lt;path d="M137.6 262.144a52.8 52.8 0 0 1 4.608-5.632l0.064-0.128 168.64-177.472a46.528 46.528 0 0 1 68.48 0.256c17.088 18.24 18.56 46.784 4.48 66.816l-4.736 5.76-85.312 89.728h231.04C728.704 241.536 896 401.152 896 600.832c0 194.816-159.168 351.424-356.352 358.976L524.8 960H176.448C149.696 960 128 937.024 128 908.672c0-25.984 18.24-47.424 41.856-50.816l6.592-0.512H524.8c152.576 0 274.368-116.16 274.368-256.64 0-136.128-114.496-249.472-260.544-256.256L524.8 344.128H174.528a45.952 45.952 0 0 1-3.008-0.256l4.928 0.256a46.08 46.08 0 0 1-29.248-10.368 50.432 50.432 0 0 1-9.408-9.984l4.288 5.248a51.072 51.072 0 0 1-13.376-27.52A51.84 51.84 0 0 1 128 292.864v-1.984l0.192-2.752L128 292.8a54.592 54.592 0 0 1 6.4-25.472l0.192-0.384 3.008-4.8z"&gt;&lt;/path&gt;&lt;/svg&gt;</value>
</data>
<data name="app_dark" xml:space="preserve">
<value>&lt;svg viewBox="0 0 1024 1024"&gt;&lt;path d="M186.86 493.94h-70.39c-10.79 0-19.42 8.63-19.42 19.42 0 10.79 8.63 19.42 19.42 19.42h70.39c10.79 0 19.42-8.63 19.42-19.42 0-10.79-8.63-19.42-19.42-19.42z m77.86-200.71c7.47 7.47 19.59 7.47 27.39 0 7.47-7.8 7.47-19.92 0-27.39l-45.98-45.98c-7.8-7.8-19.92-7.8-27.39 0-7.8 7.47-7.8 19.76 0 27.39-0.01 0 45.98 45.98 45.98 45.98z m5.64 434.62l-51.63 51.63c-7.8 7.47-7.8 19.59 0 27.39 7.47 7.47 19.76 7.47 27.39 0l51.63-51.63c7.47-7.8 7.47-19.92 0-27.39-7.47-7.81-19.92-7.81-27.39 0z m241.71-530.74c10.79 0 19.42-8.63 19.42-19.42v-60.1c0-10.79-8.63-19.42-19.42-19.42-10.79 0-19.42 8.63-19.42 19.42v60.26c0 10.63 8.63 19.26 19.42 19.26z m395.27 296.83h-61.76c-10.79 0-19.42 8.63-19.42 19.42 0 10.79 8.63 19.42 19.42 19.42h61.76c10.79 0 19.42-8.63 19.42-19.42 0-10.79-8.8-19.42-19.42-19.42zM512.07 817.49c-10.79 0-19.42 8.96-19.42 19.42v71.88c0 10.79 8.63 19.42 19.42 19.42 10.79 0 19.42-8.63 19.42-19.42v-71.88c0-10.46-8.63-19.42-19.42-19.42z m265.78-597.63l-41.67 41.5c-7.47 7.8-7.47 19.92 0 27.39 7.8 7.8 19.92 7.8 27.39 0l41.67-41.5c7.47-7.8 7.47-19.92 0-27.39-7.63-7.81-19.92-7.81-27.39 0z m-20.25 511.8c-7.47-7.47-19.76-7.47-27.39 0-7.47 7.8-7.47 19.92 0 27.39l47.64 47.64c7.47 7.47 19.76 7.47 27.39 0 7.47-7.8 7.47-19.92 0-27.39l-47.64-47.64zM516.22 256.21c-138.62 0-251.34 112.39-251.34 251.17 0 138.95 112.72 251.5 251.34 251.5s251.01-112.39 251.01-251.5c0-138.61-112.39-251.17-251.01-251.17z m0 459.02c-114.71 0-207.84-93.13-207.84-207.84 0-100.44 71.22-184.27 166.01-203.69-14.28 28.06-22.08 59.93-22.08 93.3 0 114.88 92.97 207.84 207.84 207.84 14.28 0 28.39-1.49 41.67-4.15-34.2 68.06-104.59 114.54-185.6 114.54z"&gt;&lt;/path&gt;&lt;/svg&gt;</value>
</data>
<data name="app_light" xml:space="preserve">
<value>&lt;svg viewBox="0 0 1024 1024"&gt;&lt;path d="M186.86 493.94h-70.39c-10.79 0-19.42 8.63-19.42 19.42 0 10.79 8.63 19.42 19.42 19.42h70.39c10.79 0 19.42-8.63 19.42-19.42 0-10.79-8.63-19.42-19.42-19.42zM264.72 293.23c7.47 7.47 19.59 7.47 27.39 0 7.47-7.8 7.47-19.92 0-27.39l-45.98-45.98c-7.8-7.8-19.92-7.8-27.39 0-7.8 7.47-7.8 19.76 0 27.39-0.01 0 45.98 45.98 45.98 45.98zM270.36 727.85l-51.63 51.63c-7.8 7.47-7.8 19.59 0 27.39 7.47 7.47 19.76 7.47 27.39 0l51.63-51.63c7.47-7.8 7.47-19.92 0-27.39-7.47-7.81-19.92-7.81-27.39 0zM512.07 197.11c10.79 0 19.42-8.63 19.42-19.42v-60.1c0-10.79-8.63-19.42-19.42-19.42-10.79 0-19.42 8.63-19.42 19.42v60.26c0 10.63 8.63 19.26 19.42 19.26zM907.34 493.94h-61.76c-10.79 0-19.42 8.63-19.42 19.42 0 10.79 8.63 19.42 19.42 19.42h61.76c10.79 0 19.42-8.63 19.42-19.42 0-10.79-8.8-19.42-19.42-19.42zM512.07 817.49c-10.79 0-19.42 8.96-19.42 19.42v71.88c0 10.79 8.63 19.42 19.42 19.42 10.79 0 19.42-8.63 19.42-19.42v-71.88c0-10.46-8.63-19.42-19.42-19.42zM777.85 219.86l-41.67 41.5c-7.47 7.8-7.47 19.92 0 27.39 7.8 7.8 19.92 7.8 27.39 0l41.67-41.5c7.47-7.8 7.47-19.92 0-27.39-7.63-7.81-19.92-7.81-27.39 0zM757.6 731.66c-7.47-7.47-19.76-7.47-27.39 0-7.47 7.8-7.47 19.92 0 27.39l47.64 47.64c7.47 7.47 19.76 7.47 27.39 0 7.47-7.8 7.47-19.92 0-27.39l-47.64-47.64zM516.22 256.21c-138.62 0-251.34 112.39-251.34 251.17 0 138.95 112.72 251.5 251.34 251.5s251.01-112.39 251.01-251.5c0-138.61-112.39-251.17-251.01-251.17z"&gt;&lt;/path&gt;&lt;/svg&gt;</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="bg1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bg\bg1.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -157,7 +148,4 @@
<data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="setting" xml:space="preserve">
<value>&lt;svg viewBox="0 0 1024 1024"&gt;&lt;path d="M372.134088 1004.846981a509.94041 509.94041 0 0 1-159.298198-76.821527l2.164315-103.514738a93.088793 93.088793 0 0 0-74.238313-93.088794l-101.536602-20.991523A509.428422 509.428422 0 0 1 0.011636 537.983409l82.243949-62.834935a93.088793 93.088793 0 0 0 26.507034-116.104998l-46.89348-92.390627A514.152678 514.152678 0 0 1 172.225904 128.415991l100.419536 25.133974a93.088793 93.088793 0 0 0 107.284834-51.664281l43.007023-94.252403a515.246472 515.246472 0 0 1 88.434354-7.610009c30.137497 0 59.669917 2.606486 88.411081 7.610009l43.007023 94.252403a93.088793 93.088793 0 0 0 107.284834 51.664281l100.396264-25.133974a514.152678 514.152678 0 0 1 110.356765 138.236858l-46.870208 92.390627a93.088793 93.088793 0 0 0 26.483762 116.104998l82.243949 62.834935a509.428422 509.428422 0 0 1-39.213654 172.44699l-101.51333 20.968251a93.088793 93.088793 0 0 0-74.238312 93.088793l2.141042 103.538011a509.94041 509.94041 0 0 1-159.298198 76.798255l-79.684007-66.279221a93.088793 93.088793 0 0 0-119.060567 0l-79.684007 66.302493zM511.348378 721.461421a209.449785 209.449785 0 1 0 0-418.89957 209.449785 209.449785 0 0 0 0 418.89957z"&gt;&lt;/path&gt;&lt;/svg&gt;</value>
</data>
</root>