File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ date : 2022-03-28 22:19:35
3+ ---
4+
5+ # 自定义主题
6+
7+ EasyGit, 已经适配HBuilderX 绿柔、酷黑、雅蓝主题。
8+
9+ 同时,支持[ HBuilderX 自定义主题] ( https://hx.dcloud.net.cn/Tutorial/themes?id=custom-window ) ,详细请参考HBuilderX自定义主题文档。
10+
11+ 除此之外,EasyGit 1.7.4版本,设置项 ` EasyGit.theme.siderBar ` 和` EasyGit.theme.editor ` 用于自定义EasyGit源代码管理器视图和日志视图主题。
12+
13+ - 将以下json内容,拷贝到HBuilderX 【设置 - 源码视图】,注意内容格式。
14+ - HBuilderX【设置 - 源码视图】,修改` EasyGit.theme.siderBar ` 和` EasyGit.theme.editor ` 值后,需要重启HBuilderX才能生效
15+ - 自定义颜色,必须为十六进制颜色,比如` #FFFFFF ` 或` #FFF `
16+
17+
18+ ``` json
19+ // EasyGit 源代码管理器视图可自定义的颜色
20+ "EasyGit.theme.siderBar" : {
21+ "background" : " " ,
22+ "fontColor" : " " ,
23+ "lineColor" : " " ,
24+ "inputColor" : " " ,
25+ "inputBgColor" : " " ,
26+ "inputLineColor" : " " ,
27+ "scrollbarColor" : " " ,
28+ "remarkTextColor" : " " ,
29+ "menuBackground" : " " ,
30+ "liHoverBackground" : " " ,
31+ "cursorColor" : " "
32+ }
33+ ```
34+
35+
36+ ``` json
37+ // EasyGit 日志视图可自定义的颜色
38+ "EasyGit.theme.editor" : {
39+ "background" : " " ,
40+ "fontColor" : " " ,
41+ "lineColor" : " " ,
42+ "inputColor" : " " ,
43+ "inputBgColor" : " " ,
44+ "inputLineColor" : " " ,
45+ "scrollbarColor" : " " ,
46+ "remarkTextColor" : " " ,
47+ "menuBackground" : " " ,
48+ "liHoverBackground" : " " ,
49+ "cursorColor" : " "
50+ }
51+ ```
52+
You can’t perform that action at this time.
0 commit comments