Use modules folder

This commit is contained in:
Elnu 2023-01-25 20:15:06 -08:00
parent e42f845f09
commit 2903676336
46 changed files with 21 additions and 21 deletions

BIN
modules/fcitx5/arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

View file

@ -0,0 +1,22 @@
{ pkgs, ... }:
with import ../theme; let
themeFolder = ".local/share/fcitx5/themes/${theme}/";
in
{
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [ fcitx5-anthy ];
};
home.file = {
"${themeFolder}theme.conf".source = with colors; pkgs.substituteAll ({
src = ./theme.conf;
background = "${bg1}80";
highlight = bg0;
} // colors);
"${themeFolder}arrow.png".source = ./arrow.png;
"${themeFolder}radio.png".source = ./radio.png;
".config/fcitx5/conf/classicui.conf".text = "Theme=${theme}";
};
}

BIN
modules/fcitx5/radio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

78
modules/fcitx5/theme.conf Normal file
View file

@ -0,0 +1,78 @@
[Metadata]
ScaleWithDPI=True
[InputPanel]
Font=Sans 13
NormalColor=@fg0@
HighlightCandidateColor=@fg1@;
HighlightColor=@undefined@
HighlightBackgroundColor=@undefined@
Spacing=3
[InputPanel/TextMargin]
Left=10
Right=10
Top=6
Bottom=6
[InputPanel/Background]
Color=@background@
[InputPanel/Background/Margin]
Left=2
Right=2
Top=2
Bottom=2
[InputPanel/Highlight]
Color=@highlight@
[InputPanel/Highlight/Margin]
Left=10
Right=10
Top=7
Bottom=7
[Menu]
Font=Sans 10
NormalColor=@fg0@
Spacing=3
[Menu/Background]
Color=@background@
[Menu/Background/Margin]
Left=2
Right=2
Top=2
Bottom=2
[Menu/ContentMargin]
Left=2
Right=2
Top=2
Bottom=2
[Menu/Highlight]
Color=@highlight@
[Menu/Highlight/Margin]
Left=10
Right=10
Top=5
Bottom=5
[Menu/Separator]
Color=@highlight@
[Menu/CheckBox]
Image=radio.png
[Menu/SubMenu]
Image=arrow.png
[Menu/TextMargin]
Left=5
Right=5
Top=5
Bottom=5