Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weasel/Wiki里面的示例 ”Windows11风格" 没有显示Windows 11 输入法风格标记 #1205

Closed
3 tasks done
momotu opened this issue Apr 24, 2024 · 5 comments
Closed
3 tasks done

Comments

@momotu
Copy link

momotu commented Apr 24, 2024

上报前请检查

  • 我遇到的问题没有其他人在 issue 里提到过
  • 我的小狼毫版本于 rime/weasel 下载
  • 我在使用小狼毫的最新发布版本,或最新发布版本后的 CI 构建

操作系统信息

  • OS 详细版本: [ Windows 11 23H2 22631.3447 ]
  • 小狼毫版本: [ 0.15.0.0 ]

描述遇到的问题
使用wiki示例里面的windows11风格时,没有正确的显示出mark_text标记。

复现步骤
重现问题的步骤,如:

  1. weasel.custom.yaml使用wiki中的windows11风格示例,此时hilited_mark_color: 0xc06700,重新部署后没有显示Windows 11 输入法风格标记

用户文件

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

截图
屏幕截图 2024-04-24 105252

@fxliang
Copy link
Contributor

fxliang commented Apr 25, 2024

直接复制了wiki的代码放weasel.custom.yaml,效果大概这样未发现问题呢

image

# 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

@plainee
Copy link

plainee commented Apr 29, 2024

应该是:hilited_mark_color,你试试。

@mirtlecn
Copy link
Contributor

装上 16 再试 @momotu

@wzxmer
Copy link

wzxmer commented May 26, 2024

直接复制了wiki的代码放weasel.custom.yaml,效果大概这样未发现问题呢

image

# 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显示下,这个标记都粗很多,或者增加一下这个标记的长度粗细控制?

@wzxmer
Copy link

wzxmer commented May 26, 2024

示例代码,我也尝试了,第一次尝试失败,然后把weasel.custom.yaml文件的代码只留示例代码,就行了,再检查一下吧

@fxliang fxliang closed this as completed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants