Browse Source

feat: 默认的简易提示栏

dzp 3 years ago
parent
commit
213ef77e07
1 changed files with 35 additions and 0 deletions
  1. 35 0
      etc/ui-settings.tin

+ 35 - 0
etc/ui-settings.tin

@@ -0,0 +1,35 @@
+#nop {Top} {TopSepBar} {MidSepBar} {Bot} {BotSepBar};
+#list prompt-fields create {
+    { {place}{BotSepBar}        {label}{美化 / Ctrl+B 切换}  {name}{beautify} {cooldown}{600} {visibility}{HideCool} }
+    { {place}{BotSepBar}        {label}{状态栏更新} {name}{disable}  {visibility}{HideLabel} }
+};
+
+#nop 配色主题,注意这里不要直接嵌入 SGR(ansi codes),否则计算宽度时会有问题。;
+#var prompt-theme {
+    {Disable}{<bbc>}
+    {BusyColor}{<030>}
+    {BattleColor}{<110>}
+    {BattleBusyColor}{<500><110>}
+    {TopSepBar}{<020>}
+    {MidSepBar}{<020>}
+    {BotSepBar}{<020>}
+    {HotLabel}{<100><F399>}
+    {CoolLabel}{<100>}
+    {Value}{<070>}
+};
+
+#nop 自定义图标;
+#var prompt-icon {
+    {DisableRefresh}{🚫}
+};
+
+#var prompt-prompt {};
+
+#nop 热键绑定;
+#list global-key-bindings create {
+    {{key}{\cs}     {action}{prompt.ToggleSwitch}}
+    {{key}{\cb}     {action}{beautify.ToggleSwitch}}
+    {{key}{\cd}     {action}{xtt.ToggleDebug}}
+    {{key}{\ce}     {action}{option.Toggle EchoCommand}}
+    {{key}{\col}    {action}{option.List}}
+};