-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweasel.custom.yaml
117 lines (111 loc) · 7.74 KB
/
weasel.custom.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
customization:
distribution_code_name: Weasel
distribution_version: 0.16.3
generator: "Weasel::UIStyleSettings"
modified_time: "Mon Nov 4 17:21:17 2024"
rime_version: 1.11.2
patch:
style:
# !说为什么要用name而不是变量名而且改了也不生效,估计是不能用-而必须用_!
color_scheme: woisol_light # 默认配色方案
color_scheme_dark: woisol_light # 深色模式下,Weasel 的配色方案,Windows 10 1809+ 可用
# 全局字体
# 格式:字体1:起始码位:结束码位:字重:字形,字体2……,字体会依次 fallback
# 详细设定请参考 <https://github.com/rime/weasel/wiki/字體設定>
font_face: "鸿雷行书简体"
label_font_face: "鸿雷行书简体" # 标签字体
comment_font_face: "鸿雷行书简体" # 注释字体
font_point: 12 # 全局字体字号
label_font_point: 12 # 标签字体字号,不设定 fallback 到 font_point
comment_font_point: 10 # 注释字体字号,不设定 fallback 到 font_point
inline_preedit: true # 行内显示预编辑区:true;false
preedit_type: composition # 预编辑区内容:composition(编码); preview(选中的候选);preview_all(全部候选)
fullscreen: false # 候选窗口全屏显示:true;false
vertical_text: false # 竖排文本:true;false
# text_orientation: horizontal # 文本排列方向,效果和 `vertical_text` 相同:horizontal;vertical
candidate_list_layout: stacked # stacked | linear 候选项排列方向(小狼毫可能没有这个参数;如果需要修改为水平布局,可以在custom文件内修改horizontal为true)
horizontal: true # 候选项水平排列(在custom内和candidate_list_layout的linear效果一样)
vertical_text_left_to_right: false # 竖排方向是否从左到右:true;false
vertical_text_with_wrap: false # 文本竖排模式下,自动换行:true;false
vertical_auto_reverse: false # 文本竖排模式下,候选窗口位于光标上方时倒序排列:true;false
label_format: "%s" # 标签字符:例如 %s. 效果为 1. 2. 3. ....
mark_text: "|" # 标记字符,显示在选中的候选标签前,需要在配色方案中指定颜色;如该项为空字符串 "" 而配色方案中 hilited_mark_color 非透明色,则显示 Windows 11 输入法风格标记
ascii_tip_follow_cursor: false # 切换 ASCII 模式时,提示跟随鼠标,而非输入光标
enhanced_position: false # 无法定位候选框时,在窗口左上角显示候选框:true;false
display_tray_icon: false # 托盘显示独立于语言栏的额外图标:true;false
antialias_mode: default # 次像素反锯齿设定:default;force_dword;cleartype;grayscale;aliased
candidate_abbreviate_length: 0 # 候选项略写,超过此数字则用省略号代替。设置为 0 则不启用此功能
mouse_hover_ms: 0 # 已弃用。鼠标悬停选词响应时间(ms),设置为 0 时禁用该功能
hover_type: semi_hilite # 鼠标在候选窗口悬停时:none(无动作);hilite(选中鼠标下的候选);semi_hilite(高亮鼠标下的候选)
paging_on_scroll: true # 在候选窗口上滑动滚轮的行为:true(翻页);false (选中下一个候选)
click_to_capture: false # 鼠标点击候选项,创建截图:true;false
layout:
baseline: 0 # 字号百分比,与 linespacing 一同设置可解决字体跳动问题,设置为 0 为禁用
linespacing: 0 # 字号百分比,参考 <https://github.com/rime/weasel/pull/1177>
align_type: center # 标签、候选文字、注解文字之间的相对对齐方式:top ; center ; bottom
max_height: 100 # 候选框最大高度,horizontal 布局如宽超此尺寸则换行显示候选,设置为 0 不启用此功能
max_width: 0 # 候选框最大宽度,文本竖排模式下如高度超此尺寸则换列显示候选,设置为 0 不启用此功能
min_height: 0 # 候选框最小高度
min_width: 160 # 候选框最小宽度
border_width: 0 # 边框宽度;又名 border
margin_x: 8 # 主体元素和候选框的左右边距;为负值时,不显示候选框
margin_y: 8 # 主体元素的上下边距;为负值时,不显示候选框
spacing: 0 # inline_preedit 为否时,编码区域和候选区域的间距
candidate_spacing: 0 # 候选项之间的间距
hilite_spacing: 0 # 候选项和相应标签的间距
hilite_padding: 2 # 高亮区域和内部文字的间距,影响高亮区域大小s
hilite_padding_x: 6 # 高亮区域和内部文字的左右间距,如无特殊指定则依 hilite_padding 设置
hilite_padding_y: 2 # 高亮区域和内部文字的上下间距,如无特殊指定则依 hilite_padding 设置
shadow_radius: 6 # 阴影区域半径,为 0 不显示阴影;需要同时在配色方案中指定非透明的阴影颜色
shadow_offset_x: 4 # 阴影左右偏移距离
shadow_offset_y: 4 # 阴影上下偏移距离
corner_radius: 5 # 候选窗口圆角半径
round_corner: 5 # 候选背景色块圆角半径,又名 hilited_corner_radius
# !添加而非覆盖原有主题!
preset_color_schemes/+:
woisol_light:
name: "Woisol-Light"
author: Woisol
color_format: rgba # 颜色格式:argb(0xaarrggbb);rgba(0xrrggbbaa);abgr(0xaabbggrr 默认)
# !???rgba才能显示emoji???并不是单纯就是鸿雷缺了字体()
# from https://pdog18.github.io/rime-soak/#/theme
text_color: 0x000000
back_color: 0xffffff
border_color: 0xffffff
label_color: 0x444444
hilited_text_color: 0x000000
hilited_back_color: 0xD4D4D4
candidate_text_color: 0x000000
comment_text_color: 0x444444
hilited_candidate_text_color: 0xffffff
hilited_comment_text_color: 0xEEEEEE
hilited_candidate_back_color: 0xFFC800
hilited_label_color: 0xFFC866
# !死活不显示出来颜色……
# # 拼音串
# text_color: 0xfccb1b
# # 背景
# back_color: 0xaaa
# # 预选栏编号颜色
# label_color: 0xaaaaaa
# # 边框
# border_color: 0xaaaaaa
# shadow_color: 0xb4000000
# # 注解文字
# comment_text_color: 0xaaaaaa
# # 非第一候选项
# candidate_text_color: 0xcac9c8
# # 拼音串高亮
# hilited_text_color: 0xfccb1b
# # 拼音串高亮背景
# hilited_back_color: 0x222222
# # 第一候选项背景
# hilited_candidate_back_color: 0xed9564
# # 第一候选项
# hilited_candidate_text_color: 0xefefef
# # 第一候选项编号颜色
# hilited_candidate_label_color: 0xcac9c8
# # 第一候选项编号颜色
# hilited_label_color: 0xcac9c8
# # 注解文字高亮
# hilited_comment_text_color: 0xefefef