mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
add new ruler icon
This commit is contained in:
parent
ff8c9d0ed8
commit
96092fda7c
3 changed files with 70 additions and 2 deletions
55
frontend/resources/public/images/svg/ruler-tool.svg
Normal file
55
frontend/resources/public/images/svg/ruler-tool.svg
Normal file
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="500"
|
||||
height="500"
|
||||
viewBox="0 0 499.99999 500.00001"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="ruler-tool.svg"
|
||||
inkscape:version="0.92.1 unknown">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1056"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.6675088"
|
||||
inkscape:cx="234.52597"
|
||||
inkscape:cy="135.67169"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<path
|
||||
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.08308911;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 398.32422 0.33398438 L 378.16211 20.496094 L 457.61719 99.949219 L 457.61719 99.951172 L 359.95117 197.61719 L 359.94922 197.61719 L 280.49609 118.16211 L 260.33398 138.32422 L 339.78906 217.77734 L 219.95117 337.61719 L 219.94922 337.61719 L 140.49609 258.16211 L 120.33398 278.32422 L 199.78906 357.77734 L 99.951172 457.61719 L 99.949219 457.61719 L 20.496094 378.16211 L 0.33398438 398.32422 L 79.789062 477.77734 L 102.00977 500 L 500 102.00977 L 477.77734 79.789062 L 398.32422 0.33398438 z M 346.9707 74.224609 L 337.26953 83.925781 L 391.96289 138.61914 L 401.66406 128.91797 L 346.9707 74.224609 z M 216.9707 204.22461 L 207.26953 213.92578 L 261.96289 268.61914 L 271.66406 258.91797 L 216.9707 204.22461 z M 82.970703 334.22461 L 73.269531 343.92578 L 127.96289 398.61914 L 137.66406 388.91797 L 82.970703 334.22461 z "
|
||||
id="rect23005" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
|
@ -312,6 +312,15 @@
|
|||
{:d
|
||||
"M333.67425 553.74496C222.45047 664.96751 111.22664 776.18999 0.002875 887.41252 54.983009 942.39564 109.96286 997.379 164.94299 1052.3622 276.62769 940.67873 388.31243 828.99533 499.99712 717.31187 445.01698 662.32875 390.03714 607.34533 335.057 552.3622l-0.69145 0.69146-0.6913 0.6913zm54.8788 110.04985c18.01156 18.00709 36.0231 36.01418 54.03466 54.02127C350.21586 810.07342 258.1109 902.59851 165.4281 994.5441 129.16752 958.92345 93.403308 922.80481 57.419936 886.90639c8.858076-8.85807 17.716151-17.71615 26.574226-26.57422 9.263873 8.87855 17.615348 18.79809 27.977998 26.46727 7.4703-1.13808 11.15104-8.91107 16.65806-13.21071 4.00843-3.78397 8.316-7.59774 10.50441-12.79246-5.49084-9.19908-14.29237-15.74039-21.26091-23.68074-1.34566-1.73238-5.6696-3.17213-5.14525-5.64946 7.07631-6.03669 13.6745-14.66405 20.60009-19.61076 9.09844 8.77993 17.34644 18.54622 27.59601 26.05665 7.44495-1.196 11.13335-8.89376 16.61606-13.23746 3.99359-3.78596 8.28746-7.59905 10.47577-12.7829-5.22372-8.96407-13.8455-15.20665-20.49125-22.97409-1.65554-1.96459-5.79266-3.37248-5.84998-6.16703 6.68817-6.73481 13.42464-13.42776 20.13026-20.14745 20.01434 19.61211 39.12764 40.16534 60.06989 58.8132 6.96182 0.111 10.29712-7.39925 15.21992-11.07929 4.13751-4.54479 10.51856-8.80317 11.96739-14.75773-2.69172-7.21207-10.18457-11.08275-14.65665-17.06694-14.58126-14.92054-29.43219-29.57566-44.15465-44.35706 6.95981-6.42426 13.88881-14.94733 20.86748-20.08634 9.1017 8.77482 17.33546 18.55791 27.59411 26.05666 7.45551-1.17718 11.112-8.93766 16.61414-13.24129 4.00232-3.78571 8.30816-7.60161 10.47194-12.80581-5.25029-8.93558-13.83181-15.20068-20.48741-22.94926-1.72275-1.96312-5.76294-3.36443-5.8538-6.1613 6.83462-6.34525 13.68876-14.75955 20.55806-19.79221 9.12743 8.77712 17.33975 18.62135 27.65904 26.07765 7.38351-1.32273 11.10244-8.88042 16.54921-13.26418 4.00144-3.78874 8.29899-7.61031 10.4853-12.80392-5.50086-9.17541-14.29922-15.69412-21.24945-23.633-1.47637-1.74001-5.28036-3.04165-5.23118-5.54632 8.95422-8.5157 17.4966-17.52502 26.29728-26.22471 18.00901 18.00453 36.01801 36.00909 54.027 54.01363z"}]]]))
|
||||
|
||||
(def ruler-tool
|
||||
(html
|
||||
[:svg
|
||||
{:viewBox "0 0 500 500.00001"}
|
||||
[:g
|
||||
[:path
|
||||
{:d
|
||||
"M398.324.334l-20.162 20.162 79.455 79.453-97.666 97.666-79.453-79.455-20.162 20.163 79.455 79.453-119.84 119.84-79.454-79.455-20.162 20.163 79.455 79.453-99.84 99.84-79.455-79.455-20.16 20.164 79.454 79.453L102.01 500 500 102.01l-22.223-22.22L398.324.333zm-51.353 73.89l-9.7 9.702 54.694 54.693 9.7-9.703-54.692-54.693zm-130 130l-9.7 9.702 54.694 54.693 9.7-9.703-54.692-54.693zm-134 130l-9.7 9.702 54.694 54.693 9.7-9.703-54.692-54.693z"}]]]))
|
||||
|
||||
(def grid
|
||||
(html
|
||||
[:svg
|
||||
|
@ -505,7 +514,7 @@
|
|||
[:path
|
||||
{:d
|
||||
"m110.60416 499.33847c-22.177988-4.50776-39.962038-21.75589-46.405198-45.0068-1.977315-7.13539-2.016513-9.26603-2.016513-109.60819 0-98.645 0.06949-102.60306 1.929042-109.87383 4.423652-17.29632 16.524827-32.63809 31.819424-40.34039l7.825735-3.94103 0.60407-49.32264c0.65846-53.763135 0.62011-53.373185 6.83197-69.481055 8.21794-21.30983 30.46536-44.049766 55.16981-56.391163 10.20624-5.09865 24.27131-9.8702562 37.2909-12.6510232 12.29719-2.62647101 13.38097-2.69147701 45.36838-2.72123901 36.82119-0.03426 43.33148 0.691327 63.09496 7.03207001 22.66364 7.2712112 38.73778 16.8847932 54.33879 32.4988162 11.05888 11.068109 16.97809 19.704479 22.16356 32.337529 5.96869 14.54116 6.15544 16.63373 6.17191 69.157365 0.008 26.25671 0.33839 48.1887 0.73367 48.73773 0.39527 0.54903 4.20746 2.70218 8.47153 4.7848 15.26633 7.45624 27.42013 22.8142 31.8923 40.30023 1.85931 7.2698 1.92905 11.22683 1.92905 109.45314 0 98.71665-0.0614 102.15316-1.95844 109.64831-2.76597 10.92815-7.22084 19.12549-14.77309 27.18364-7.14127 7.61966-13.97588 12.19324-24.11727 16.13877l-6.5947 2.56569-137.92851 0.14728c-75.86068 0.081-139.6893-0.21059-141.84138-0.64801zm275.44488-42.36785c3.21442-1.69982 4.97898-3.57704 7.00136-7.44832l2.70384-5.17574 0-101.43074 0-101.43073-2.51453-5.046c-1.49217-2.99441-3.82602-5.85656-5.74021-7.03959-3.20494-1.98076-4.09399-1.99357-138.31459-1.99357l-135.08891 0-3.61136 3.17081c-7.68721 6.74946-7.17152-1.28062-7.19562 112.04559-0.019 89.01071 0.15867 101.46341 1.49253 104.6558 1.77442 4.24679 4.66753 7.5951 8.75726 10.13513 2.8251 1.7546 7.88585 1.82277 135.57367 1.82629l132.63902 0.004 4.29754-2.2726zM210.87134 414.7115c0-0.81959 3.52158-15.55592 7.82573-32.74738 4.30416-17.19147 7.82573-31.96021 7.82573-32.81943 0-0.85925-2.41047-3.76528-5.3566-6.45788-9.7665-8.92602-14.60162-22.54037-12.4537-35.0661 1.56659-9.13564 4.34066-14.72784 10.7286-21.62759 23.40741-25.28278 65.56256-12.69769 71.62135 21.382 2.17751 12.24808-2.24683 25.13545-11.97693 34.88693l-5.77232 5.785 8.32828 33.30344c4.58055 18.31689 8.11305 33.65168 7.84999 34.07733-0.26305 0.42563-18.0602 0.77387-39.54921 0.77387-34.34393 0-39.07092-0.18029-39.07092-1.49019zM354.66915 143.45686c0-49.238655-0.0768-50.006535-6.08212-60.826955-10.93104-19.69552-35.55506-34.687-65.08507-39.62477-14.60005-2.441306-62.54427-1.62974-74.64943 1.26361-30.35851 7.25623-52.8469 24.27954-61.66065 46.676-2.28452 5.80515-2.31336 6.34422-2.63922 49.320085-0.1812 23.89793-0.0718 44.47715 0.24301 45.73161l0.57244 2.28083 104.65052 0 104.65052 0 0-44.82041z"}]]))
|
||||
|
||||
|
||||
(def unlock
|
||||
(html
|
||||
[:svg
|
||||
|
|
|
@ -87,7 +87,11 @@
|
|||
{:icon i/pencil
|
||||
:help (tr "ds.help.path")
|
||||
:shape +draw-tool-curve+
|
||||
:priority 6}])
|
||||
:priority 6}
|
||||
{:icon i/ruler-tool
|
||||
:help (tr "ds.help.path")
|
||||
:shape +draw-tool-curve+
|
||||
:priority 7}])
|
||||
|
||||
;; --- Draw Toolbox (Component)
|
||||
|
||||
|
|
Loading…
Reference in a new issue