Closed momotu closed 5 months ago
直接复制了wiki的代码放weasel.custom.yaml
,效果大概这样未发现问题呢
# weasel.custom.yaml
patch:
style/+:
label_format: "%s"
inline_preedit: true
font_point: 15
label_font_point: 15
comment_font_point: 15
horizontal: true
color_scheme: win11light
color_scheme_dark: win11dark
layout:
min_width: 10
margin_x: 16
margin_y: 8
border: 2
spacing: 20
candidate_spacing: 22
hilite_spacing: 6
hilite_padding: 2
hilite_padding_x: 8
corner_radius: 10
round_corner: 8
shadow_radius: 8
preset_color_schemes/+:
win11light:
name: " Win11浅色 / Win11light"
text_color: 0x191919
label_color: 0x191919
hilited_label_color: 0x191919
back_color: 0xf9f9f9
border_color: 0x009e5a00
hilited_mark_color: 0xc06700
hilited_candidate_back_color: 0xf0f0f0
shadow_color: 0x20000000
win11dark:
name: "Win11暗色 / Win11Dark"
text_color: 0xf9f9f9
label_color: 0xf9f9f9
back_color: 0x2C2C2C
hilited_label_color: 0xf9f9f9
border_color: 0x002C2C2C
hilited_mark_color: 0xFFC24C
hilited_candidate_back_color: 0x383838
shadow_color: 0x20000000
应该是:hilited_mark_color,你试试。
装上 16 再试 @momotu
直接复制了wiki的代码放
weasel.custom.yaml
,效果大概这样未发现问题呢# weasel.custom.yaml patch: style/+: label_format: "%s" inline_preedit: true font_point: 15 label_font_point: 15 comment_font_point: 15 horizontal: true color_scheme: win11light color_scheme_dark: win11dark layout: min_width: 10 margin_x: 16 margin_y: 8 border: 2 spacing: 20 candidate_spacing: 22 hilite_spacing: 6 hilite_padding: 2 hilite_padding_x: 8 corner_radius: 10 round_corner: 8 shadow_radius: 8 preset_color_schemes/+: win11light: name: " Win11浅色 / Win11light" text_color: 0x191919 label_color: 0x191919 hilited_label_color: 0x191919 back_color: 0xf9f9f9 border_color: 0x009e5a00 hilited_mark_color: 0xc06700 hilited_candidate_back_color: 0xf0f0f0 shadow_color: 0x20000000 win11dark: name: "Win11暗色 / Win11Dark" text_color: 0xf9f9f9 label_color: 0xf9f9f9 back_color: 0x2C2C2C hilited_label_color: 0xf9f9f9 border_color: 0x002C2C2C hilited_mark_color: 0xFFC24C hilited_candidate_back_color: 0x383838 shadow_color: 0x20000000
可不可以把标签前的标记优化一下,太粗了,不知道跟显示器有没有关系,我扩展屏1080P,还有笔记本的2K显示下,这个标记都粗很多,或者增加一下这个标记的长度粗细控制?
示例代码,我也尝试了,第一次尝试失败,然后把weasel.custom.yaml文件的代码只留示例代码,就行了,再检查一下吧
上报前请检查
操作系统信息
描述遇到的问题 使用wiki示例里面的windows11风格时,没有正确的显示出mark_text标记。
复现步骤 重现问题的步骤,如:
用户文件
weasel.custom.yaml
customization: distribution_code_name: Weasel distribution_version: 0.15.0.0 generator: "Weasel::UIStyleSettings" modified_time: "Wed Apr 10 00:58:18 2024" rime_version: 1.8.5
patch: style/+: label_format: "%s" inline_preedit: true font_point: 15 label_font_point: 15 comment_font_point: 15 horizontal: true color_scheme: win11light color_scheme_dark: win11dark mark_text: "" layout/+: min_width: 10 margin_x: 16 margin_y: 8 border: 2 spacing: 20 candidate_spacing: 22 hilite_spacing: 6 hilite_padding: 2 hilite_padding_x: 8 corner_radius: 10 round_corner: 8 shadow_radius: 8 preset_color_schemes/+: win11light: name: " Win11浅色 / Win11light" text_color: 0x191919 label_color: 0x191919 hilited_label_color: 0x191919 back_color: 0xf9f9f9 border_color: 0x009e5a00 hilited_mark_color: 0xc06700 hilited_candidate_back_color: 0xf0f0f0 shadow_color: 0x20000000 win11dark: name: "Win11暗色 / Win11Dark" text_color: 0xf9f9f9 label_color: 0xf9f9f9 back_color: 0x2C2C2C hilited_label_color: 0xf9f9f9 border_color: 0x002C2C2C hilited_mark_color: 0xFFC24C hilited_candidate_back_color: 0x383838 shadow_color: 0x20000000
截图