Skip to content

Commit 923db26

Browse files
authored
doc: 同步新版鼠须管前端,更新部分说明 (#1471)
1 parent 3bfac2c commit 923db26

File tree

1 file changed

+64
-43
lines changed

1 file changed

+64
-43
lines changed

squirrel.yaml

Lines changed: 64 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010

1111

1212
# 要比共享目录的同名文件的 config_version 大才可以生效
13-
config_version: '2025-10-23' # config_version: '1.0.3'
13+
config_version: '2026-01-31' # config_version: '1.0.3'
1414

1515

16-
# options: last | default | _custom_
17-
# last: the last used latin keyboard layout
18-
# default: US (ABC) keyboard layout
19-
# _custom_: keyboard layout of your choice, e.g. 'com.apple.keylayout.USExtended' or simply 'USExtended'
16+
# 键盘布局 last | default | _custom_
17+
# last: 上次使用的英文键盘布局
18+
# default: US (ABC)
19+
# _custom_: 自定义,例如 'com.apple.keylayout.USExtended' 或者 'USExtended'
2020
keyboard_layout: last
21-
# for veteran chord-typist
22-
chord_duration: 0.1 # seconds
23-
# options: always | never | appropriate
21+
# 并击输入 秒
22+
chord_duration: 0.1
23+
# 何时显示通知 always | never | appropriate
2424
show_notifications_when: appropriate
2525

2626

@@ -44,39 +44,27 @@ style:
4444
candidate_list_layout: stacked # stacked | linear 皮肤横竖排显示是调整这个
4545
text_orientation: horizontal # horizontal | vertical 文字方向
4646
# 拼音或词句是否显示在键入位置
47-
inline_preedit: true # true | false 键入码显示位置
48-
inline_candidate: false # true | false 选中词显示位置
49-
50-
# Whether candidate panel stick to screen edge to reduce jumping
51-
memorize_size: true
52-
# Whether transparent colors stack on each other
53-
mutual_exclusive: false
54-
# Whether to use a translucent background. Only visible when background color is transparent
55-
translucency: false
56-
# Enable to show small arrows that indicates if paging up/down is possible
57-
show_paging: false
58-
59-
corner_radius: 7
60-
hilited_corner_radius: 0
61-
border_height: -2
62-
border_width: -2
63-
# Space between candidates in stacked layout
64-
line_spacing: 5
65-
# Space between preedit and candidates in non-inline mode
66-
spacing: 8
67-
# A number greater than 0 renders shadow around high-lighted candidate
68-
shadow_size: 0
69-
# Controls non-hililighted candidate background size, relative to highlighted
70-
# Nagetive means shrink, positive meas expand
71-
#surrounding_extra_expansion: 0
72-
73-
# format using %@ and %c is deprecated since 1.0, Squirrel 1.0
74-
# %@ is automatically expanded to "[candidate] [comment]"
75-
# and %c is replaced by "[label]"
76-
candidate_format: '[label]. [candidate] [comment]' # 候选项格式化
77-
78-
# adjust the base line of text
79-
#base_offset: 0
47+
inline_preedit: true # true | false 键入码显示位置
48+
inline_candidate: false # true | false 选中词显示位置
49+
50+
memorize_size: true # true | false 候选窗口吸附到屏幕边缘,以减少位置跳动
51+
mutual_exclusive: false # true | false 半透明颜色进行叠加计算
52+
translucency: false # true | false 磨砂背景,仅在背景颜色为透明时可见
53+
show_paging: false # true | false 上下翻页可用的小箭头提示
54+
corner_radius: 7 # 外边框 圆角半径
55+
hilited_corner_radius: 0 # 选中框 圆角半径
56+
border_height: -2 # 外边框 高
57+
border_width: -2 # 外边框 宽
58+
line_spacing: 5 # stacked竖向布局的行间距间距
59+
spacing: 8 # 非linear行内模式下,预编辑文本与候选框之间的间距
60+
shadow_size: 0 # 阴影大小
61+
#surrounding_extra_expansion: 0 # 控制未高亮候选项背景相对于高亮项的大小,负值缩小,正值放大
62+
63+
# 候选项格式化
64+
# %@ 和 %c 在鼠须管 1.0 弃用,%@ 等同于 "[candidate] [comment]",%c 于等同 "[label]"
65+
candidate_format: '[label]. [candidate] [comment]'
66+
67+
#base_offset: 0 # 字基高
8068
font_face: 'Avenir'
8169
font_point: 16
8270
#label_font_face: 'Avenir'
@@ -225,7 +213,7 @@ preset_color_schemes:
225213
purity_of_form:
226214
name: 純粹的形式/Purity of Form
227215
author: 雨過之後、佛振
228-
text_color: 0xc2c2c2
216+
text_color: 0xc2c222
229217
back_color: 0x444444
230218
candidate_text_color: 0xeeeeee
231219
hilited_text_color: 0xeeeeee
@@ -253,9 +241,14 @@ preset_color_schemes:
253241
candidate_text_color: 0x30bb55
254242
back_color: 0xee000000
255243
border_color: 0x1010a0
244+
border_width: 2
245+
border_height: 2
246+
corner_radius: 8
247+
hilited_corner_radius: 8
256248
hilited_text_color: 0xfecb96
257249
hilited_back_color: 0x000000
258250
hilited_candidate_text_color: 0x70ffaf
251+
hilited_candidate_label_color: 0x40cf7f
259252
hilited_candidate_back_color: 0x00000000
260253
comment_text_color: 0x1010d0
261254
hilited_comment_text_color: 0x1010f0
@@ -413,4 +406,32 @@ preset_color_schemes:
413406
hilited_candidate_text_color: 0x989F52 #Lab 60 ,-35,-5
414407
hilited_candidate_label_color: 0xCC8947 #Lab 55 ,-10,-45
415408
hilited_comment_text_color: 0x289989 #Lab 60 ,-20, 65
416-
hilited_text_color: 0xBE706D #Lab 50 , 15,-45
409+
hilited_text_color: 0xBE706D #Lab 50 , 15,-45
410+
411+
retro_green:
412+
name: 綠色熒光屏
413+
author: 佛振 <chen.sst@gmail.com>
414+
text_color: 0x00FF00
415+
back_color: 0x000000
416+
label_color: 0x00FF00
417+
hilited_candidate_text_color: 0x000000
418+
hilited_candidate_back_color: 0x00FF00
419+
hilited_candidate_label_color: 0x000000
420+
corner_radius: 16
421+
border_width: 2
422+
border_height: 2
423+
border_color: 0x00FF00
424+
425+
retro_orange:
426+
name: 琥珀色熒光屏
427+
author: 佛振 <chen.sst@gmail.com>
428+
text_color: 0x0093FF
429+
back_color: 0x000000
430+
label_color: 0x0093FF
431+
hilited_candidate_text_color: 0x000000
432+
hilited_candidate_back_color: 0x0093FF
433+
hilited_candidate_label_color: 0x000000
434+
corner_radius: 16
435+
border_width: 2
436+
border_height: 2
437+
border_color: 0x0093FF

0 commit comments

Comments
 (0)