From 46440f1bc877c467f2d31c5a825883437b8077f0 Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Fri, 5 Dec 2025 20:04:53 +0100 Subject: [PATCH] fcitx5: conform to stylix styling guidelines (#2063) Link: https://github.com/nix-community/stylix/pull/2063 Closes: https://github.com/nix-community/stylix/issues/2062 --- modules/fcitx5/highlight.svg.mustache | 2 +- modules/fcitx5/template.nix | 2 +- modules/fcitx5/testbeds/fcitx5.nix | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 modules/fcitx5/testbeds/fcitx5.nix diff --git a/modules/fcitx5/highlight.svg.mustache b/modules/fcitx5/highlight.svg.mustache index d9fc2f75..7a6d23da 100644 --- a/modules/fcitx5/highlight.svg.mustache +++ b/modules/fcitx5/highlight.svg.mustache @@ -79,5 +79,5 @@ sodipodi:type="rect" d="m 25.000001,10.000001 h 10 a 15,15 45 0 1 15,15 v 10 a 15,15 135 0 1 -15,15 h -10 a 15,15 45 0 1 -15,-15 v -10 a 15,15 135 0 1 15,-15 z" inkscape:path-effect="#path-effect998" - style="fill:#{{base04-hex}};fill-opacity:1" /> + style="fill:#{{base02-hex}};fill-opacity:1" /> diff --git a/modules/fcitx5/template.nix b/modules/fcitx5/template.nix index cd9103f6..fe108652 100644 --- a/modules/fcitx5/template.nix +++ b/modules/fcitx5/template.nix @@ -12,7 +12,7 @@ with colors; HighlightCandidateColor = base06; EnableBlur = false; FullWidthHighlight = true; - HighlightColor = base04; + HighlightColor = base02; HighlightBackgroundColor = base0E; }; "InputPanel/BlurMargin" = { diff --git a/modules/fcitx5/testbeds/fcitx5.nix b/modules/fcitx5/testbeds/fcitx5.nix new file mode 100644 index 00000000..bb816119 --- /dev/null +++ b/modules/fcitx5/testbeds/fcitx5.nix @@ -0,0 +1,18 @@ +{ + pkgs, + lib, + ... +}: +{ + stylix.testbed.ui.command.text = "fcitx5-config-qt"; + home-manager.sharedModules = lib.singleton { + i18n.inputMethod = { + enable = true; + type = "fcitx5"; + fcitx5.addons = with pkgs; [ + fcitx5-mozc + fcitx5-gtk + ]; + }; + }; +}