Commit 5de3a1b2a26774315c7885ab97974f1ceb02e98b

Authored by Georg Hopp
1 parent 7ce1c306

Allow dead icon code

1 1 use mogwai::prelude::*;
2 2 use super::NS;
3 3
  4 +#[allow(dead_code)]
4 5 pub(crate) fn discard_icon() -> ViewBuilder<Dom> {
5 6 builder! {
6 7 <svg xmlns=NS viewBox="10.3 3.8 76.2 88.7"
... ...
1 1 use mogwai::prelude::*;
2 2 use super::NS;
3 3
  4 +#[allow(dead_code)]
4 5 pub(crate) fn edit_icon() -> ViewBuilder<Dom> {
5 6 builder! {
6 7 <svg xmlns=NS viewBox="0 0 220.001 220.001"
... ...
  1 +use mogwai::prelude::*;
  2 +use super::NS;
  3 +
  4 +#[allow(dead_code)]
  5 +pub(crate) fn hamburger_icon() -> ViewBuilder<Dom> {
  6 + builder! {
  7 + <svg xmlns=NS viewBox="0 -1 16 16"
  8 + width="1.5em" height="1.5em">
  9 + <path xmlns=NS
  10 + d="M2 3 h12 a1 1 0 0 1 0 2
  11 + H2 a1 1 0 1 1 0-2z m0 4 h12 a1 1 0 0 1 0 2
  12 + H2 a1 1 0 1 1 0-2z m0 4 h12 a1 1 0 0 1 0 2
  13 + H2 a1 1 0 0 1 0-2z"/>
  14 + </svg>
  15 + }
  16 +}
... ...
... ... @@ -2,10 +2,22 @@ const NS :&str = "http://www.w3.org/2000/svg";
2 2
3 3 pub(crate) mod discard;
4 4 pub(crate) mod edit;
  5 +pub(crate) mod hamburger;
5 6 pub(crate) mod save;
6 7 pub(crate) mod select;
  8 +pub(crate) mod undo;
7 9
  10 +#[allow(unused_imports)]
8 11 pub(crate) use discard::discard_icon;
  12 +#[allow(unused_imports)]
9 13 pub(crate) use edit::edit_icon;
  14 +#[allow(unused_imports)]
  15 +pub(crate) use hamburger::hamburger_icon;
  16 +#[allow(unused_imports)]
10 17 pub(crate) use save::save_icon;
  18 +#[allow(unused_imports)]
11 19 pub(crate) use select::select_icon;
  20 +#[allow(unused_imports)]
  21 +pub(crate) use undo::undo_icon;
  22 +#[allow(unused_imports)]
  23 +pub(crate) use undo::undo_point_icon;
... ...
1 1 use mogwai::prelude::*;
2 2 use super::NS;
3 3
  4 +#[allow(dead_code)]
4 5 pub(crate) fn save_icon() -> ViewBuilder<Dom> {
5 6 builder! {
6 7 <svg xmlns=NS viewBox="0 -1 32 32"
... ...
1 1 use mogwai::prelude::*;
2 2 use super::NS;
3 3
  4 +#[allow(dead_code)]
4 5 pub(crate) fn select_icon() -> ViewBuilder<Dom> {
5 6 builder! {
6 7 <svg xmlns=NS viewBox="0 -1 24 24"
... ...
  1 +use mogwai::prelude::*;
  2 +use super::NS;
  3 +
  4 +#[allow(dead_code)]
  5 +pub(crate) fn undo_icon() -> ViewBuilder<Dom> {
  6 + builder! {
  7 + <svg xmlns=NS viewBox="0 0 24 24"
  8 + width="15em" height="15em">
  9 + <rect xmlns=NS x="0" fill="none" width="24" height="24"/>
  10 + <g xmlns=NS>
  11 + <path xmlns=NS
  12 + d="M18.142 5.93
  13 + C16.97 4.756 15.435 4.17 13.9 4.17
  14 + s-3.072.586-4.244 1.757
  15 + L6 9.585
  16 + V6
  17 + H4 v7 h7 v-2
  18 + H7.414l3.657-3.657
  19 + c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417
  20 + 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657
  21 + l-5.364 5.364 1.414 1.414 5.364-5.364
  22 + c2.345-2.343 2.345-6.142.002-8.485z"/>
  23 + </g>
  24 + </svg>
  25 + }
  26 +}
  27 +
  28 +#[allow(dead_code)]
  29 +pub(crate) fn undo_point_icon() -> ViewBuilder<Dom> {
  30 + builder! {
  31 + <svg xmlns=NS viewBox="15 15 49 40"
  32 + width="1.5em" height="1.5em">
  33 + <path xmlns=NS fill="#000000" fill-opacity="1" stroke-width="0.2"
  34 + stroke-linejoin="round"
  35 + d="M 44.3333,31.6667
  36 + L 30.0833,31.6667
  37 + L 38,39.5833
  38 + L 28.7309,39.5833
  39 + L 17.4167,28.6649
  40 + L 28.7309,17.4167
  41 + L 38,17.4167
  42 + L 30.0833,25.3333
  43 + L 44.3333,25.3333
  44 + C 53.0778,25.3333 60.1667,32.4222 60.1667,41.1667
  45 + C 60.1667,49.9112 53.0778,57 44.3333,57
  46 + L 39.5833,57L 39.5833,50.6667
  47 + L 44.3333,50.6667
  48 + C 49.58,50.6667 53.8333,46.4134 53.8333,41.1667
  49 + C 53.8333,35.92 49.58,31.6667 44.3333,31.6667 Z
  50 + M 34.8333,50.6667
  51 + L 34.8333,57
  52 + L 28.5,57
  53 + L 28.5,50.6667
  54 + L 34.8333,50.6667 Z "/>
  55 + </svg>
  56 + }
  57 +}
... ...
Please register or login to post a comment