From 97af2d7126caf1c62b1bdcb4ab2fbec03e472f3d Mon Sep 17 00:00:00 2001 From: Jesse205 <2055675594@qq.com> Date: Mon, 17 Jun 2024 06:59:56 +0800 Subject: [PATCH] update README --- README.md | 69 ++++++++++---------- README_zh_CN.md | 163 +++++++++++++++++++++++++++--------------------- 2 files changed, 123 insertions(+), 109 deletions(-) diff --git a/README.md b/README.md index 7a2cbbdd..8eb1427c 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,21 @@
- A fluent design component library for Qt QML, You need Pyside6 PySide6-FluentUI-QML。 -
+# QML FluentUI + +A Fluent Design component library for Qt QML, You need PySide6 [PySide6-FluentUI-QML](https://github.com/zhuzichu520/PySide6-FluentUI-QML). + + ![win-badge] ![ubuntu-badge] ![macos-badge] ![release-badge] ![download-badge] ![download-latest] --English | 简体中文 -
This is a beautiful FluentUI component library based on Qt QML. Currently the main branch supports Qt 6. If you want to use it in Qt 5, checkout the Qt 5 branch.
@@ -50,17 +47,17 @@ Use [Qt Online Installers](https://download.qt.io/archive/online_installers/) to + run `example` program. -or +or + Clone the repository. -```SHELL +```bash git clone --recursive https://github.com/zhuzichu520/FluentUI.git ``` + Build -``` +```bash git clone --recursive https://github.com/zhuzichu520/FluentUI.git cd FluentUI mkdir build @@ -79,38 +76,35 @@ cmake --build . --config Release --target all --parallel + Great! Now you are ready to write your first QML FluentUI program! Check the documentations for more details. - ## 📑 Documentations (Work in progress...🚀) ## Supported components -|Catalog|Detail|Notes / Demos| -|:----:|:----:|:----:| -|FluApp|The initial entry of the program|Router supported(SPA)| -|FluWindow|Frameless Window|*This only works on windows| -|FluAppBar|Title bar on top of the window|Drag, minimize, maximize and close are supported.| -|FluText|Common text|| -|FluButton|Common button| | -|FluFilledButton|Filled button|| -|FluTextButton|Text button|| -|FluToggleButton|Toggle buttons|| -|FluIcon|Common icon|| -|FluRadioButton|radio button|| -|FluTextBox|Single-line input box|| -|FluMultiLineTextBox|Multi-lines input area|| -|FluToggleSwitch|toggle switch|| - +| Catalog | Detail | Notes / Demos | +| :-----------------: | :------------------------------: | :-------------------------------------------------: | +| FluApp | The initial entry of the program | Router supported(SPA) | +| FluWindow | Frameless Window | *This only works on windows | +| FluAppBar | Title bar on top of the window | Drag, minimize, maximize and close are supported. | +| FluText | Common text | | +| FluButton | Common button |  | +| FluFilledButton | Filled button |  | +| FluTextButton | Text button |  | +| FluToggleButton | Toggle buttons |  | +| FluIcon | Common icon |  | +| FluRadioButton | radio button |  | +| FluTextBox | Single-line input box |  | +| FluMultiLineTextBox | Multi-lines input area |  | +| FluToggleSwitch | toggle switch |  | View more [`here`](doc/md/all_components.md)! - ## Reference + + [**Windows design**: Design guidelines and toolkits of Microsoft.](https://learn.microsoft.com/en-us/windows/apps/design/) + [**Microsoft/WinUI-Gallery**: Microsoft's demo](https://github.com/microsoft/WinUI-Gallery) - ## License This FluentUI library currently licensed under [MIT License](./License) @@ -120,4 +114,5 @@ This FluentUI library currently licensed under [MIT License](./License) [](https://star-history.com/#zhuzichu520/FluentUI&Date) ## ⚡ Visitor count - + + diff --git a/README_zh_CN.md b/README_zh_CN.md index b6a3276b..29ed145b 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -1,99 +1,118 @@ -# FluentUI ++这是一个基于 Qt QML 的漂亮 FluentUI 组件库。目前主分支支持 Qt 6。如果您想在 Qt 5 中使用它,请切换至 Qt 5 分支。 +
+ +## 必要条件 + ++ Qt Core、Qt Quick、Qt QML、Qt ShaderTool、Qt 5 Compatibility Module.(**重要**) ++ Qt LinguistTool(可选,用于翻译) ++ Qt Svg(可选,但对于 Qt 5 来说必不可少) + +在使用库之前使用 [Qt 在线安装程序](https://download.qt.io/archive/online_installers/) 获取模块(**推荐**),或先编译模块。 + +## ⚽ 快速开始 + ++ 下载 [预编译版本](https://github.com/zhuzichu520/FluentUI/releases)。(请注意您的平台和编译器)。 + ++ 运行 `example` 程序。 + +或者 + ++ 克隆此仓库 + +```bash +git clone --recursive https://github.com/zhuzichu520/FluentUI.git +``` + ++ 构建 + +```bash +git clone --recursive https://github.com/zhuzichu520/FluentUI.git +cd FluentUI +mkdir build +cd build +cmake -DCMAKE_PREFIX_PATH=