-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjoy.theme.yaml
190 lines (174 loc) · 8.78 KB
/
joy.theme.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# encoding: utf-8
#
# 说明:Rime 惊喜全拼输入法方案
# 备注:
# weasel.yaml 支持的所有选项及注释,用于配置参考
# 感谢 @[Mirtle](https://github.com/mirtlecn) 整理
# 定制化文档 https://github.com/rime/weasel/wiki/Weasel-定製化
# 在用户使用「输入法设定」调整设置时,小狼毫会格式化 weasel.custom.yaml,删除所有注释。
# 目前建议的自定义方法:复制此本文件并修改,之后在 weasel.custom.yaml 用 `__include` 引入。示例 weasel.custom.yaml 如下:
# patch:
# "preset_color_schemes/+": # 需要'+'号,表示在原有主题列表的基础上添加新的主题
# __include: joy.theme:/preset_color_schemes
# "style/+":
# __include: joy.theme:/style
# 全部 style 选项
# refer:<https://github.com/rime/weasel/blob/master/RimeWithWeasel/RimeWithWeasel.cpp>
# updated:2023/11/10
# Weasel 版本:15.0, CI #137 <https://github.com/rime/weasel/actions/runs/5912109600>
# Commit: db79168
#
# 网址:https://github.com/Lantaio/Rime-schema-JoySchema
# 作者:Lantaio Joy
# 版本:1.10.31
# 更新:2024/8/27
style: # 此处为完整列表及其缺省值,不要在此修改,看后面joy_style部分的说明。
# 字体设定
# 字体1[:起始码位:结束码位:字重:字形][,字体2 ...],详情请参考 <https://github.com/rime/weasel/wiki/字體設定>
# 字体会依次 fallback
font_face: "Microsoft YaHei" # 全局字体。为了让部分复合型 emoji 正常显示,可以将 emoji 字体放在首位,并指定起始码位防止影响其他字符。refer <https://github.com/rime/weasel/issues/932> 例如:
# "Segoe UI Emoji:20:39:bold:italic, Noto Color Emoji SVG:80, Arial:600:6ff, Segoe UI Emoji:80, LXGW Wenkai Narrow"
label_font_face: "Microsoft YaHei" # 标签字体
comment_font_face: "Microsoft YaHei" # 注释字体
font_point: 14 # 全局字体大小
label_font_point: 14 # 标签字体大小,不设定 fallback 到 font_point
comment_font_point: 14 # 注释字体大小,不设定 fallback 到 font_point
inline_preedit: false # 是否在行内显示预编辑区
preedit_type: composition # 预编辑区内容:composition(编码); preview(高亮候选);preview_all(全部候选)
# 布局设定,同样可以在 layout 的 type 下指定
fullscreen: false # 是否全屏排列
horizontal: false # 是否横向排列
vertical_text: false # 是否竖排文字
vertical_text_left_to_right: false # 竖排下从左到右
vertical_text_with_wrap: false # 竖排下,自动换行
vertical_auto_reverse: false # 竖排下,输入窗口在上方时倒序排列
label_format: "%s." # 标签字符:"%s."效果为 1. 2. 3. ....
mark_text: "" # 高亮字符,显示在选中的候选标签前
ascii_tip_follow_cursor: true # 切换 ASCII 模式时,提示图标是否跟随鼠标(而非输入光标)
enhanced_position: false # 无法定位候选框时,在窗口左上角显示候选框
display_tray_icon: false # 托盘显示独立于语言栏的额外图标
antialias_mode: default # 次像素反锯齿设定:default;force_dword;cleartype;grayscale;aliased
mouse_hover_ms: 0 # 鼠标悬停响应间隔,设置为 0 时禁用该功能。默认禁用
paging_on_scroll: false # 在候选窗口上滚轮操作时,对应的响应动作。如设定为 true,则进行翻页操作;如设定为 false(默认),则进行候选 index 切换(类似上下方向键)
layout:
align_type: center # 对齐:top ; center ; bottom
max_height: 0 # 候选框最大高度
max_width: 0 # 候选框最大宽度,超过会折叠
min_height: 0 # 最小高度
min_width: 160
type: horizontal # horizontal(横向);vertical(竖向) ; vertical_text(竖排文本) ; vertical+fullscreen(全屏) ; horizontal+fullscreen(横向全屏)
border_width: 3 # 边框宽度,又名 border
margin_x: 12 # 元素偏离候选边框 X 轴距离;为负值时,不显示候选框
margin_y: 12 # 元素偏离候选边框 Y 轴距离;为负值时,不显示候选框
spacing: 10 # 默认间隙
candidate_spacing: 5 # 候选项之间的间隔
hilite_spacing: 4 # 候选和标签的间隔
hilite_padding: 2 # 高亮区域和边框的间隔。当值 ≥ margin 的值时,高亮颜色会覆盖整个选中的候选区域,实现「天圆地方」的效果。参考文件末的配置
hilite_padding_x: 2 # 高亮区域和边框的 X 轴间隔
hilite_padding_y: 2 # 高亮区域和边框的 y 轴间隔
shadow_offset_x: 5 # 阴影偏离和圆角大小
shadow_offset_y: 5
shadow_radius: 0
corner_radius: 4 # 候选框圆角
round_corner: 4 # 高亮区域圆角;又名 hilited_corner_radius
# 以下是一个具体方案,被weasel.custom.yaml引用。
# 使用方法:在 weasel.custom.yaml 中添加如下两行:
# "style/+":
# __include: "joy.theme:/joy_style"
joy_style:
font_face: "Segoe UI Emoji:1f600, Microsoft YaHei UI"
font_point: 12
label_font_point: 11
label_format: "%s"
comment_font_point: 11
paging_on_scroll: true
layout:
max_width: 250
max_height: 200
type: horizontal # 候选项横向排列,注释此行则为竖向排列
border_width: 2
margin_x: 10
margin_y: 10
spacing: 5
candidate_spacing: 8
# hilite_spacing: 3
corner_radius: 10
round_corner: 8
# 全部 color_schemes 选项,点击小狼毫「输入法设定」可以预览皮肤效果
# 在小狼毫用户目录新建 preview 文件夹,将自定义皮肤的截图重命名为 color_scheme_<name>.png 放入此文件夹,可以在「输入法设定」中看到自定义皮肤效果
# 小狼毫配色在线设计:
# [RIME 西米](https://fxliang.github.io/RimeSeeMe/)
preset_color_schemes:
scheme_name: # 需要在 `style/color_schema` 指定的值。这是一个样例列表,具体方案参考joy_light部分
name: # 方案设置中显示的配色名称
author: # 配色作者名称
color_format: # 颜色格式:argb;rgba;abgr
# 默认
back_color: # 背景
border_color: # 边框
comment_text_color: # 注释
label_color: # 标签
shadow_color: # 阴影
text_color: # 文字
# 候选区域
candidate_back_color:
candidate_border_color:
candidate_shadow_color:
candidate_text_color:
# 高亮区域
hilited_back_color:
hilited_comment_text_color:
hilited_label_color:
hilited_mark_color:
hilited_shadow_color:
hilited_text_color:
# 高亮的候选区域
hilited_candidate_back_color:
hilited_candidate_border_color:
hilited_candidate_shadow_color:
hilited_candidate_text_color:
# 翻页
nextpage_color:
prevpage_color:
# 以下是一个具体方案,被weasel.custom.yaml引用。
# 使用方法:在 weasel.custom.yaml 中添加如下两行:
# "preset_color_schemes/+": # 需要'+'号,表示在原有主题列表的基础上添加新的主题
# __include: joy.theme:/preset_color_schemes
joy_light:
name: 春光乍喜/Joy Light
author: Lantaio Joy
color_format: rgba
# 默认
back_color: 0xF9F6F1 # 背景(浅黄色0xF8F5F0)
border_color: 0xDCCCBC # 边框(棕黄色)
comment_text_color: 0xA0A0A0 # 注释(灰色)
label_color: 0x30C330 # 标签(青绿色)
# shadow_color: 0x00000000 # 阴影
text_color: 0x808080 # 已经确定的文本和非高亮输入字符串(灰色)
# 候选区域
# candidate_back_color:
# candidate_border_color:
# candidate_shadow_color:
candidate_text_color: 0x0572E2 # 候选项(蓝色)
# 高亮区域
# hilited_back_color:
hilited_comment_text_color: 0xA0A0A0 # 高亮候选注释(灰色)
hilited_label_color: 0x30C330 # 高亮标签(青绿色)
# hilited_mark_color: 0xF6B240 # 高亮记号(橙色)
# hilited_shadow_color:
hilited_text_color: 0x067EF9 # 高亮待翻译字符串(蓝色)
# 高亮的候选区域
# hilited_candidate_back_color:
# hilited_candidate_border_color:
# hilited_candidate_shadow_color:
hilited_candidate_text_color: 0xC60666 # 高亮候选(玫瑰红)
# 翻页
nextpage_color: 0xF6B240 # 向后翻页(橙色)
prevpage_color: 0xF6B240 # 向前翻页(橙色)
# 为特定的应用单独设定选项
app_options:
appname.exe: # 带 .exe 的进程名,全小写
ascii_mode: true # 是否为英文模式
inline_preedit: true # 行内显示预编辑区。当前版本小狼毫将 inline_preedit 设定为 false 时,会在输入时预插入一个空格,这在 Firefox 等应用中会引发问题,需要在此处为这些应用单独指定 inline_preedit。refer <https://github.com/rime/weasel/issues/946>
win32calc.exe: # 计算器
ascii_mode: true # 是否为英文模式