Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Shrink broken camera, remove SWT reference

AuthorDaveJarvis <email>
Date2020-06-27 11:22:46 GMT-0700
Commit09480c4fff3b847ce21ce939f12c262cba551b25
Parent9a7423e
Delta26 lines added, 28 lines removed, 2-line decrease
src/main/java/com/scrivenvar/preview/SVGRasterizer.java
static {
// A FontAwesome camera icon, cleft asunder.
- // @formatter:off
- final String BROKEN_IMAGE_SVG = "<svg xmlns='http://www.w3.org/2000/svg' " +
- "viewBox='0 0 150 150' width='150pt' height='150pt' " +
- "fill='#454545'><path d='m41.738281 87.738281c2.480469 11.433594 12" +
- ".464844 19.8125 24.15625 20.269531zm0 0'/><path d='m32.328125 76" +
- ".152344-2.25 1.800781 1.824219 1.527344c.089844-1.125.230468-2.230469" +
- ".425781-3.328125zm0 0'/><path d='m60.953125 7.5-18.90625 1.65625c-5" +
- ".835937.511719-10.746094 4.585938-12.308594 10.222656l-2.75 9" +
- ".917969-25.683593 2.246094c-7.734376.675781-13.460938 7.5-12.785157 15" +
- ".234375l7.355469 84.054687c.675781 7.734375 7.5 13.457031 15.234375 12" +
- ".78125l88.042969-7.703125-23.417969-19.648437c-1.867187.480469-3" +
- ".777344.855469-5.757813 1.027343-19.324218 1.691407-36.398437-12" +
- ".636718-38.089843-31.957031-.171875-1.980469-.136719-3.929687.015625-5" +
- ".851562l-1.824219-1.527344 2.25-1.800781c2.703125-15.277344 15" +
- ".339844-27.492188 31.519531-28.90625 1.570313-.140625 3.121094-.132813" +
- " 4.65625-.066406l7-5.605469zm0 0'/><path d='m58.210938 87.628906 22" +
- ".296874 22.300782c1.070313.132812 2.148438.226562 3.253907.226562 14" +
- ".210937 0 25.78125-11.570312 25.78125-25.78125 0-14.207031-11" +
- ".570313-25.78125-25.78125-25.78125-14.207031 0-25.78125 11.574219-25" +
- ".78125 25.78125 0 1.105469.09375 2.1875.230469 3.253906zm0 0'/><path " +
- "d='m90.203125 6.382812 8.410156 36.082032-7.867187 4.304687c16.9375 3" +
- ".773438 28.917968 19.589844 27.363281 37.339844-1.515625 17.339844-15" +
- ".433594 30.621094-32.238281 31.945313l19.652344 23.421874 33.367187 2" +
- ".917969c7.734375.675781 14.558594-5.050781 15.234375-12.785156l7" +
- ".351562-84.050781c.679688-7.734375-5.046874-14.558594-12.78125-15" +
- ".234375l-25.683593-2.246094-2.78125-9.921875c-1.5625-5.632812-6" +
- ".472657-9.710938-12.308594-10.222656zm0 0'/></svg>";
- // @formatter:on
+ final String BROKEN_IMAGE_SVG = "<svg height='79pt' viewBox='0 0 100 79' " +
+ "width='100pt' xmlns='http://www.w3.org/2000/svg'><g " +
+ "fill='#454545'><path d='m32.175781 46.207031c1.316407 6.023438 6" +
+ ".628907 10.4375 12.847657 10.675781zm0 0'/><path d='m27.167969 40" +
+ ".105469-1.195313.949219.96875.804687c.050782-.59375.125-1.175781" +
+ ".226563-1.753906zm0 0'/><path d='m42.394531 3.949219-10.054687" +
+ ".875c-3.105469.269531-5.71875 2.414062-6.546875 5.382812l-1.464844 5" +
+ ".222657-13.660156 1.183593c-4.113281.355469-7.160157 3.949219-6" +
+ ".800781 8.023438l3.910156 44.269531c.363281 4.070312 3.992187 7" +
+ ".085938 8.105468 6.730469l46.832032-4.058594-12.457032-10.347656c-" +
+ ".992187.253906-2.007812.453125-3.0625.542969-10.277343.890624-19" +
+ ".359374-6.65625-20.261718-16.832032-.089844-1.042968-.070313-2" +
+ ".070312.007812-3.082031l-.96875-.804687 1.195313-.949219c1.4375-8" +
+ ".042969 8.160156-14.476563 16.765625-15.222657.835937-.074218 1" +
+ ".660156-.070312 2.476562-.035156l3.726563-2.953125zm0 0'/><path " +
+ "d='m40.9375 46.152344 11.859375 11.742187c.570313.070313 1.144531" +
+ ".121094 1.730469.121094 7.558594 0 13.714844-6.09375 13.714844-13" +
+ ".578125 0-7.480469-6.15625-13.578125-13.714844-13.578125s-13.714844 " +
+ "6.097656-13.714844 13.578125c0 .582031.050781 1.152344.125 1" +
+ ".714844zm0 0'/><path d='m57.953125 3.363281 4.472656 19-4.183593 2" +
+ ".269531c9.007812 1.988282 15.382812 10.316407 14.554687 19.664063-" +
+ ".804687 9.132813-8.207031 16.128906-17.148437 16.824219l10.453124 12" +
+ ".335937 17.75 1.539063c4.113282.355468 7.742188-2.660156 8.101563-6" +
+ ".734375l3.910156-44.265625c.363281-4.074219-2.683593-7.667969-6" +
+ ".796875-8.023438l-13.660156-1.183594-1.480469-5.226562c-.832031-2" +
+ ".96875-3.441406-5.113281-6.546875-5.382812zm0 0'/></g></svg>";
// The width and height cannot be embedded in the SVG above because the