diff options
author | Marge Bot <marge-bot@gnome.org> | 2022-09-28 01:34:45 +0000 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-09-28 01:34:45 +0000 |
commit | 5b48f156fb697d80f3be9e3bfae50232931409c1 (patch) | |
tree | fc72b40d3e7790bfe774abbe18ceb89f7e6ca1f3 | |
parent | d54d730b9840720577da5d81fb38ae587d0d7bf6 (diff) | |
parent | 348efa22fec57730ad0ac7567497fbecaffe618d (diff) | |
download | librsvg-5b48f156fb697d80f3be9e3bfae50232931409c1.tar.gz |
Merge branch 'icon-in-docs' into 'main'
Add the librsvg library icons
See merge request GNOME/librsvg!755
-rw-r--r-- | doc/librsvg-r.svg | 32 | ||||
-rw-r--r-- | doc/librsvg.svg | 32 | ||||
-rw-r--r-- | doc/librsvg.toml | 1 | ||||
-rw-r--r-- | src/lib.rs | 1 |
4 files changed, 66 insertions, 0 deletions
diff --git a/doc/librsvg-r.svg b/doc/librsvg-r.svg new file mode 100644 index 00000000..a7bb3077 --- /dev/null +++ b/doc/librsvg-r.svg @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="256" height="256" version="1.1" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <linearGradient id="Gradient" x1="0" x2="0" y1="0" y2="1"> + <stop offset="0%" style="stop-color:#ED333B;stop-opacity:1" /> + <stop offset="100%" style="stop-color:#F66151;stop-opacity:1" /> + </linearGradient> + <filter id="alpha-to-white"> + <feColorMatrix in="SourceGraphic" type="matrix" + values="0 0 0 1 0 + 0 0 0 1 0 + 0 0 0 1 0 + 0 0 0 1 0"/> + </filter> + <g id="child-svg"> +<svg height="16px" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg"> + <path d="m 5 0 c -1.097656 0 -2 0.902344 -2 2 c 0 0.734375 0.402344 1.382812 1 1.730469 v 8.539062 c -0.597656 0.347657 -1 0.996094 -1 1.730469 c 0 1.097656 0.902344 2 2 2 s 2 -0.902344 2 -2 c 0 -0.734375 -0.402344 -1.382812 -1 -1.730469 v -8.539062 c 0.300781 -0.175781 0.554688 -0.429688 0.730469 -0.730469 h 2.269531 s 0.542969 0.015625 1.050781 0.269531 c 0.511719 0.253907 0.949219 0.5625 0.949219 1.730469 s -0.4375 1.476562 -0.949219 1.730469 c -0.132812 0.066406 -0.265625 0.117187 -0.394531 0.15625 c -0.359375 -0.535157 -0.96875 -0.886719 -1.65625 -0.886719 c -1.097656 0 -2 0.902344 -2 2 s 0.902344 2 2 2 c 0.15625 0 0.3125 -0.019531 0.457031 -0.054688 l 2.625 3.496094 c -0.054687 0.175782 -0.082031 0.363282 -0.082031 0.558594 c 0 1.097656 0.902344 2 2 2 s 2 -0.902344 2 -2 s -0.902344 -2 -2 -2 c -0.15625 0 -0.3125 0.019531 -0.457031 0.054688 l -2.417969 -3.222657 c 0.253906 -0.070312 0.539062 -0.171875 0.824219 -0.3125 c 0.988281 -0.496093 2.050781 -1.6875 2.050781 -3.519531 s -1.0625 -3.023438 -2.050781 -3.519531 c -0.992188 -0.496094 -1.949219 -0.480469 -1.949219 -0.480469 h -2.269531 c -0.347657 -0.597656 -0.996094 -1 -1.730469 -1 z m 0 1 c 0.558594 0 1 0.441406 1 1 s -0.441406 1 -1 1 s -1 -0.441406 -1 -1 s 0.441406 -1 1 -1 z m 3 6 c 0.558594 0 1 0.441406 1 1 s -0.441406 1 -1 1 s -1 -0.441406 -1 -1 s 0.441406 -1 1 -1 z m -3 6 c 0.558594 0 1 0.441406 1 1 s -0.441406 1 -1 1 s -1 -0.441406 -1 -1 s 0.441406 -1 1 -1 z m 8 0 c 0.558594 0 1 0.441406 1 1 s -0.441406 1 -1 1 s -1 -0.441406 -1 -1 s 0.441406 -1 1 -1 z m 0 0" fill="#2e3436"/> +</svg> +</g> + </defs> + <rect + width="256" + height="256" + fill="url(#Gradient)" + ry="128" + x="0" + y="0" /> + <use xlink:href="#child-svg" filter="url(#alpha-to-white)" + transform="matrix(8,0,0,8,64,64)" /> +</svg> diff --git a/doc/librsvg.svg b/doc/librsvg.svg new file mode 100644 index 00000000..a78b11ef --- /dev/null +++ b/doc/librsvg.svg @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="256" height="256" version="1.1" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <linearGradient id="Gradient" x1="0" x2="0" y1="0" y2="1"> + <stop offset="0%" style="stop-color:#ED333B;stop-opacity:1" /> + <stop offset="100%" style="stop-color:#F66151;stop-opacity:1" /> + </linearGradient> + <filter id="alpha-to-white"> + <feColorMatrix in="SourceGraphic" type="matrix" + values="0 0 0 1 0 + 0 0 0 1 0 + 0 0 0 1 0 + 0 0 0 1 0"/> + </filter> + <g id="child-svg"> +<svg height="16px" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg"> + <path d="m 5 0 c -1.097656 0 -2 0.902344 -2 2 c 0 0.734375 0.402344 1.382812 1 1.730469 v 8.539062 c -0.597656 0.347657 -1 0.996094 -1 1.730469 c 0 1.097656 0.902344 2 2 2 s 2 -0.902344 2 -2 c 0 -0.734375 -0.402344 -1.382812 -1 -1.730469 v -8.539062 c 0.300781 -0.175781 0.554688 -0.429688 0.730469 -0.730469 h 2.269531 s 0.542969 0.015625 1.050781 0.269531 c 0.511719 0.253907 0.949219 0.5625 0.949219 1.730469 s -0.4375 1.476562 -0.949219 1.730469 c -0.132812 0.066406 -0.265625 0.117187 -0.394531 0.15625 c -0.359375 -0.535157 -0.96875 -0.886719 -1.65625 -0.886719 c -1.097656 0 -2 0.902344 -2 2 s 0.902344 2 2 2 c 0.15625 0 0.3125 -0.019531 0.457031 -0.054688 l 2.625 3.496094 c -0.054687 0.175782 -0.082031 0.363282 -0.082031 0.558594 c 0 1.097656 0.902344 2 2 2 s 2 -0.902344 2 -2 s -0.902344 -2 -2 -2 c -0.15625 0 -0.3125 0.019531 -0.457031 0.054688 l -2.417969 -3.222657 c 0.253906 -0.070312 0.539062 -0.171875 0.824219 -0.3125 c 0.988281 -0.496093 2.050781 -1.6875 2.050781 -3.519531 s -1.0625 -3.023438 -2.050781 -3.519531 c -0.992188 -0.496094 -1.949219 -0.480469 -1.949219 -0.480469 h -2.269531 c -0.347657 -0.597656 -0.996094 -1 -1.730469 -1 z m 0 1 c 0.558594 0 1 0.441406 1 1 s -0.441406 1 -1 1 s -1 -0.441406 -1 -1 s 0.441406 -1 1 -1 z m 3 6 c 0.558594 0 1 0.441406 1 1 s -0.441406 1 -1 1 s -1 -0.441406 -1 -1 s 0.441406 -1 1 -1 z m -3 6 c 0.558594 0 1 0.441406 1 1 s -0.441406 1 -1 1 s -1 -0.441406 -1 -1 s 0.441406 -1 1 -1 z m 8 0 c 0.558594 0 1 0.441406 1 1 s -0.441406 1 -1 1 s -1 -0.441406 -1 -1 s 0.441406 -1 1 -1 z m 0 0" fill="#2e3436"/> +</svg> +</g> + </defs> + <rect + width="256" + height="256" + fill="url(#Gradient)" + ry="0" + x="0" + y="0" /> + <use xlink:href="#child-svg" filter="url(#alpha-to-white)" + transform="matrix(8,0,0,8,64,64)" /> +</svg> diff --git a/doc/librsvg.toml b/doc/librsvg.toml index b04f9fdb..5ef2bc74 100644 --- a/doc/librsvg.toml +++ b/doc/librsvg.toml @@ -8,6 +8,7 @@ repository_url = "https://gitlab.gnome.org/GNOME/librsvg.git" website_url = "https://wiki.gnome.org/Projects/LibRsvg" devhelp = true search_index = true +logo_url = "librsvg-r.svg" [source-location] # The base URL for the web UI @@ -136,6 +136,7 @@ //! [SVG 1.1]: https://www.w3.org/TR/SVG11/ //! [SVG 2]: https://www.w3.org/TR/SVG2/ +#![doc(html_logo_url = "https://gnome.pages.gitlab.gnome.org/librsvg/Rsvg-2.0/librsvg-r.svg")] #![allow(rustdoc::private_intra_doc_links)] #![allow(clippy::clone_on_ref_ptr)] #![allow(clippy::not_unsafe_ptr_arg_deref)] |