From 6edc5e07eed22552550a3ba5303b038f7d831f5d Mon Sep 17 00:00:00 2001 From: Juan de la Cruz Date: Thu, 7 Jan 2016 12:44:23 +0100 Subject: [PATCH] add multicanvas icon to header.cljs --- frontend/uxbox/ui/icons.cljs | 10 ++++ frontend/uxbox/ui/workspace/header.cljs | 7 ++- resources/public/images/svg/multi-canvas.svg | 57 +------------------- 3 files changed, 16 insertions(+), 58 deletions(-) diff --git a/frontend/uxbox/ui/icons.cljs b/frontend/uxbox/ui/icons.cljs index e3fdca76b..c140df2a4 100644 --- a/frontend/uxbox/ui/icons.cljs +++ b/frontend/uxbox/ui/icons.cljs @@ -303,6 +303,16 @@ {:d "M175.22537 0.0214681C98.602395-0.4189217 25.177287 57.341185 8.1268427 132.43819c-16.236521 64.68266 7.6690733 137.6301 61.0127383 178.29929 29.517076 23.30663 66.410239 37.17296 104.021159 37.97425-0.0312 50.42943 0.0789 100.85884 0.0307 151.28827 107.89983 0 215.79967 0 323.69951 0 0-107.89983 0-215.79966 0-323.69951-48.37827 0-96.75653 0-145.13478 0C353.71298 101.54532 300.96681 28.47396 228.60303 7.70976 211.56875 2.4333964 193.25409-0.2710881 175.22537 0.0214681Zm1.39564 45.1256169c59.60941-1.339223 116.86335 44.455175 127.24524 103.415595 1.85716 9.11869 2.67055 18.43563 2.57212 27.73781-44.41306 0-88.82612 0-133.23918 0-0.12477 42.3413 0.20748 84.68363-0.16917 127.02417C113.59669 302.40815 58.275037 254.48689 50.046662 195.49339 41.679559 145.85509 64.545443 91.631367 108.08481 65.447269c20.38308-12.91528 44.37765-20.187654 68.5362-20.300184zm41.62691 174.243245c26.7401 0 53.48021 0 80.22032 0-13.57553 36.75933-44.78553 66.40841-82.18883 78.09034 0-26.03011 0-52.06022 0-78.09034l0.98426 0 0.98425 0zm129.05802 0c35.49906 0 70.99811 0 106.49715 0 0 79.17327 0 158.34656 0 237.51984-79.17455 0-158.34912 0-237.52368 0 0-37.5579 0-75.11581 0-112.67371 61.81439-13.63797 113.78218-63.87645 129.53094-124.84613l0.98425 0 0.51134 0z"}]])) +(def multicanvas + (html + [:svg + {:viewBox "0 0 500.00001 500.00001" + :height "500" + :width "500"} + [:path + {:d + "M22.5 0C11.24 0 0 9.125 0 22.02v129.732c0 12.894 11.24 22.02 22.5 22.02h189.152c11.26 0 22.5-9.126 22.5-22.02V22.02c0-12.895-11.24-22.02-22.5-22.02H22.5zm265.848 0c-11.26 0-22.5 9.125-22.5 22.02v219.773c0 12.894 11.24 22.02 22.5 22.02H477.5c11.26 0 22.5-9.126 22.5-22.02V22.02C500 9.125 488.76 0 477.5 0H288.348zM35 35h164.152v103.77H35V35zm265.848 0H465v193.814H300.848V35zM22.5 206.525c-11.26 0-22.5 9.126-22.5 22.02V477.98C0 490.875 11.24 500 22.5 500h189.152c11.26 0 22.5-9.125 22.5-22.02V228.545c0-12.894-11.24-22.02-22.5-22.02H22.5zm12.5 35h164.152V465H35V241.525zm253.348 60.34c-11.26 0-22.5 9.125-22.5 22.02V477.98c0 12.895 11.24 22.02 22.5 22.02H477.5c11.26 0 22.5-9.125 22.5-22.02V323.885c0-12.894-11.24-22.02-22.5-22.02H288.348zm12.5 35H465V465H300.848V336.865z"}]])) + (def box (html [:svg diff --git a/frontend/uxbox/ui/workspace/header.cljs b/frontend/uxbox/ui/workspace/header.cljs index 8b0f56389..8c49ad464 100644 --- a/frontend/uxbox/ui/workspace/header.cljs +++ b/frontend/uxbox/ui/workspace/header.cljs @@ -65,7 +65,11 @@ i/alignment] [:li.tooltip.tooltip-bottom {:alt "Organize (Ctrl + O)"} - i/organize]]] + i/organize]] + [:ul.options-btn + [:li.tooltip.tooltip-bottom + {:alt "Multi-canvas (Ctrl + M)"} + i/multicanvas]]] (ui.u/user)]))) (def header @@ -73,4 +77,3 @@ {:render header-render :name "workspace-header" :mixins [rum/reactive]})) - diff --git a/resources/public/images/svg/multi-canvas.svg b/resources/public/images/svg/multi-canvas.svg index 2a2897239..2b0199a76 100644 --- a/resources/public/images/svg/multi-canvas.svg +++ b/resources/public/images/svg/multi-canvas.svg @@ -1,56 +1 @@ - - - - - - - - - - - image/svg+xml - - - - - - - + \ No newline at end of file