From 2f17e369400b9c895b3554008ab3efbc76255428 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Thu, 25 Jul 2024 22:52:20 -0700 Subject: roles: home: migrate old home module to roles --- roles/home/desktop/fcitx5.nix | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 roles/home/desktop/fcitx5.nix (limited to 'roles/home/desktop/fcitx5.nix') diff --git a/roles/home/desktop/fcitx5.nix b/roles/home/desktop/fcitx5.nix new file mode 100644 index 0000000..e68312d --- /dev/null +++ b/roles/home/desktop/fcitx5.nix @@ -0,0 +1,62 @@ +# This file only handles theming of fcitx5. +{ lib, pkgs, config, ... }: + +lib.mkIf config.home.roles.desktop.enable { + xdg.dataFile."fcitx5/themes/nix-theme/theme.conf".source = let c = config.theme.colors; in (pkgs.formats.ini { }).generate "what" { + "Metadata" = { + Name = "nix-theme"; + Author = "CartConnoisseur"; + Description = "Theme generated by nixos"; + Version = 1; + }; + + "InputPanel" = { + NormalColor = "#${c.fg}"; + HighlightColor = "#${c.fg}"; + HighlightBackgroundColor = "#00000000"; + HighlightCandidateColor = "#${c.bg}"; + + FullWidthHighlight = true; + PageButtonAlignment = "Last Candidate"; + }; + + "InputPanel/Background" = { + Color = "#${c.bg}"; + BorderColor = "#${c.fg1}"; + BorderWidth = 2; + }; + + # "InputPanel/Background/Margin" = { + # Left = 10; + # Right = 10; + # Top = 10; + # Bottom = 10; + # }; + + "InputPanel/Highlight" = { + Color = "#${c.fg}"; + BorderWidth = 0; + }; + + "InputPanel/Highlight/Margin" = { + Left = 2; + Right = 2; + Top = 2; + Bottom = 2; + }; + + "InputPanel/ContentMargin" = { + Left = 2; + Right = 2; + Top = 2; + Bottom = 2; + }; + + "InputPanel/TextMargin" = { + Left = 5; + Right = 5; + Top = 5; + Bottom = 5; + }; + }; +} -- cgit v1.2.3