mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -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
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue