gnome 上的 Input Method Panel 扩展
  • CSS 69.4%
  • Shell 30.6%
Find a file
2026-09-28 10:21:28 +08:00
assets feat: 提交默认的mac theme 2026-09-28 10:10:54 +08:00
highlight.png feat: 提交默认的mac theme 2026-09-28 10:10:54 +08:00
install.sh feat: 提交默认的mac theme 2026-09-28 10:10:54 +08:00
org.gnome.shell.extensions.kimpanel.gschema.xml feat: 提交默认的mac theme 2026-09-28 10:10:54 +08:00
panel.png feat: 提交默认的mac theme 2026-09-28 10:10:54 +08:00
README.md feat: 更新readme当中的 git clone 地址 2026-09-28 10:21:28 +08:00
stylesheet.css feat: 提交默认的mac theme 2026-09-28 10:10:54 +08:00

kimpanel macOS Theme

解决 gnome-shell-extension-kimpanel 候选框只有默认黑色样式,且 fcitx5 主题配置不生效的问题。将候选框渲染为 macOS 风格白色主题(fcitx5-theme-macos)。

screenshot

原因

fcitx5 有两个 UI 模块竞争渲染:

模块 优先级 作用
kimpanel UIPriority=50 通过 DBus 把候选词发给 GNOME Shell 渲染
classicui UIPriority=0(默认) fcitx5 自行渲染,使用 classicui.conf 主题

kimpanel 优先级更高,所以候选窗口实际由 GNOME Shell 的 stylesheet.css 控制,而不是 fcitx5 的主题配置。

安装

先确保已安装 kimpanel 扩展。

方式一:install.sh(推荐)

git clone https://git.940304.xyz/dk/gnome-kimpanel-mac-theme.git
cd gnome-kimpanel-mac-theme
./install.sh

方式二:手动

cp stylesheet.css panel.png highlight.png ~/.local/share/gnome-shell/extensions/kimpanel@kde.org/
cp org.gnome.shell.extensions.kimpanel.gschema.xml ~/.local/share/glib-2.0/schemas/
glib-compile-schemas ~/.local/share/glib-2.0/schemas/

方式三:纯手动(不用终端)

  1. 打开 仓库主页,点击绿色 Code 按钮 → Download ZIP,解压后进入目录

  2. 将下载的 stylesheet.css、panel.png、highlight.png 复制到:

    ~/.local/share/gnome-shell/extensions/kimpanel@kde.org/
    

    (文件管理器按 Ctrl+H 显示隐藏目录)

  3. 完成后注销重新登录。