diff options
| author | WizardOhio24 <rdmenzies2000@gmail.com> | 2019-01-26 12:34:38 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-02-11 10:43:57 +0000 |
| commit | eca63dcdbc425e44e353e93e8760a69e9b1f2d83 (patch) | |
| tree | a0543f620fe961b6a86aba36cc82a7e44fb40d12 /share | |
| parent | Bundle python-numpy and python-scour (diff) | |
| download | inkscape-eca63dcdbc425e44e353e93e8760a69e9b1f2d83.tar.gz inkscape-eca63dcdbc425e44e353e93e8760a69e9b1f2d83.zip | |
Added Feature: Recenter page in window, Ctrl+4 shortcut
Diffstat (limited to 'share')
| -rw-r--r-- | share/icons/hicolor/scalable/actions/zoom-center-page.svg | 187 | ||||
| -rw-r--r-- | share/icons/hicolor/symbolic/actions/zoom-center-page-symbolic.svg | 141 | ||||
| -rw-r--r-- | share/keys/inkscape.xml | 3 | ||||
| -rw-r--r-- | share/ui/commands-toolbar.ui | 1 | ||||
| -rw-r--r-- | share/ui/menus.xml | 1 |
5 files changed, 333 insertions, 0 deletions
diff --git a/share/icons/hicolor/scalable/actions/zoom-center-page.svg b/share/icons/hicolor/scalable/actions/zoom-center-page.svg new file mode 100644 index 000000000..ae095a3cb --- /dev/null +++ b/share/icons/hicolor/scalable/actions/zoom-center-page.svg @@ -0,0 +1,187 @@ +<?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:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="16" + height="16" + viewBox="0 0 4.2333332 4.2333335" + version="1.1" + id="svg8" + inkscape:version="0.92.3 (2405546, 2018-03-11)" + sodipodi:docname="CentrePage.svg"> + <defs + id="defs2"> + <linearGradient + inkscape:collect="always" + id="linearGradient881"> + <stop + style="stop-color:#fefefe;stop-opacity:1;" + offset="0" + id="stop877" /> + <stop + style="stop-color:#cccccc;stop-opacity:1" + offset="1" + id="stop879" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + id="linearGradient873"> + <stop + style="stop-color:#7c7c7c;stop-opacity:1" + offset="0" + id="stop869" /> + <stop + style="stop-color:#000000;stop-opacity:1" + offset="1" + id="stop871" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient873" + id="linearGradient875" + x1="-267.14346" + y1="99.000046" + x2="-194.26711" + y2="171.87631" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.01740004,0,0,0.01740004,6.0513851,291.94311)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient881" + id="linearGradient883" + x1="-260.81458" + y1="142.38321" + x2="-181.90111" + y2="221.29668" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.01740004,0,0,0.01740004,6.0513851,291.94311)" /> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="31.678384" + inkscape:cx="7.2355712" + inkscape:cy="5.6774657" + inkscape:document-units="mm" + inkscape:current-layer="layer1" + showgrid="false" + units="px" + inkscape:window-width="1920" + inkscape:window-height="986" + inkscape:window-x="-11" + inkscape:window-y="-11" + inkscape:window-maximized="1" /> + <metadata + id="metadata5"> + <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> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(0,-292.76665)"> + <rect + y="293.36209" + x="1.1517707" + height="3.012177" + width="1.959888" + id="rect843" + style="opacity:1;fill:url(#linearGradient883);fill-opacity:1;stroke:url(#linearGradient875);stroke-width:0.07943123;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /> + <g + id="g849" + transform="matrix(0.01740004,0,0,0.01740004,0.3033617,291.94311)"> + <rect + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + id="rect845" + width="18.007357" + height="38.175594" + x="16.252975" + y="49.80357" /> + <rect + y="-54.428566" + x="49.80357" + height="38.175594" + width="18.007357" + id="rect847" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + transform="rotate(90)" /> + </g> + <g + transform="matrix(0,0.01740004,-0.01740004,0,4.5418462,292.5269)" + id="g855"> + <rect + y="49.80357" + x="16.252975" + height="38.175594" + width="18.007357" + id="rect851" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /> + <rect + transform="rotate(90)" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + id="rect853" + width="18.007357" + height="38.175594" + x="49.80357" + y="-54.428566" /> + </g> + <g + transform="matrix(-0.01740004,0,0,-0.01740004,3.9580639,297.79994)" + id="g861"> + <rect + y="49.80357" + x="16.252975" + height="38.175594" + width="18.007357" + id="rect857" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /> + <rect + transform="rotate(90)" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + id="rect859" + width="18.007357" + height="38.175594" + x="49.80357" + y="-54.428566" /> + </g> + <g + id="g867" + transform="matrix(0,-0.01740004,0.01740004,0,-0.28042019,297.21615)"> + <rect + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + id="rect863" + width="18.007357" + height="38.175594" + x="16.252975" + y="49.80357" /> + <rect + y="-54.428566" + x="49.80357" + height="38.175594" + width="18.007357" + id="rect865" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + transform="rotate(90)" /> + </g> + </g> +</svg> diff --git a/share/icons/hicolor/symbolic/actions/zoom-center-page-symbolic.svg b/share/icons/hicolor/symbolic/actions/zoom-center-page-symbolic.svg new file mode 100644 index 000000000..3ad75ee2a --- /dev/null +++ b/share/icons/hicolor/symbolic/actions/zoom-center-page-symbolic.svg @@ -0,0 +1,141 @@ +<?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="16" + height="16" + viewBox="0 0 4.2333332 4.2333335" + version="1.1" + id="svg8" + inkscape:version="0.92.3 (2405546, 2018-03-11)" + sodipodi:docname="CentrePage-symbolic.svg"> + <defs + id="defs2" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="31.678384" + inkscape:cx="7.2355712" + inkscape:cy="5.6774657" + inkscape:document-units="mm" + inkscape:current-layer="layer1" + showgrid="false" + units="px" + inkscape:window-width="1920" + inkscape:window-height="986" + inkscape:window-x="-11" + inkscape:window-y="-11" + inkscape:window-maximized="1" /> + <metadata + id="metadata5"> + <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> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(0,-292.76665)"> + <rect + y="293.36209" + x="1.1517707" + height="3.012177" + width="1.959888" + id="rect843" + style="opacity:1;fill:#fefefe;fill-opacity:1;stroke:#040404;stroke-width:0.07943123;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /> + <g + id="g849" + transform="matrix(0.01740004,0,0,0.01740004,0.3033617,291.94311)"> + <rect + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + id="rect845" + width="18.007357" + height="38.175594" + x="16.252975" + y="49.80357" /> + <rect + y="-54.428566" + x="49.80357" + height="38.175594" + width="18.007357" + id="rect847" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + transform="rotate(90)" /> + </g> + <g + transform="matrix(0,0.01740004,-0.01740004,0,4.5418462,292.5269)" + id="g855"> + <rect + y="49.80357" + x="16.252975" + height="38.175594" + width="18.007357" + id="rect851" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /> + <rect + transform="rotate(90)" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + id="rect853" + width="18.007357" + height="38.175594" + x="49.80357" + y="-54.428566" /> + </g> + <g + transform="matrix(-0.01740004,0,0,-0.01740004,3.9580639,297.79994)" + id="g861"> + <rect + y="49.80357" + x="16.252975" + height="38.175594" + width="18.007357" + id="rect857" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /> + <rect + transform="rotate(90)" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + id="rect859" + width="18.007357" + height="38.175594" + x="49.80357" + y="-54.428566" /> + </g> + <g + id="g867" + transform="matrix(0,-0.01740004,0.01740004,0,-0.28042019,297.21615)"> + <rect + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + id="rect863" + width="18.007357" + height="38.175594" + x="16.252975" + y="49.80357" /> + <rect + y="-54.428566" + x="49.80357" + height="38.175594" + width="18.007357" + id="rect865" + style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.86499977;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" + transform="rotate(90)" /> + </g> + </g> +</svg> diff --git a/share/keys/inkscape.xml b/share/keys/inkscape.xml index 7b674b04e..6a24e5bcd 100644 --- a/share/keys/inkscape.xml +++ b/share/keys/inkscape.xml @@ -226,6 +226,9 @@ override) the bindings in the main default.xml. <bind key="4" action="ZoomDrawing" display="true" /> <bind key="4" modifiers="Shift" action="ZoomDrawing" /> <bind key="KP_4" action="ZoomDrawing" /> + <bind key="4" modifiers="Primary" action="ZoomCenterPage" display="true"/> + <bind key="4" modifiers="Primary" action="ZoomCenterPage" /> + <bind key="KP_4" modifiers="Primary" action="ZoomCenterPage" /> <bind key="5" action="ZoomPage" display="true" /> <bind key="5" modifiers="Shift" action="ZoomPage" /> <bind key="KP_5" action="ZoomPage" /> diff --git a/share/ui/commands-toolbar.ui b/share/ui/commands-toolbar.ui index c2b1ed965..f060e8e9d 100644 --- a/share/ui/commands-toolbar.ui +++ b/share/ui/commands-toolbar.ui @@ -18,6 +18,7 @@ <toolitem action='ZoomSelection' /> <toolitem action='ZoomDrawing' /> <toolitem action='ZoomPage' /> + <toolitem action='ZoomCenterPage' /> <separator /> <toolitem action='EditDuplicate' /> <toolitem action='EditClone' /> diff --git a/share/ui/menus.xml b/share/ui/menus.xml index 03f3ad8f7..82cd8fe95 100644 --- a/share/ui/menus.xml +++ b/share/ui/menus.xml @@ -99,6 +99,7 @@ <verb verb-id="ZoomDrawing" /> <verb verb-id="ZoomPage" /> <verb verb-id="ZoomPageWidth" /> + <verb verb-id="ZoomCenterPage" /> <separator/> <verb verb-id="ZoomPrev" /> <verb verb-id="ZoomNext" /> |
