From 18ac009293a5fc1485f9bf181a23385d4ea25d36 Mon Sep 17 00:00:00 2001 From: Steel Date: Mon, 16 Sep 2024 15:52:37 +0200 Subject: [PATCH] dark mode logo --- Cargo.lock | 2 +- Cargo.toml | 2 +- assets/doc/logo.svg | 79 ++++++++++++++++++++++----------------------- src/geometry.rs | 6 ++++ 4 files changed, 47 insertions(+), 42 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1023429..7750a47 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -256,7 +256,7 @@ dependencies = [ [[package]] name = "thumbor" -version = "0.1.9" +version = "0.1.10" dependencies = [ "base64ct", "bon", diff --git a/Cargo.toml b/Cargo.toml index 7ab52c4..3ba058a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "thumbor" description = "A Rust client for the Thumbor image service" -version = "0.1.9" +version = "0.1.10" repository = "https://github.com/SteelAlloy/thumbor-rs" documentation = "https://docs.rs/thumbor" readme = "README.md" diff --git a/assets/doc/logo.svg b/assets/doc/logo.svg index 3396f03..b89749e 100644 --- a/assets/doc/logo.svg +++ b/assets/doc/logo.svg @@ -1,117 +1,116 @@ - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/src/geometry.rs b/src/geometry.rs index 6459819..c865e40 100644 --- a/src/geometry.rs +++ b/src/geometry.rs @@ -69,6 +69,12 @@ impl From<(i32, i32)> for Coords { } } +impl From<[i32; 2]> for Coords { + fn from([x, y]: [i32; 2]) -> Self { + Self { x, y } + } +} + impl From for Coords { fn from(length: i32) -> Self { Self {