Skip to content
Permalink
Browse files

Add icons for lastRectArea #150

  • Loading branch information...
DamirPorobic committed Sep 25, 2019
1 parent db715c4 commit f92ff5fd9330bef1521175d099cd482072304157
Showing with 171 additions and 1 deletion.
  1. +84 −0 icons/dark/lastRect.svg
  2. +2 −0 icons/ksnip_icons.qrc
  3. +84 −0 icons/light/lastRect.svg
  4. +1 −1 src/widgets/CaptureModePicker.cpp
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<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 500 500"
id="svg6519"
version="1.1"
inkscape:version="0.92.2 5c3e80d, 2017-08-06"
sodipodi:docname="lastRect.svg"
inkscape:export-filename="/home/dporobic/projects/ksnip/icons/drawRect_small.png"
inkscape:export-xdpi="2.8800001"
inkscape:export-ydpi="2.8800001">
<defs
id="defs6521" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.846"
inkscape:cx="-536.57425"
inkscape:cy="200.87501"
inkscape:document-units="px"
inkscape:current-layer="text10"
showgrid="false"
units="px"
inkscape:window-width="2560"
inkscape:window-height="1359"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:snap-global="false" />
<metadata
id="metadata6524">
<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 />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-552.3622)">
<g
transform="scale(1.081092,0.92499068)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:669.12988281px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:16.72824669"
id="text10">
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:0px;word-spacing:0px;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;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:#4d4d4d;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:38.51673126;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:64.99999237;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="M 121.79102 37.529297 A 66.24426 68.10435 0 0 1 124.16406 55.554688 A 66.24426 68.10435 0 0 1 122.25586 71.451172 L 312.64648 71.451172 L 312.64648 201.35938 L 351.20898 201.35938 L 351.20898 37.529297 L 121.79102 37.529297 z M 37.476562 120.29102 L 37.476562 338.62891 L 207.69141 338.62891 L 207.69141 304.70898 L 76.039062 304.70898 L 76.039062 121.04102 A 66.24426 68.10435 0 0 1 57.919922 123.66016 A 66.24426 68.10435 0 0 1 37.476562 120.29102 z "
transform="matrix(0.92499066,0,0,1.081092,0,597.15434)"
id="rect4430" />
<ellipse
style="opacity:1;fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:10;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:6.69999981;stroke-dasharray:none;stroke-dashoffset:64.99999237;stroke-opacity:1"
id="path4148"
cx="53.588238"
cy="660.05908"
rx="33.624138"
ry="40.402012" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;white-space:normal;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:#4d4d4d;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:30.53725243;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:6.69999981;stroke-dasharray:none;stroke-dashoffset:64.99999237;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 242.9916,862.46988 a 12.706775,14.851169 0 0 0 -12.70548,14.8497 v 205.11072 12.7918 14.8495 h 12.70548 19.2918 167.14732 a 12.706775,14.851169 0 0 0 12.70548,-14.8495 v -207.71147 -10.19105 -14.8497 h -12.70548 -12.61445 -24.9577 v 84.55001 H 273.05153 v -84.55001 z m 92.78464,0 v 63.46511 h 34.62609 v -63.46511 z m 14.21252,119.0519 h 59.81088 v 11.73747 a 12.825383,12.864786 0 0 1 0.0635,1.16607 v 68.42248 a 12.825383,12.864786 0 0 1 -12.82409,12.8638 H 285.37088 a 12.825383,12.864786 0 0 1 -0.87534,-0.043 h -11.94783 v -12.7938 a 12.825383,12.864786 0 0 1 -10e-4,-0.027 v -68.42241 a 12.825383,12.864786 0 0 1 12.82411,-12.86354 h 64.61795 v -0.0401 z"
id="rect4160"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>
@@ -13,6 +13,7 @@
<file>light/redo.svg</file>
<file>light/currentScreen.svg</file>
<file>light/drawRect.svg</file>
<file>light/lastRect.svg</file>
<file>light/activeWindow.svg</file>
<file>light/windowUnderCursor.svg</file>
<file>light/fullScreen.svg</file>
@@ -28,6 +29,7 @@
<file>dark/redo.svg</file>
<file>dark/currentScreen.svg</file>
<file>dark/drawRect.svg</file>
<file>dark/lastRect.svg</file>
<file>dark/activeWindow.svg</file>
<file>dark/windowUnderCursor.svg</file>
<file>dark/fullScreen.svg</file>
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<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 500 500"
id="svg6519"
version="1.1"
inkscape:version="0.92.2 5c3e80d, 2017-08-06"
sodipodi:docname="lastRect.svg"
inkscape:export-filename="/home/dporobic/projects/ksnip/icons/drawRect_small.png"
inkscape:export-xdpi="2.8800001"
inkscape:export-ydpi="2.8800001">
<defs
id="defs6521" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.846"
inkscape:cx="220.51795"
inkscape:cy="252.88447"
inkscape:document-units="px"
inkscape:current-layer="text10"
showgrid="false"
units="px"
inkscape:window-width="2560"
inkscape:window-height="1359"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:snap-global="false" />
<metadata
id="metadata6524">
<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 />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-552.3622)">
<g
transform="scale(1.081092,0.92499068)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:669.12988281px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:16.72824669"
id="text10">
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:0px;word-spacing:0px;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;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:#e6e6e6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:38.51673126;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:64.99999237;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="M 121.79102 37.529297 A 66.24426 68.10435 0 0 1 124.16406 55.554688 A 66.24426 68.10435 0 0 1 122.25586 71.451172 L 312.64648 71.451172 L 312.64648 201.35938 L 351.20898 201.35938 L 351.20898 37.529297 L 121.79102 37.529297 z M 37.476562 120.29102 L 37.476562 338.62891 L 207.69141 338.62891 L 207.69141 304.70898 L 76.039062 304.70898 L 76.039062 121.04102 A 66.24426 68.10435 0 0 1 57.919922 123.66016 A 66.24426 68.10435 0 0 1 37.476562 120.29102 z "
transform="matrix(0.92499066,0,0,1.081092,0,597.15434)"
id="rect4430" />
<ellipse
style="opacity:1;fill:#e6e6e6;fill-opacity:1;stroke:none;stroke-width:10;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:6.69999981;stroke-dasharray:none;stroke-dashoffset:64.99999237;stroke-opacity:1"
id="path4148"
cx="53.588238"
cy="660.05908"
rx="33.624138"
ry="40.402012" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;white-space:normal;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:#e6e6e6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:30.53725243;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:6.69999981;stroke-dasharray:none;stroke-dashoffset:64.99999237;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 242.9916,862.46988 a 12.706775,14.851169 0 0 0 -12.70548,14.8497 v 205.11072 12.7918 14.8495 h 12.70548 19.2918 167.14732 a 12.706775,14.851169 0 0 0 12.70548,-14.8495 v -207.71147 -10.19105 -14.8497 h -12.70548 -12.61445 -24.9577 v 84.55001 H 273.05153 v -84.55001 z m 92.78464,0 v 63.46511 h 34.62609 v -63.46511 z m 14.21252,119.0519 h 59.81088 v 11.73747 a 12.825383,12.864786 0 0 1 0.0635,1.16607 v 68.42248 a 12.825383,12.864786 0 0 1 -12.82409,12.8638 H 285.37088 a 12.825383,12.864786 0 0 1 -0.87534,-0.043 h -11.94783 v -12.7938 a 12.825383,12.864786 0 0 1 -10e-4,-0.027 v -68.42241 a 12.825383,12.864786 0 0 1 12.82411,-12.86354 h 64.61795 v -0.0401 z"
id="rect4160"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>
@@ -59,7 +59,7 @@ void CaptureModePicker::init(const QList<CaptureModes> &captureModes)
auto action = createAction(
tr("Last Rectangular Area"),
tr("Capture a screenshot of the last selected rectangular area"),
QStringLiteral("drawRect.svg"),
QStringLiteral("lastRect.svg"),
CaptureModes::LastRectArea,
QKeySequence(Qt::SHIFT + Qt::Key_L));
menu->addAction(action);

0 comments on commit f92ff5f

Please sign in to comment.
You can’t perform that action at this time.