Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.

Commit 2ea2580

Browse files
committed
Ver 1.0.1
1 parent 3ca7904 commit 2ea2580

File tree

6 files changed

+1533
-830
lines changed

6 files changed

+1533
-830
lines changed

readme.md

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,46 @@
1-
# Method Draw
1+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="48" height="48">
2+
<path d="M-.1 16.1L16 .04V16.1H-.1z" fill="#ccc"/>
3+
<path d="M0 16.1V.1l16 16H0z" fill="#666"/>
4+
</svg>
5+
# 🖌️Method Draw
6+
7+
**ℹ️WIP:软件目前依旧在优化,欢迎大家提交 PR ,帮助我们完善项目。**
28

39
一款免费轻量的矢量图绘制软件!
410

11+
使用到了 [tauri](https://tauri.app/) + Vanilla。
12+
513
由 AuroraStudio 进行汉化,并且进行本地化开发~
614

7-
### TODO
15+
### 🗒️TODO
816

917
- [ ] 优化屎山代码
10-
- [ ] 完美汉化(汉化度:99%,可能存在翻译错误)
18+
- [ ] 完美汉化(当前汉化度:99%,可能存在翻译错误)
1119
- [ ] 窗口控制按钮优化
1220
- [ ] 优化整体风格
1321
- [ ] 完成对其他平台的适配(目前只有Windows下没有什么BUG)
1422
- [ ] Github Action 工作流
1523
- [ ] 毛玻璃
24+
- [ ] 多语言支持
25+
26+
### 💡注意
27+
28+
如果您希望编译该软件,需要安装 Git,Node.js,npm,Rust,tauri。
29+
30+
⚠️Windows下使用必须要安装[**Microsoft Edge Webview2 Runtime**](https://developer.microsoft.com/zh-cn/microsoft-edge/webview2/#download-section),一般情况下 Windows 11 附带!
31+
32+
### 💻编译
33+
34+
1. 安装 [Node.js](https://nodejs.org/zh-cn/download/)(一定要勾选 `npm`),[Git](https://gitforwindows.org/)[Rust](https://www.rust-lang.org/zh-CN/tools/install),推荐安装 [Visual Studio Code](https://code.visualstudio.com/) 作为代码编辑器
35+
36+
或者如果安装了 [**Chocolatey**](https://chocolatey.org) 可以直接在 cmd 中执行 `choco install nodejs-lts git rust`
37+
38+
2. 执行 `npm config set registry http://registry.npm.taobao.org` 换成国内源
39+
40+
3. 执行 `git clone https://github.com/AuroraStudio-aurorast/Method-Draw-Native-zhcn.git` 获取代码
1641

17-
### 注意
42+
4. 在源码目录执行 `npm install` 安装依赖
1843

19-
如果您希望编译该软件,需要安装 Node.js,npm,Rust,tauri
44+
5. 在源码目录执行 `npm run tauri dev` 调试
2045

21-
Windows下使用必须要有Microsoft Webview2!
46+
在源码目录执行 `npm run tauri build` 编译

src-tauri/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "method-draw"
33
version = "0.0.0"
4-
description = "A Tauri App"
5-
authors = ["you"]
4+
description = "SVGEdit"
5+
authors = ["method"]
66
license = ""
77
repository = ""
88
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "Method Draw",
11-
"version": "1.0.0"
11+
"version": "1.0.1"
1212
},
1313
"tauri": {
1414
"allowlist": { "all": true },

src/css/titlebar.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
left: 0;
1010
right: 0;
1111
}
12+
.titlebar-btnFix {
13+
display: flex;
14+
justify-content: flex-end;
15+
}
1216
.titlebar-button {
1317
display: inline-flex;
1418
justify-content: center;
@@ -18,4 +22,14 @@
1822
}
1923
.titlebar-button:hover {
2024
background: #00000025;
25+
}
26+
.titlebar-button-close {
27+
display: inline-flex;
28+
justify-content: center;
29+
align-items: center;
30+
width: 46px;
31+
height: 31px;
32+
}
33+
.titlebar-button-close:hover {
34+
background: #e81123;
2135
}

0 commit comments

Comments
 (0)