Compare commits

..

4 commits

Author SHA1 Message Date
f25ee42d3b
refactor: minor clippy lint 2026-06-26 20:20:28 -07:00
26af92df96
feat: use only software rendering
this reduces the memory usage from 85.5MB to 25MB
2026-06-26 20:01:36 -07:00
420008aebd
fix: missing hardware rendering dependencies 2026-06-26 19:55:46 -07:00
fb90fb8e97
feat: remove x11 and tiny-skia support
but; Error: GraphicsCreationFailed(GraphicsAdapterNotFound { backend: "wgpu", reason: RequestFailed("no adapter was found for the options requested: \"RequestAdapterOptions { power_preference: HighPerformance, force_fallback_adapter: false, compatible_surface: None }\"") })
2026-06-26 19:24:34 -07:00
5 changed files with 39 additions and 1159 deletions

1171
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
iced = "0.14.0" iced = { version = "0.14.0", default-features = false, features = [ "tiny-skia", "crisp", "web-colors", "thread-pool", "wayland" ] }
serde = { version = "1.0.228", features = [ "derive" ] } serde = { version = "1.0.228", features = [ "derive" ] }
ron = "0.12.2" ron = "0.12.2"
dirs = "6.0.0" dirs = "6.0.0"

View file

@ -22,15 +22,8 @@
dlDeps = with pkgs; [ dlDeps = with pkgs; [
# needed for both x11 and wayland # needed for both x11 and wayland
libxkbcommon libxkbcommon
libGL
vulkan-loader
wayland wayland
libx11
libxcursor
libxi
libxcb
]; ];
commonArgs = { commonArgs = {
@ -56,7 +49,8 @@
desktopItem = pkgs.makeDesktopItem { desktopItem = pkgs.makeDesktopItem {
inherit name; inherit name;
desktopName = name; desktopName = name;
icon = ./icon.png; # from candy-icons caja-dropbox.svg
icon = ./icon.svg;
exec = name; exec = name;
}; };
in in

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

1
icon.svg Normal file
View file

@ -0,0 +1 @@
<?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>

After

Width:  |  Height:  |  Size: 2.8 KiB