Skip to content

Commit

Permalink
refactor(renderer): use fondb re-export from resvg::usvg
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed Jul 11, 2024
1 parent c1f9ef6 commit 4bc3792
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ authors = [
[dependencies]
arboard = {version = "3.3.2", features = ["wl-clipboard-rs", "wayland-data-control"]}
env_logger = "0.11"
fontdb = "0.16"
ksni = {git="https://github.com/iovxw/ksni", branch="zbus" }
log = "0.4"
notify-rust = {version = "4.10", default_features = false, features = ["d"]}
Expand Down
12 changes: 7 additions & 5 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ in
]);
};

cargoLock.lockFile = ../Cargo.lock;
cargoLock = {
lockFile = ../Cargo.lock;
outputHashes = {
"ksni-0.2.1" = "sha256-CKjOUGsqlMdgnNY6j29pP6S8wdZ73/v1dMyiIurlltI=";
};
};

strictDeps = true;

nativeBuildInputs = [pkg-config python3];
buildInputs = [dbus xorg.libxcb];
nativeBuildInputs = [
pkg-config
python3
];

meta = {
description = "Rust implementation of tailscale-systray";
Expand Down
2 changes: 1 addition & 1 deletion src/svg/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use ksni::Icon;
use resvg::{
self,
tiny_skia::{Pixmap, Transform},
usvg::{Options, Tree},
usvg::{fontdb, Options, Tree},
};

const SVG_DATA: &str = include_str!("assets/tailscale.svg");
Expand Down

0 comments on commit 4bc3792

Please sign in to comment.