Skip to content

[Bug] 选择的皮肤无法生效 #22

Closed

Description

@chca2

Before reporting / 提交前确认

  • I searched existing issues and checked implementation status. / 已搜索现有 issue 并核对实现状态。
  • I removed personal data and secrets from this report. / 已移除个人数据与凭据。

AIME version or commit / AIME 版本或 commit

0.1.9

Environment / 环境

macOS 27.0.1

Input context / 输入环境

导入的鼠须管、小鹤双拼

Steps to reproduce / 复现步骤

导入了鼠须管的皮肤,皮肤选择界面也可以正常显示和选中仿微信深浅色macOS皮肤,但是无法生效,仍然是默认的深红色圆角矩形样式

Expected behavior / 预期行为

正常选中正常显示

Actual behavior / 实际行为

强制用的默认皮肤

Sanitized diagnostics or screenshots / 脱敏诊断或截图

No response

Activity

  1. foru17 commented on Oct 17, 2026

    @foru17
    Contributor

    感谢反馈 @chca2!复现出了一个和你描述完全一致的情况,已修复,会随下个版本发布。

    原因:鼠须管配置里如果引用了 AIME 没有的文件,比如 squirrel.custom.yaml 里写了 __include: squirrel.yaml:/style(导入时不会复制 squirrel.yaml,AIME 用的是自己的 aime.yaml),RIME 编译外观配置时会静默丢弃整份补丁:不光是导入的配置,你在设置里选的配色也一起被丢掉,部署却照常提示成功。设置页的预览会叠上你的选择,所以看起来已经选中了,候选窗实际用的却是默认的朱红样式。

    修复:现在只跳过那一处找不到的引用,其余配置和设置里的选择照常生效。已经导入过的配置不用重新导入,升级后下一次部署(随便改一项设置,或者菜单里点「重新部署」)就会生效。

    想确认你遇到的是不是同一个原因:方便的话看一下 ~/Library/AIME/Rime/aime/imported/aime.custom.yaml 里有没有 __include 或 __patch,有的话把那几行贴出来(不含个人信息就行)。如果没有,麻烦在 AIME 设置的「概览」页点「导出诊断信息…」,把导出的文件附上来(不含输入内容和凭据),我再继续查。

  2. chca2 commented on Oct 17, 2026

    @chca2
    Author

    Managed by AIME — do not edit by hand; regenerated before every deploy.

    Layers, in order (later wins):

    defaults aime/defaults/aime.yaml (shipped with AIME)

    imported aime/imported/aime.custom.yaml (edit this for hand-written patches)

    generated aime/generated/aime.yaml (AIME Settings)

    patch:
    app_options: ""
    style:
    color_scheme: flat_light
    color_scheme_dark: flat_dark
    text_orientation: horizontal
    inline_preedit: true
    corner_radius: 10
    hilited_corner_radius: 0
    border_height: 0
    border_width: 0
    line_spacing: 5
    spacing: 10
    font_face: Lucida Grande
    font_point: 21
    label_font_point: 18
    comment_font_point: 18
    preset_color_schemes/flat_light:
    name: 扁平明/Flat Light
    font_face: PingFangSC
    font_point: 16
    label_font_face: PingFangSC
    label_font_point: 12
    comment_font_face: PingFangSC
    comment_font_point: 16
    candidate_format: "%c %@ "
    candidate_list_layout: linear
    text_orientation: horizontal
    translucency: true
    mutual_exclusive: true
    corner_radius: 15.0
    hilited_corner_radius: 13.0
    border_height: -5.0
    border_width: -5.0
    line_spacing: 4.0
    alpha: 1
    shadow_size: 1.0
    color_space: display_p3
    back_color: 0x00FFFFFF
    candidate_text_color: 0xB3000000
    comment_text_color: 0x80333333
    label_color: 0xBB333333
    hilited_candidate_back_color: 0x79af22
    hilited_candidate_text_color: 0xFFFFFF
    hilited_comment_text_color: 0xE6FFFFFF
    hilited_candidate_label_color: 0xFFFFFF
    text_color: 0xBF323232
    hilited_text_color: 0xBF1A1A1A
    preset_color_schemes/flat_dark:
    name: 扁平暗/Flat Dark
    font_face: PingFangSC
    font_point: 16
    label_font_face: PingFangSC
    label_font_point: 12
    comment_font_face: PingFangSC
    comment_font_point: 16
    candidate_format: "%c %@ "
    candidate_list_layout: linear
    text_orientation: horizontal
    translucency: true
    mutual_exclusive: false
    corner_radius: 15.0
    hilited_corner_radius: 13.0
    border_height: -5.0
    border_width: -5.0
    line_spacing: 4.0
    alpha: 100
    shadow_size: 1.0
    color_space: display_p3
    back_color: 0x00000000
    candidate_text_color: 0xE6FFFFFF
    comment_text_color: 0x80BBBBBB
    label_color: 0xBBBBBBBB
    hilited_candidate_back_color: 0xDDD75A00
    hilited_candidate_text_color: 0xFFFFFF
    hilited_comment_text_color: 0xBFBBBBBB
    hilited_candidate_label_color: 0xFFFFFF
    text_color: 0xBFCCCCCC
    hilited_text_color: 0xBF999999
    preset_color_schemes/macos_light:
    name: MacOS 浅色/MacOS Light
    author: 小码哥
    font_face: PingFangSC
    font_point: 16
    label_font_face: PingFangSC
    label_font_point: 12
    comment_font_face: PingFangSC
    comment_font_point: 16
    candidate_format: "%c %@ "
    candidate_list_layout: linear
    text_orientation: horizontal
    inline_preedit: true
    translucency: false
    mutual_exclusive: false
    border_height: 1
    border_width: 1
    corner_radius: 5
    hilited_corner_radius: 5
    surrounding_extra_expansion: 0
    shadow_size: 0
    line_spacing: 5
    base_offset: 0
    alpha: 1
    spacing: 10
    color_space: srgb
    back_color: 0xFFFFFF
    hilited_candidate_back_color: 0xD75A00
    label_color: 0x999999
    hilited_candidate_label_color: 0xFFFFFF
    candidate_text_color: 0x3c3c3c
    hilited_candidate_text_color: 0xFFFFFF
    comment_text_color: 0x999999
    hilited_comment_text_color: 0xFFFFFF
    text_color: 0x424242
    hilited_text_color: 0xFFFFFF
    candidate_back_color: 0xFFFFFF
    hilited_back_color: 0xD75A00
    border_color: 0xFFFFFF
    preset_color_schemes/macos_dark:
    name: MacOS 深色/MacOS Dark
    author: 小码哥
    font_face: PingFangSC
    font_point: 16
    label_font_face: PingFangSC
    label_font_point: 12
    comment_font_face: PingFangSC
    comment_font_point: 16
    candidate_format: "%c %@ "
    candidate_list_layout: linear
    text_orientation: horizontal
    inline_preedit: true
    translucency: false
    mutual_exclusive: false
    border_height: 1
    border_width: 1
    corner_radius: 5
    hilited_corner_radius: 5
    surrounding_extra_expansion: 0
    shadow_size: 0
    line_spacing: 5
    base_offset: 0
    alpha: 1
    spacing: 10
    color_space: srgb
    back_color: 0x1f1e2d
    hilited_candidate_back_color: 0xD75A00
    label_color: 0x999999
    hilited_candidate_label_color: 0xFFFFFF
    candidate_text_color: 0xe9e9ea
    hilited_candidate_text_color: 0xFFFFFF
    comment_text_color: 0x999999
    hilited_comment_text_color: 0x999999
    text_color: 0x808080
    hilited_text_color: 0xFFFFFF
    candidate_back_color: 0x1f1e2d
    hilited_back_color: 0xD75A00
    border_color: 0x050505
    preset_color_schemes/wechat_light:
    name: 微信浅色/Wechat Light
    author: 小码哥
    font_face: PingFangSC
    font_point: 16
    label_font_face: PingFangSC
    label_font_point: 13
    comment_font_face: PingFangSC
    comment_font_point: 16
    candidate_format: "%c %@ "
    candidate_list_layout: linear
    text_orientation: horizontal
    inline_preedit: true
    translucency: false
    mutual_exclusive: false
    border_height: 1
    border_width: 1
    corner_radius: 5
    hilited_corner_radius: 5
    surrounding_extra_expansion: 0
    shadow_size: 0
    line_spacing: 5
    base_offset: 0
    alpha: 1
    spacing: 10
    color_space: srgb
    back_color: 0xFFFFFF
    hilited_candidate_back_color: 0x79af22
    label_color: 0x999999
    hilited_candidate_label_color: 0xFFFFFF
    candidate_text_color: 0x3c3c3c
    hilited_candidate_text_color: 0xFFFFFF
    comment_text_color: 0x999999
    hilited_comment_text_color: 0x999999
    text_color: 0x424242
    hilited_text_color: 0x999999
    candidate_back_color: 0xFFFFFF
    hilited_back_color: 0x79af22
    border_color: 0xFFFFFF
    preset_color_schemes/wechat_dark:
    name: 微信深色/Wechat Dark
    author: 小码哥
    font_face: PingFangSC
    font_point: 16
    label_font_face: PingFangSC
    label_font_point: 13
    comment_font_face: PingFangSC
    comment_font_point: 16
    candidate_format: "%c %@ "
    candidate_list_layout: linear
    text_orientation: horizontal
    inline_preedit: true
    translucency: false
    mutual_exclusive: false
    border_height: 1
    border_width: 1
    corner_radius: 5
    hilited_corner_radius: 5
    surrounding_extra_expansion: 0
    shadow_size: 0
    line_spacing: 5
    base_offset: 0
    alpha: 1
    spacing: 10
    color_space: srgb
    back_color: 0x151515
    hilited_candidate_back_color: 0x79af22
    label_color: 0x999999
    hilited_candidate_label_color: 0xFFFFFF
    candidate_text_color: 0xbbbbbb
    hilited_candidate_text_color: 0xFFFFFF
    comment_text_color: 0x999999
    hilited_comment_text_color: 0xFFFFFF
    text_color: 0xbbbbbb
    hilited_text_color: 0x999999
    candidate_back_color: 0x151515
    hilited_back_color: 0x79af22
    border_color: 0x292929
    style/color_scheme_dark: macos_dark
    app_options/dev.warp.Warp-Stable:
    ascii_mode: true
    app_options/com.apple.Terminal:
    ascii_mode: true
    app_options/com.microsoft.VSCode:
    ascii_mode: false
    app_options/com.runningwithcrayons.Alfred:
    ascii_mode: false
    app_options/com.apple.Spotlight:
    ascii_mode: true
    app_options/ru.keepcoder.Telegram:
    ascii_mode: false
    app_options/com.tencent.xinWeChat:
    ascii_mode: false
    app_options/com.tencent.qq:
    ascii_mode: false
    app_options/com.apple.MobileSMS:
    ascii_mode: false
    app_options/com.google.Chrome:
    ascii_mode: false
    app_options/org.mozilla.firefox:
    ascii_mode: false
    app_options/md.obsidian:
    ascii_mode: false
    app_options/com.apple.Notes:
    ascii_mode: false
    app_options/com.baidu.BaiduNetdisk-mac:
    ascii_mode: false
    app_options/com.netease.163music:
    ascii_mode: false
    style/color_scheme: flat_light
    style/aime/translucency: true
    style/aime/font_face: ""

  3. foru17 commented on Oct 19, 2026

    @foru17
    Contributor

    @chca2 谢谢贴出配置,先更正一下我上一条回复:上次说的 __include 引用丢失是另一条会导致同样症状的路径,你的配置里并没有 __include,不是你遇到的原因。

    真正的原因:你导入的鼠须管配置里有一行空的 app_options:。这在 YAML 和鼠须管里都是合法写法(等于清空逐应用设置),但 AIME 0.1.9 把这个空值读成了空字符串;AIME 设置里又会为 Warp、终端等应用写入 app_options/<应用> 的中英文选项,这些选项挂不到字符串上,librime 编译外观配置时整份失败,于是不管选哪个皮肤,候选窗都退回默认的朱红样式。你的配置本身没有问题。

    修复(随下个版本发布):

    • 空值按「清空」处理,导入层原样保留的配置升级后下次部署就会生效,不用重新导入。
    • 另外顺手修了一处:扁平类皮肤(你当前选的 flat_light)用 border_width: -5 让高亮铺满边缘,AIME 之前会把第一个候选裁掉一截,现在不会了。

    新版之前的临时办法:打开 ~/Library/AIME/Rime/aime/imported/aime.custom.yaml,删掉那行空的 app_options:(或在下面补上至少一个应用),然后在菜单里点「重新部署」。

    新版发布后如果还有问题请在这里告诉我,确认没问题后我再关闭这个 issue。

  4. foru17 commented on Oct 20, 2026

    @foru17
    Contributor

    @chca2 AIME 0.1.10 已发布(https://github.com/zoolapp/aime/releases/tag/v0.1.10,应用内「检查更新」也会提示),上次说的两处修复都在里面:

    • 导入配置里空的 app_options: 不再让整份外观配置编译失败,设置里选的皮肤会生效;
    • 扁平类皮肤的负边距不再把第一个候选裁掉。

    升级后不用重新导入,随便改一项设置或在菜单里点「重新部署」即可。如果之前按临时办法删过那一行,保持现状也没问题。麻烦确认一下仿微信等皮肤现在是否正常,没问题我就关闭这个 issue。

  5. chca2 commented on Oct 20, 2026

    @chca2
    Author

    确实好了,磊哥

  6. foru17 commented on Nov 2, 2026

    @foru17
    Contributor

    谢谢确认 @chca2!问题已在 0.1.10 修复,这个 issue 先关闭;之后如果皮肤再有异常,欢迎随时重新打开或另开 issue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions