鼠须管输入法的新配色
00 分钟
2022-3-23

鼠须管输入法的新配色

2018.12.04
鼠须管作者佛振 @lotem 近期更新了 squirrel.yaml 文件,新增了几个配色。
预置的配色主题调用的时候比较简单,创建一个 squirrel.custom.yaml 的文件,将下面的代码复制到其中保存并重新部署即可。不同的预置主题可以通过查看 squirrel.yaml 文件知道,squirrel.custom.yaml 中只需要修改 color_scheme: 后面的主题名称。

沙漠夜/mojave_dark

新的默认配置中新增了一个适配 Mojave Dark 主题的配色,同时增加了高亮圆角设置。
notion image
patch:
style:
color_scheme: mojave_dark

純粹的本質/Purity of Essence

notion image
patch:
style:
color_scheme: purity_of_essence
horizontal: true
inline_preedit: true
candidate_format: "%c\u2005%@ \u2005" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。
font_point: 16 # 候选文字大小
label_font_point: 14 # 候选编号大小
corner_radius: 5 # 候选条圆角
border_height: 0 # 窗口边界高度,大于圆角半径才生效
border_width: 0 # 窗口边界宽度,大于圆角半径才生效

純粹的形式/Purity of Form

notion image
patch:
style:
color_scheme: purity_of_form
horizontal: true
inline_preedit: true
candidate_format: "%c\u2005%@ \u2005" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。
font_point: 16 # 候选文字大小
label_font_point: 14 # 候选编号大小
corner_radius: 5 # 候选条圆角
border_height: 0 # 窗口边界高度,大于圆角半径才生效
border_width: 0 # 窗口边界宽度,大于圆角半径才生效

幽能/Psionics

notion image
patch:
style:
color_scheme: psionics
horizontal: true
inline_preedit: true
candidate_format: "%c\u2005%@ \u2005" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。
font_point: 16 # 候选文字大小
label_font_point: 14 # 候选编号大小
corner_radius: 5 # 候选条圆角
border_height: 0 # 窗口边界高度,大于圆角半径才生效
border_width: 0 # 窗口边界宽度,大于圆角半径才生效

简约白/Clean White

notion image
patch:
style:
color_scheme: clean_white
horizontal: true
inline_preedit: true
candidate_format: "%c\u2005%@ \u2005" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。
font_point: 16 # 候选文字大小
label_font_point: 14 # 候选编号大小
corner_radius: 5 # 候选条圆角
border_height: 0 # 窗口边界高度,大于圆角半径才生效
border_width: 0 # 窗口边界宽度,大于圆角半径才生效

冷漠/Apathy

notion image
patch:
style:
color_scheme: apathy
horizontal: true
inline_preedit: true
candidate_format: "%c\u2005%@ \u2005" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。
font_point: 16 # 候选文字大小
label_font_point: 14 # 候选编号大小
corner_radius: 5 # 候选条圆角
border_height: 0 # 窗口边界高度,大于圆角半径才生效
border_width: 0 # 窗口边界宽度,大于圆角半径才生效

浮尘/Dust

notion image
patch:
style:
color_scheme: dust
horizontal: true
inline_preedit: true

自定义配色(系统蓝)

如果想修改成自己的配色方案,代码的部分就多一些。对于已有的主题方案修改,也可以采用下面的方式。另外,系统拼音候选编号的字体是 SFCompactText-Regular,默认系统里没有这个字体,Apple 开发者网站可以下载到,追求细节的可以指定这个字体。
notion image
patch:
style/color_scheme: system_blue # 方案命名,不能有空格
preset_color_schemes:
system_blue:
author: "scomper <scomper@gmail.com>" # 作者信息
back_color: 0xFFFFFF # 候选条背景色,24位色值,16进制,BGR顺序
border_color: 0xE0B693 # 边框色
candidate_text_color: 0x000000 # 预选项文字颜色
comment_text_color: 0x999999 # 拼音等提示文字颜色
hilited_back_color: 0xfff0e3 # 第一候选项背景背景色
hilited_candidate_text_color: 0x000000 # 第一候选项文字颜色
hilited_candidate_label_color: 0x999999 # 第一候选项编号颜色
hilited_comment_text_color: 0x999999 # 注解文字高亮
hilited_text_color: 0x999999 # 高亮拼音 (需要开启内嵌编码)
name: "系统蓝/System Blue"
text_color: 0x424242 # 拼音行文字颜色
label_color: 0x999999 # 预选栏编号颜色
horizontal: true # 水平排列
inline_preedit: true # 单行显示,false双行显示
candidate_format: "%c\u2005%@ \u2005" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。
font_point: 16 # 候选文字大小
label_font_point: 14 # 候选编号大小
label_font_face: "SFCompactText-Regular"# 候选词编号字体
corner_radius: 5 # 候选条圆角
border_height: 0 # 窗口边界高度,大于圆角半径才生效
border_width: 0 # 窗口边界宽度,大于圆角半径才生效

鼠须管配置下载: RIME

评论