Skip to content

Commit b5ae79e

Browse files
authored
Merge pull request #25 from maix2012/main
docs : [Themes] 添加了主题所有元素的说明
2 parents 6ddffd0 + ccd85eb commit b5ae79e

3 files changed

Lines changed: 201 additions & 0 deletions

File tree

534 KB
Loading

Assets/Themes/Chronomia.xml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CustomTheme>
3+
<!-- 窗口样式 -->
4+
<themeLayoutName>blue</themeLayoutName>
5+
6+
<!-- This is a path to the background image file. It should be 1920x1080, and a .jpg or .png file.
7+
If this is left out, the theme will automatically generate a dynamic background for the theme-->
8+
<backgroundImagePath>Themes/Backgrounds/RiptideGreen.png</backgroundImagePath>
9+
10+
<!-- Main Colors - these will define the main feel of the theme -->
11+
<!-- Color of nodes on the netmap, and many other derived colors. -->
12+
<!-- 管理员身份提示色 -->
13+
<defaultHighlightColor>4,0,255</defaultHighlightColor>
14+
<!-- 顶部系统栏 -->
15+
<defaultTopBarColor>30,111,233</defaultTopBarColor>
16+
<!-- This is used for the outlines of the module windows -->
17+
<!-- 模块描边 -->
18+
<moduleColorSolidDefault>53,59,238</moduleColorSolidDefault>
19+
<!-- 模块填充 -->
20+
<moduleColorStrong>0,0,0,120</moduleColorStrong>
21+
<!-- 全屏背景色 -->
22+
<moduleColorBacking>0,0,0,120</moduleColorBacking>
23+
24+
<!-- EXE顶部栏 -->
25+
<exeModuleTopBar>0,128,255,150</exeModuleTopBar>
26+
<!-- EXE标题文本 -->
27+
<exeModuleTitleText>200,200,200,255</exeModuleTitleText>
28+
29+
<!-- Extra Options -->
30+
<!-- 可视化界面按钮颜色 -->
31+
<warningColor>99,95,100</warningColor>
32+
<!-- 可视化界面登录按钮颜色 -->
33+
<subtleTextColor>120,120,120</subtleTextColor>
34+
<!-- 搜索框背景/邮件按钮等颜色 -->
35+
<darkBackgroundColor>8,8,8</darkBackgroundColor>
36+
<!-- use ram / 登录 模块背景色 -->
37+
<indentBackgroundColor>12,12,12</indentBackgroundColor>
38+
<!-- 节点之间连接线的颜色 -->
39+
<outlineColor>68,68,68</outlineColor>
40+
<!-- 断开/取消 按钮颜色、端口被锁住的颜色 -->
41+
<lockedColor>255,0,0,199</lockedColor>
42+
<!-- 显示端口不可破解的背景色 -->
43+
<brightLockedColor>160,0,0</brightLockedColor>
44+
<!-- sshcrack.exe小方格过度颜色、成功登录后成功两个字颜色等 -->
45+
<brightUnlockedColor>0,160,0</brightUnlockedColor>
46+
<!-- 端口解锁后的颜色 -->
47+
<unlockedColor>39,65,36</unlockedColor>
48+
<!-- MessageBoard使用 -->
49+
<lightGray>180,180,180</lightGray>
50+
<!-- 过载节点颜色[指RAM上的] 运行Shell时节点的颜色,以及您在[probe或nmap]看到的[检测到代理]和[检测到防火墙]的颜色 -->
51+
<shellColor>222,201,24</shellColor>
52+
<!-- shell过载按钮侧边颜色(经测试,按钮不够宽显示不出来侧边) -->
53+
<shellButtonColor>105,167,188</shellButtonColor>
54+
<!-- 模块bar文字色 -->
55+
<semiTransText>120,120,120,0</semiTransText>
56+
<!-- 终端文本颜色 -->
57+
<terminalTextColor>213,245,255</terminalTextColor>
58+
<!-- 顶部系统栏文本颜色 -->
59+
<topBarTextColor>255,255,255,150</topBarTextColor>
60+
<!-- 破解端口界面斜条纹颜色 -->
61+
<superLightWhite>2,2,2,30</superLightWhite>
62+
<!-- 当前连接的节点颜色 -->
63+
<connectedNodeHighlight>222,0,0,195</connectedNodeHighlight>
64+
<!-- 鼠标放到netmap节点上后显示右侧文字的颜色 -->
65+
<netmapToolTipColor>213,245,255,0</netmapToolTipColor>
66+
<!-- 鼠标放到netmap节点上后显示右侧文字的背景 -->
67+
<netmapToolTipBackground>0,0,0,70</netmapToolTipBackground>
68+
<!-- 顶部栏icon颜色 -->
69+
<topBarIconsColor>255,255,255</topBarIconsColor>
70+
<!-- 控制玩家计算机节点的颜色 -->
71+
<thisComputerNode>95,220,83</thisComputerNode>
72+
<!-- 搜索线的颜色 -->
73+
<scanlinesColor>255,255,255,15</scanlinesColor>
74+
75+
<!-- AlienFX Colors used for Alienware (and other) hardware with variable LED lights that Hacknet can set dynamically -->
76+
<AFX_KeyboardMiddle>0,120,255</AFX_KeyboardMiddle>
77+
<AFX_KeyboardOuter>255,150,0</AFX_KeyboardOuter>
78+
<AFX_WordLogo>0,120,255</AFX_WordLogo>
79+
<AFX_Other>0,100,255</AFX_Other>
80+
</CustomTheme>

Content/Themes.md

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# Themes(主题)
2+
3+
在Hacknet中,Themes用于给玩家使用的主题
4+
5+
一个Themes文件的结构如下:
6+
```xml
7+
<?xml version="1.0" encoding="UTF-8"?>
8+
<CustomTheme>
9+
<!-- 窗口样式 -->
10+
<themeLayoutName>blue</themeLayoutName>
11+
12+
<!-- This is a path to the background image file. It should be 1920x1080, and a .jpg or .png file.
13+
If this is left out, the theme will automatically generate a dynamic background for the theme-->
14+
<backgroundImagePath>Themes/Backgrounds/XXX.png</backgroundImagePath>
15+
16+
<!-- Main Colors - these will define the main feel of the theme -->
17+
<!-- Color of nodes on the netmap, and many other derived colors. -->
18+
<!-- 管理员身份提示色 -->
19+
<defaultHighlightColor>230,235,50</defaultHighlightColor>
20+
<!-- 顶部系统栏 -->
21+
<defaultTopBarColor>40,88,160,125</defaultTopBarColor>
22+
<!-- This is used for the outlines of the module windows -->
23+
<!-- 模块描边 -->
24+
<moduleColorSolidDefault>110,240,230</moduleColorSolidDefault>
25+
<!-- 模块填充 -->
26+
<moduleColorStrong>0,0,0,120</moduleColorStrong>
27+
<!-- 全屏背景色 -->
28+
<moduleColorBacking>0,0,0,120</moduleColorBacking>
29+
30+
<!-- EXE顶部栏 -->
31+
<exeModuleTopBar>0,128,255,150</exeModuleTopBar>
32+
<!-- EXE标题文本 -->
33+
<exeModuleTitleText>200,200,200,255</exeModuleTitleText>
34+
35+
<!-- Extra Options -->
36+
<!-- 可视化界面按钮颜色 -->
37+
<warningColor>165,50,205</warningColor>
38+
<!-- 可视化界面登录按钮颜色 -->
39+
<subtleTextColor>150,30,180</subtleTextColor>
40+
<!-- 搜索框背景/邮件按钮等颜色 -->
41+
<darkBackgroundColor>8,8,8</darkBackgroundColor>
42+
<!-- use ram / 登录 模块背景色 -->
43+
<indentBackgroundColor>12,12,12</indentBackgroundColor>
44+
<!-- 节点之间连接线的颜色 -->
45+
<outlineColor>68,68,68</outlineColor>
46+
<!-- 断开/取消 按钮颜色、端口被锁住的颜色 -->
47+
<lockedColor>65,16,16,200</lockedColor>
48+
<!-- 显示端口不可破解的背景色 -->
49+
<brightLockedColor>160,0,0</brightLockedColor>
50+
<!-- sshcrack.exe小方格过度颜色、成功登录后成功两个字颜色等 -->
51+
<brightUnlockedColor>0,160,0</brightUnlockedColor>
52+
<!-- 端口解锁后的颜色 -->
53+
<unlockedColor>39,65,36</unlockedColor>
54+
<!-- MessageBoard使用 -->
55+
<lightGray>180,180,180</lightGray>
56+
<!-- 过载节点颜色[指RAM上的] 运行Shell时节点的颜色,以及您在[probe或nmap]看到的[检测到代理]和[检测到防火墙]的颜色 -->
57+
<shellColor>222,201,24</shellColor>
58+
<!-- shell过载按钮侧边颜色(经测试,按钮不够宽显示不出来侧边) -->
59+
<shellButtonColor>105,167,188</shellButtonColor>
60+
<!-- 模块bar文字色 -->
61+
<semiTransText>120,120,120,0</semiTransText>
62+
<!-- 终端文本颜色 -->
63+
<terminalTextColor>213,245,255</terminalTextColor>
64+
<!-- 顶部系统栏文本颜色 -->
65+
<topBarTextColor>255,255,255,150</topBarTextColor>
66+
<!-- 破解端口界面斜条纹颜色 -->
67+
<superLightWhite>2,2,2,30</superLightWhite>
68+
<!-- 当前连接的节点颜色 -->
69+
<connectedNodeHighlight>222,0,0,195</connectedNodeHighlight>
70+
<!-- 鼠标放到netmap节点上后显示右侧文字的颜色 -->
71+
<netmapToolTipColor>213,245,255,0</netmapToolTipColor>
72+
<!-- 鼠标放到netmap节点上后显示右侧文字的背景 -->
73+
<netmapToolTipBackground>0,0,0,70</netmapToolTipBackground>
74+
<!-- 顶部栏icon颜色 -->
75+
<topBarIconsColor>255,255,255</topBarIconsColor>
76+
<!-- 控制玩家计算机节点的颜色 -->
77+
<thisComputerNode>95,220,83</thisComputerNode>
78+
<!-- 搜索线的颜色 -->
79+
<scanlinesColor>255,255,255,15</scanlinesColor>
80+
81+
<!-- AlienFX Colors used for Alienware (and other) hardware with variable LED lights that Hacknet can set dynamically -->
82+
<AFX_KeyboardMiddle>0,120,255</AFX_KeyboardMiddle>
83+
<AFX_KeyboardOuter>255,150,0</AFX_KeyboardOuter>
84+
<AFX_WordLogo>0,120,255</AFX_WordLogo>
85+
<AFX_Other>0,100,255</AFX_Other>
86+
</CustomTheme>
87+
```
88+
一个Theme有以下几个部分:
89+
- themeLayoutName 窗口样式(布局)
90+
- backgroundImagePath 主题背景路径
91+
- defaultHighlightColor 连接节点时Display窗口顶部显示的"您是本系统的管理员"
92+
- defaultTopBarColor 顶部的系统栏显示的颜色
93+
- moduleColorSolidDefault 每个模块的描边颜色
94+
- moduleColorStrong 每个模块填充的颜色
95+
- moduleColorBacking 全屏背景色
96+
- exeModuleTopBar exe程序顶部栏的颜色
97+
- exeModuleTitleText exe标题文本颜色
98+
- warningColor 可视化界面颜色(Trace时闪的颜色)
99+
- subtleTextColor 登录按钮的颜色
100+
- darkBackgroundColor 搜索框背景/邮件按钮等颜色
101+
- indentBackgroundColor 顶部内存条显示占用(USED :RAM ??/??)的背景颜色
102+
- outlineColor 节点之间的连接线颜色
103+
- lockedColor 端口锁定状态的背景颜色(也是断开/取消的背景色)
104+
- brightLockedColor 显示端口不可破解的背景色
105+
- brightUnlockedColor ssh的小方格过渡颜色
106+
- unlockedColor 端口开放背景色
107+
- lightGray MessageBoard主题颜色
108+
- shellColor 允许shell时节点的颜色
109+
- shellButtonColor shell过载按钮左边框颜色
110+
- semiTransText 模块bar文字色
111+
- terminalTextColor 终端文本颜色
112+
- topBarTextColor 顶部系统栏颜色
113+
- superLightWhite 斜条纹颜色
114+
- connectedNodeHighlight 当前连接的节点颜色
115+
- netmapToolTipColor 把鼠标放在节点上显示的节点名颜色
116+
- topBarIconsColor 顶部栏icon颜色
117+
- thisComputerNode 本地计算机节点颜色
118+
- scanlinesColor 搜索线的颜色
119+
## 示例文件
120+
可参考[Chronomia.xml](./../Assets/Themes/Chronomia.xml)
121+

0 commit comments

Comments
 (0)