-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fcitx5: init fcitx5: init fcitx5: init fcitx5: init fcitx5: init fcitx5: init fcitx5: init fcitx5: init fcitx5: init fcitx5: init fcitx5: init fcitx5: init
- Loading branch information
Showing
4 changed files
with
484 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<svg | ||
width="30" | ||
height="30" | ||
version="1.1" | ||
id="svg6" | ||
sodipodi:docname="highlight.svg" | ||
inkscape:version="1.4 (e7c3feb100, 2024-10-09)" | ||
viewBox="0 0 60 60" | ||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
xmlns="http://www.w3.org/2000/svg" | ||
xmlns:svg="http://www.w3.org/2000/svg"> | ||
<defs | ||
id="defs10"> | ||
<inkscape:path-effect | ||
effect="fillet_chamfer" | ||
id="path-effect998" | ||
is_visible="true" | ||
lpeversion="1" | ||
nodesatellites_param="F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1" | ||
unit="px" | ||
method="arc" | ||
mode="F" | ||
radius="15" | ||
chamfer_steps="1" | ||
flexible="false" | ||
use_knot_distance="true" | ||
apply_no_radius="true" | ||
apply_with_radius="true" | ||
only_selected="false" | ||
hide_knots="false" /> | ||
<inkscape:path-effect | ||
effect="fillet_chamfer" | ||
id="path-effect996" | ||
is_visible="true" | ||
lpeversion="1" | ||
nodesatellites_param="IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1" | ||
unit="px" | ||
method="bezier" | ||
mode="F" | ||
radius="0" | ||
chamfer_steps="1" | ||
flexible="false" | ||
use_knot_distance="true" | ||
apply_no_radius="true" | ||
apply_with_radius="true" | ||
only_selected="false" | ||
hide_knots="false" /> | ||
</defs> | ||
<sodipodi:namedview | ||
id="namedview8" | ||
pagecolor="#ffffff" | ||
bordercolor="#000000" | ||
borderopacity="0.25" | ||
inkscape:showpageshadow="2" | ||
inkscape:pageopacity="0.0" | ||
inkscape:pagecheckerboard="0" | ||
inkscape:deskcolor="#d1d1d1" | ||
showgrid="false" | ||
inkscape:zoom="6.0512821" | ||
inkscape:cx="-6.9406779" | ||
inkscape:cy="29.663135" | ||
inkscape:window-width="1440" | ||
inkscape:window-height="834" | ||
inkscape:window-x="0" | ||
inkscape:window-y="0" | ||
inkscape:window-maximized="1" | ||
inkscape:current-layer="svg6" /> | ||
<path | ||
id="svg_1" | ||
width="40" | ||
height="40" | ||
x="10.000001" | ||
y="10.000001" | ||
fill="#015ad7" | ||
stroke="#000000" | ||
stroke-width="0" | ||
rx="0" | ||
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" /> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
config, | ||
lib, | ||
... | ||
}: let | ||
theme = config.lib.stylix.colors { | ||
template = ./theme.conf.mustache; | ||
extension = "conf"; | ||
}; | ||
highlight = config.lib.stylix.colors { | ||
template = ./highlight.svg.mustache; | ||
extension = "svg"; | ||
}; | ||
panel = config.lib.stylix.colors { | ||
template = ./panel.svg.mustache; | ||
extension = "svg"; | ||
}; | ||
in { | ||
options.stylix.targets.fcitx5.enable = | ||
config.lib.stylix.mkEnableTarget | ||
"fcitx5" | ||
true; | ||
|
||
config = | ||
lib.mkIf ( | ||
config.stylix.enable | ||
&& config.stylix.targets.fcitx5.enable | ||
#&& config.i18n.inputMethod.enable | ||
#&& (config.i18n.inputMethod.type == "fcitx5") | ||
) { | ||
xdg.dataFile."fcitx5/themes/stylix/theme.conf".source = theme; | ||
xdg.dataFile."fcitx5/themes/stylix/panel.svg".source = panel; | ||
xdg.dataFile."fcitx5/themes/stylix/highlight.svg".source = highlight; | ||
Check warning on line 33 in modules/fcitx5/hm.nix GitHub Actions / Lint
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<svg | ||
width="30" | ||
height="30" | ||
version="1.1" | ||
id="svg7" | ||
sodipodi:docname="panel.svg" | ||
inkscape:version="1.4 (e7c3feb100, 2024-10-09)" | ||
viewBox="0 0 60 60" | ||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
xmlns="http://www.w3.org/2000/svg" | ||
xmlns:svg="http://www.w3.org/2000/svg"> | ||
<defs | ||
id="defs11"> | ||
<inkscape:path-effect | ||
effect="fillet_chamfer" | ||
id="path-effect1" | ||
is_visible="true" | ||
lpeversion="1" | ||
nodesatellites_param="F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1" | ||
radius="9.5" | ||
unit="px" | ||
method="bezier" | ||
mode="F" | ||
chamfer_steps="1" | ||
flexible="false" | ||
use_knot_distance="true" | ||
apply_no_radius="true" | ||
apply_with_radius="true" | ||
only_selected="false" | ||
hide_knots="false" /> | ||
<inkscape:path-effect | ||
effect="fillet_chamfer" | ||
id="path-effect475" | ||
is_visible="true" | ||
lpeversion="1" | ||
nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1" | ||
unit="px" | ||
method="auto" | ||
mode="F" | ||
radius="12" | ||
chamfer_steps="1" | ||
flexible="false" | ||
use_knot_distance="true" | ||
apply_no_radius="true" | ||
apply_with_radius="true" | ||
only_selected="false" | ||
hide_knots="false" /> | ||
<filter | ||
style="color-interpolation-filters:sRGB" | ||
inkscape:label="Drop Shadow" | ||
id="filter480" | ||
x="-0.2" | ||
y="-0.2" | ||
width="1.4717949" | ||
height="1.4717949"> | ||
<feFlood | ||
flood-opacity="0.498039" | ||
flood-color="rgb(0,0,0)" | ||
result="flood" | ||
id="feFlood470" /> | ||
<feComposite | ||
in="flood" | ||
in2="SourceGraphic" | ||
operator="in" | ||
result="composite1" | ||
id="feComposite472" /> | ||
<feGaussianBlur | ||
in="composite1" | ||
stdDeviation="3" | ||
result="blur" | ||
id="feGaussianBlur474" /> | ||
<feOffset | ||
dx="2.8" | ||
dy="2.8" | ||
result="offset" | ||
id="feOffset476" /> | ||
<feComposite | ||
in="SourceGraphic" | ||
in2="offset" | ||
operator="over" | ||
result="composite2" | ||
id="feComposite478" /> | ||
</filter> | ||
</defs> | ||
<sodipodi:namedview | ||
id="namedview9" | ||
pagecolor="#ffffff" | ||
bordercolor="#000000" | ||
borderopacity="0.25" | ||
inkscape:showpageshadow="2" | ||
inkscape:pageopacity="0.0" | ||
inkscape:pagecheckerboard="0" | ||
inkscape:deskcolor="#d1d1d1" | ||
showgrid="false" | ||
inkscape:zoom="5.9" | ||
inkscape:cx="-36.949153" | ||
inkscape:cy="20.254237" | ||
inkscape:window-width="1440" | ||
inkscape:window-height="834" | ||
inkscape:window-x="0" | ||
inkscape:window-y="0" | ||
inkscape:window-maximized="1" | ||
inkscape:current-layer="g5" /> | ||
<g | ||
id="g5"> | ||
<title | ||
id="title2">Layer 1</title> | ||
<path | ||
id="svg_1" | ||
width="39" | ||
height="39" | ||
x="10.5" | ||
y="10.5" | ||
fill="#f0f0f0" | ||
stroke="#adadad" | ||
rx="0" | ||
style="fill:#{{base00-hex}};fill-opacity:1;stroke:#{{base01-hex}};stroke-width:1.2;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter480)" | ||
inkscape:path-effect="#path-effect1" | ||
sodipodi:type="rect" | ||
d="m 29.5,10.5 h 1 c 10.49341,0 19,8.50659 19,19 v 1 c 0,10.49341 -8.50659,19 -19,19 h -1 c -10.49341,0 -19,-8.50659 -19,-19 v -1 c 0,-10.49341 8.50659,-19 19,-19 z" /> | ||
</g> | ||
</svg> |
Oops, something went wrong.