1 Star 0 Fork 3

chenyulong / MaterialSkin2E

forked from arith / MaterialSkin2E 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

更新说明

2023.12.28

  • MaterialButton新增Loading ICON
  • 新增MaterialLoading 控件
  • radio button,checkbox,textbox,combox增加小号类型
  • 优化部分控件和修复bug

2023.12.17

  • 增加有Title的 MaterialDivider2,可在左,中,右位置添加文本说明

2023.12.16

  • 增加可设计的 MaterialDialog2,在设计时可添加控件,以显示更多的内容

2023.12.04

  • 支持.net framework 4.0
  • 加了MaterialToolTip
  • 增加中英文字体的支持
  • 对MaterialButton加上自带tooltip属性

MaterialSkin 2 for .NET WinForms

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.

⚠️ It's NOT recommended to use this lib for new projects ⚠️

❓For new projects I recommend WPF with this Material Design Xaml Toolkit since it's a lot newer and performant and feature complete

ℹ️ The current state of this project state is: not active

Contributing

  • Feel free to open a PR with new features or bug fixes. Since this project is not currently active, big changes will not be considered.
  • Support this and more projects by donating:

Paypal

A quick look

home

Nuget Package

A nuget package version is available here

Or simply search for MaterialSkin.2 on the Nuget Package Manager inside Visual Studio

WIKI Available!

But there's not much in there for now, please contribute if you can. :smile:

You can access it here

Current state of the MaterialSkin components

Component Supported Disabled mode Animated
Backdrop No - -
Banner No - -
Buttons Yes Yes Yes
Cards Yes N/A N/A
Check Box Yes Yes Yes
Check Box List Yes Yes Yes
Chips No - -
Combobox Yes Yes Yes
Context Menu Yes Yes Yes
Date Picker No - -
Dialog Yes N/A No
Divider Yes N/A N/A
Drawer Yes N/A Yes
Expansion Panel Yes Yes No
Flexible Dialog (big) Yes Yes N/A
FAB - Floating Action Button Yes Yes Yes
Label Yes Yes N/A
ListBox Yes Yes N/A
ListView Yes No N/A
Progress Bar Partial No No
Radio Button Yes Yes Yes
Text field Yes Yes Yes
Sliders Yes Yes No
SnackBar Yes N/A Yes
Switch Yes Yes Yes
Tabs Yes N/A Yes
Time Picker No - -
Tooltips No - -

All supported components have a dark theme

TODO List

  • Progress bar - Animation and variants, maybe round loading thingy
  • Backdrop (maybe)
  • Some Color code improvements and refactoring
  • DatePicker
  • Drawer - Header, Divider, subtitle & submenu
  • Textfield ContextualMenu translation
  • Controls code cleanup
  • Add Noto font support

Contributing

Thanks for taking the time to contribute! :+1:

If you have any issues please open an issue; have an improvement? open a pull request.

Contributors

Thank you to all the people who have already contributed to MaterialSkin 2 !


Implementing MaterialSkin 2 in your application

1. Add the library to your project

There are a few methods to add this lib:

The Easy way

Search for MaterialSkin.2 on the Nuget Package manager inside VisualStudio and add it to your project.

Manual way

Download the precompiled DLL available on the releases section and add it as a external reference on your project.

Compile from the latest master

Clone the project from GitHub, then add the MaterialSkin.csproj to your own solution, then add it as a project reference on your project.

2. Add the MaterialSkin components to your ToolBox

Simply drag the MaterialSkin.dll file into your IDE's ToolBox and all the controls should be added there.

3. Inherit from MaterialForm

Open the code behind your Form you wish to skin. Make it inherit from MaterialForm rather than Form. Don't forget to put the library in your imports, so it can find the MaterialForm class!

C# (Form1.cs)

public partial class Form1 : MaterialForm

VB.NET (Form1.Designer.vb)

Partial Class Form1
  Inherits MaterialSkin.Controls.MaterialForm

4. Initialize your colorscheme

Set your preferred colors & theme. Also add the form to the manager so it keeps updated if the color scheme or theme changes later on.

C# (Form1.cs)

public Form1()
{
    InitializeComponent();

    var materialSkinManager = MaterialSkinManager.Instance;
    materialSkinManager.AddFormToManage(this);
    materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;
    materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE);
}

VB.NET (Form1.vb)

Imports MaterialSkin

Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim SkinManager As MaterialSkinManager = MaterialSkinManager.Instance
        SkinManager.AddFormToManage(Me)
        SkinManager.Theme = MaterialSkinManager.Themes.LIGHT
        SkinManager.ColorScheme = New ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE)
    End Sub
End Class

Material Design in WPF

If you love .NET and Material Design, you should definitely check out Material Design Xaml Toolkit by ButchersBoy. It's a similar project but for WPF instead of WinForms.


Preview!

A simple demo interface with MaterialSkin components. home

The MaterialSkin Drawer (menu). drawer

Every MaterialSkin button variant - this is 1 control, 3 properties buttons

The MaterialSkin checkboxes, radio and Switch. selection

Material skin textfield text

Table control table

Progress bar progress bar

Cards cards

List Box listbox

Expansion Panel expansion

Label label

MaterialSkin using a custom color scheme. custom

FlexibleMaterial Messagebox messagebox

The MIT License (MIT) Copyright (c) 2014 Ignace Maes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

MaterialSkin2做些修改符合自己的需要 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/SHchenyulong/material-skin2e.git
git@gitee.com:SHchenyulong/material-skin2e.git
SHchenyulong
material-skin2e
MaterialSkin2E
master

搜索帮助