Repository navigation
Follow the Omarchy theme in the fcitx5 candidate window - #12142
akitaonrails wants to merge 2 commits into
Conversation
e5f1672 to
047561d
Compare
047561d to
3c12da5
Compare
|
Theme sync replaced any classicui theme on every switch, kept the previous palette when the new theme generated none, and named SVG glyphs a fcitx5 that ships PNG does not have. Co-Authored-By: Claude Fable 5.1 <[email protected]>
3c12da5 to
f5c8fd0
Compare
|
Thank you for this. The work is carried forward in #15508, which brings the still-missing parts of Japanese, Chinese and Korean setup together into one change, so I am closing this in its favour. Theming the Fcitx candidate window is in #15508, credited to you as co-author, using your palette. It renders through the theme template mechanism and fixes five things the branch hit on This was checked against |
Summary
default/themed/fcitx5-theme.conf.tpl, so every theme generates an fcitx5 candidate-window theme from its own paletteomarchy-theme-set-fcitx5to install it and point classicui at it, wired intopost_theme_commandsWhy
Everything else in a session follows the selected theme; the input-method popup does not. A user typing Japanese or Chinese gets fcitx5's stock
defaulttheme — light grey panel, blue highlight — floating over whatever Omarchy theme is active. It is the one window that never matches.This generates a theme per palette instead of shipping a fixed one, so the popup tracks light and dark themes alike:
#1a1b26#7aa2f7#2c2525#f38d70#eff1f5#1e66f5accentandbackgroundsit at opposite ends of a palette's luminance in both light and dark themes, so candidate text on the highlight bar stays legible without per-theme tuning.The template also sets the panel's margins (12/8 text padding, highlight inset), which is the other half of the problem: the stock 5px padding reads as cramped and misaligned next to the rest of Omarchy.
What it deliberately does not touch
omarchy-theme-set-fcitx5rewrites onlyTheme=andDarkTheme=in~/.config/fcitx5/conf/classicui.conf, appending them if absent. Font, candidate-list orientation, DPI handling and tray settings are the user's and are left exactly as found — CJK users tend to have opinions about the font, and a theme switch is the wrong moment to overrule them.Both keys are set because
DarkThemeis what classicui picks when the user follows the system colour scheme; setting onlyThemeleaves those users on the stock popup.This is a different approach from #7894, which copies
*.pngout of the packaged themes. fcitx5 5.1 ships those images as SVG, so that copy misses the page arrows and the radio glyph, and it also overwritesclassicui.confwholesale. Here the images are copied from the packaged theme by glob (SVG or PNG, whichever the installed fcitx5 has) becauseImage=entries resolve relative to the theme directory.Complements #9634: that PR gets Mozc installed and registered, this one makes the window it opens look like Omarchy.
Testing
bash test/shell.d/fcitx5-theme-test.sh— no-ops before templates exist; installs theme, images and selection; preserves unrelated classicui settings; replaces rather than appends on re-theme./test/shell— 7 pre-existing environment failures before and after (config-test,locate-test,plymouth-set-test,runtime-smoke-test,snapper-test,unowned-system-paths-test,omarchy-kernel-migration-test), none introduced here./test/clitheme-staging-test.shgates new templates, sofcitx5-theme.confis registered there as colour-only — it ships no codeVisual verification
Applied on a live Omarchy 4.0.4 session (fcitx5 5.1.22, Hyprland 0.56.2, 4K at scale 1.5) with the Ristretto theme active: the generated theme installed, classicui reloaded over D-Bus without restarting fcitx5, and the Mozc popup came back in Ristretto's warm palette instead of the stock grey — larger, evenly padded, matching the desktop.