Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
5fd8832b59
feat: new custom icon
I'm not satisfied with it
2026-07-01 09:12:05 -07:00
6e5c79f2f6
build: add missing x11 dependancy
from pkgs/by-name/li/libcosmicAppHook/package.nix

didn't confirm it was necesssary
2026-06-27 22:08:19 -07:00
a6b78857b9
refactor: minor clippy lint 2026-06-27 15:07:40 -07:00
4 changed files with 3 additions and 4 deletions

View file

@ -30,6 +30,7 @@
libx11 libx11
libxcursor libxcursor
libxi libxi
libxcb
]; ];
commonArgs = { commonArgs = {
@ -55,8 +56,7 @@
desktopItem = pkgs.makeDesktopItem { desktopItem = pkgs.makeDesktopItem {
inherit name; inherit name;
desktopName = name; desktopName = name;
# from candy-icons caja-dropbox.svg icon = ./icon.png;
icon = ./icon.svg;
exec = name; exec = name;
}; };
in in

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View file

@ -1 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- Generator: Gravit.io --><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="0 0 48 48" width="48pt" height="48pt"><linearGradient id="_lgradient_1" x1="0" y1="0.5" x2="1" y2="0.5" gradientTransform="matrix(47.451,0,0,33.381,0.274,2.309)" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-opacity="1" style="stop-color:rgb(84,51,255)"/><stop offset="51.73913043478261%" stop-opacity="1" style="stop-color:rgb(32,189,255)"/><stop offset="98.26086956521739%" stop-opacity="1" style="stop-color:rgb(165,254,203)"/></linearGradient><path d=" M 24 12 L 32 5 L 44 12.5 L 36 19 L 44 25.5 L 32 33 L 24 26 L 16 33 L 4 25.5 L 12 19 L 4 12.5 L 16 5 L 24 12 Z M 24 8.01 L 29.441 3.254 C 30.688 2.165 32.84 1.992 34.244 2.869 L 46.606 10.591 C 48.01 11.468 48.107 13.028 46.822 14.072 L 40.76 19 L 46.822 23.928 C 48.107 24.972 48.01 26.532 46.606 27.409 L 34.244 35.131 C 32.84 36.008 30.688 35.835 29.441 34.746 L 24 29.99 L 18.559 34.746 C 17.312 35.835 15.16 36.008 13.756 35.131 L 1.394 27.409 C -0.01 26.532 -0.107 24.972 1.178 23.928 L 7.24 19 L 1.178 14.072 C -0.107 13.028 -0.01 11.468 1.394 10.591 L 13.756 2.869 C 15.16 1.992 17.312 2.165 18.559 3.254 L 24 8.01 Z " fill-rule="evenodd" fill="url(#_lgradient_1)"/><linearGradient id="_lgradient_2" x1="0" y1="0.5" x2="1" y2="0.5" gradientTransform="matrix(33.9,0,0,19.78,7.05,8.53)" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-opacity="1" style="stop-color:rgb(84,51,255)"/><stop offset="51.73913043478261%" stop-opacity="1" style="stop-color:rgb(32,189,255)"/><stop offset="98.26086956521739%" stop-opacity="1" style="stop-color:rgb(165,254,203)"/></linearGradient><path d=" M 35 18.417 L 24 24.833 L 16.891 20.687 L 13 18.417 L 24 12 L 35 18.417 Z M 40.95 18.42 L 24 28.31 L 15.38 23.28 L 7.05 18.42 L 24 8.53 L 40.95 18.42 Z " fill-rule="evenodd" fill="url(#_lgradient_2)"/><linearGradient id="_lgradient_3" x1="0" y1="0.5" x2="1" y2="0.5" gradientTransform="matrix(34,0,0,12,6.5,34.5)" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-opacity="1" style="stop-color:rgb(84,51,255)"/><stop offset="51.73913043478261%" stop-opacity="1" style="stop-color:rgb(32,189,255)"/><stop offset="98.26086956521739%" stop-opacity="1" style="stop-color:rgb(165,254,203)"/></linearGradient><path d=" M 37.5 36 L 37.5 36 C 37.5 35.172 38.172 34.5 39 34.5 L 39 34.5 C 39.828 34.5 40.5 35.172 40.5 36 L 40.5 36 L 40.5 43.5 C 40.5 45.156 39.156 46.5 37.5 46.5 L 9.5 46.5 C 7.844 46.5 6.5 45.156 6.5 43.5 L 6.5 36 L 6.5 36 C 6.5 35.172 7.172 34.5 8 34.5 L 8 34.5 C 8.828 34.5 9.5 35.172 9.5 36 L 9.5 36 L 9.5 42.5 C 9.5 43.052 9.948 43.5 10.5 43.5 L 36.5 43.5 C 37.052 43.5 37.5 43.052 37.5 42.5 L 37.5 36 Z " fill="url(#_lgradient_3)"/></svg>

Before

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -100,7 +100,7 @@ impl State {
widget::column(category.elements.iter().enumerate().map( widget::column(category.elements.iter().enumerate().map(
|(i_element, element)| { |(i_element, element)| {
widget::row([ widget::row([
widget::text_input("content", &element) widget::text_input("content", element)
.on_input(move |new_value| Message::ElementChanged { .on_input(move |new_value| Message::ElementChanged {
i_category, i_category,
i_element, i_element,