blob: 943bf46f5c1481cee460139957b305d133152c34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# This file only handles theming of fcitx5.
{ pkgs, config, ... }:
{
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;
};
};
}
|