Commit 42e96693 authored by Laureline Nevin's avatar Laureline Nevin ⌨️
Browse files

Improved buttons for export window fit-to-view and fit-to-image

parent 57d71e12
Loading
Loading
Loading
Loading
+2 −2
Changes for index.html: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -129,8 +129,8 @@
                <div><label><input type="radio" name="lock-end" value="end" v-model="exportParams.lockedDim">🔒</label>
                </div>
            </div>
            <span><button v-icon="zoom-fit" @click="fn.setExportParams('view')"></button> To view</span>
            <span><button v-icon="zoom-fit" @click="fn.setExportParams('full')"></button> To full</span>
            <span><button class="btn-dark btn-icon" v-icon="zoom-fit" @click="fn.setExportParams('view')"></button> Set to current view</span>
            <span><button class="btn-dark btn-icon" v-icon="zoom-fit" @click="fn.setExportParams('full')"></button> Set to full image</span>
        </div>
        <span v-show="phase === 'render' || phase === 'export'">
            <button id="button-export" class="btn-dark btn-icon" @click="fn.exportImage" v-icon="export"></button>
+21 −2
Changes for public/icons.svg: 21 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -138,8 +138,8 @@
         style="fill:none;stroke:currentColor">
        <path
           id="path8239"
           style="stroke-width:16;stroke-linecap:round"
           d="m 104,24 -80,80 m 0,-80 80,80" />
           style="stroke-width:32;stroke-linecap:round"
           d="m 112,16 -96,96 m 0,-96 96,96"/>
      </g>
    </g>
    <g
@@ -161,5 +161,24 @@
           d="M 93.482422,58.962891 A 34.51807,34.51807 0 0 0 58.962891,93.482422 34.51807,34.51807 0 0 0 93.482422,128 34.51807,34.51807 0 0 0 128,93.482422 34.51807,34.51807 0 0 0 93.482422,58.962891 Z m 0,7.96289 a 5,5 0 0 1 5,5 v 31.029299 l 3.330078,-3.335939 a 5,5 0 0 1 7.07227,-0.0059 5,5 0 0 1 0.006,7.070309 l -11.871089,11.88868 a 5,5 0 0 1 -1.246093,0.51757 5.0005,5.0005 0 0 1 -1.048829,0.43555 5,5 0 0 1 -4.77539,-0.94922 5,5 0 0 1 -0.002,-0.004 5.0005,5.0005 0 0 1 -0.0039,0 l -11.86914,-11.88868 a 5,5 0 0 1 0.0059,-7.070309 5,5 0 0 1 7.070313,0.0059 l 3.332031,3.337889 V 71.925781 a 5,5 0 0 1 5,-5 z" />
      </g>
    </g>
      <g
              id="g1288"
              transform="translate(256,128)"/>
      <g
              id="g1378"
              transform="translate(256,128)">
          <g
                  id="expand"
                  style="fill:none;stroke:currentColor;stroke-width:16;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
              <path
                      id="path1372"
                      d="m 119.99999,82.666661 v 0 37.333329 H 82.666653 M 45.33335,8.0000002 H 8.000013 V 45.333333 m 0,-37.3333328 L 119.99999,119.99999"
                      style="stroke-width:16"/>
              <path
                      id="path1374"
                      d="m 82.666653,7.9999974 v 0 l 37.333337,2.8e-6 V 45.333333 M 8.000013,82.666661 8.0000102,119.99999 45.33335,120 M 8.0000102,119.99999 119.99999,8.0000002"
                      style="stroke-width:16"/>
          </g>
      </g>
  </g>
</svg>
+26 −7
Changes for src/icons.inkscape.svg: 26 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -24,18 +24,18 @@
     inkscape:pageopacity="0.0"
     inkscape:pagecheckerboard="true"
     inkscape:document-units="px"
     showgrid="false"
     showgrid="true"
     width="1024px"
     units="px"
     inkscape:zoom="0.57415059"
     inkscape:cx="583.47062"
     inkscape:cy="319.60256"
     inkscape:zoom="1.7923965"
     inkscape:cx="162.35247"
     inkscape:cy="170.4422"
     inkscape:window-width="1916"
     inkscape:window-height="968"
     inkscape:window-x="1920"
     inkscape:window-y="110"
     inkscape:window-maximized="1"
     inkscape:current-layer="export"
     inkscape:current-layer="close"
     showguides="true"
     inkscape:guide-bbox="true"
     inkscape:snap-bbox="true"
@@ -239,8 +239,8 @@
         style="fill:none;stroke:currentColor">
        <path
           id="path8239"
           style="stroke-width:16;stroke-linecap:round"
           d="m 104,24 -80,80 m 0,-80 80,80" />
           style="stroke-width:32;stroke-linecap:round"
           d="m 112,16 -96,96 m 0,-96 96,96"/>
      </g>
    </g>
    <g
@@ -262,5 +262,24 @@
           d="M 93.482422,58.962891 A 34.51807,34.51807 0 0 0 58.962891,93.482422 34.51807,34.51807 0 0 0 93.482422,128 34.51807,34.51807 0 0 0 128,93.482422 34.51807,34.51807 0 0 0 93.482422,58.962891 Z m 0,7.96289 a 5,5 0 0 1 5,5 v 31.029299 l 3.330078,-3.335939 a 5,5 0 0 1 7.07227,-0.0059 5,5 0 0 1 0.006,7.070309 l -11.871089,11.88868 a 5,5 0 0 1 -1.246093,0.51757 5.0005,5.0005 0 0 1 -1.048829,0.43555 5,5 0 0 1 -4.77539,-0.94922 5,5 0 0 1 -0.002,-0.004 5.0005,5.0005 0 0 1 -0.0039,0 l -11.86914,-11.88868 a 5,5 0 0 1 0.0059,-7.070309 5,5 0 0 1 7.070313,0.0059 l 3.332031,3.337889 V 71.925781 a 5,5 0 0 1 5,-5 z" />
      </g>
    </g>
      <g
              id="g1288"
              transform="translate(256,128)"/>
      <g
              id="g1378"
              transform="translate(256,128)">
          <g
                  id="expand"
                  style="fill:none;stroke:currentColor;stroke-width:16;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
              <path
                      id="path1372"
                      d="m 119.99999,82.666661 v 0 37.333329 H 82.666653 M 45.33335,8.0000002 H 8.000013 V 45.333333 m 0,-37.3333328 L 119.99999,119.99999"
                      style="stroke-width:16"/>
              <path
                      id="path1374"
                      d="m 82.666653,7.9999974 v 0 l 37.333337,2.8e-6 V 45.333333 M 8.000013,82.666661 8.0000102,119.99999 45.33335,120 M 8.0000102,119.99999 119.99999,8.0000002"
                      style="stroke-width:16"/>
          </g>
      </g>
  </g>
</svg>
+2 −0
Changes for src/style.sass: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@ body

			input[type=range]
				grid-column: 1 / 3
				margin-bottom: 1rem

	.export-panel
		display: flex
@@ -275,6 +276,7 @@ dialog


.btn
	font-size: inherit
	padding: .4rem
	border: none
	box-shadow: .15rem .15rem 4px 0 rgba(0, 0, 0, 0.5)