From: tweenk Date: Mon, 13 Apr 2009 23:42:51 +0000 (+0000) Subject: Really fix node alignment icons; add clarifying comment to source. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d8f25371336c6fd5c5856deff69ab493669ca108;p=inkscape.git Really fix node alignment icons; add clarifying comment to source. --- diff --git a/share/icons/hicolor/16x16/actions/align-horizontal-node.png b/share/icons/hicolor/16x16/actions/align-horizontal-node.png index 173fd1830..8b82d9262 100644 Binary files a/share/icons/hicolor/16x16/actions/align-horizontal-node.png and b/share/icons/hicolor/16x16/actions/align-horizontal-node.png differ diff --git a/share/icons/hicolor/16x16/actions/align-vertical-node.png b/share/icons/hicolor/16x16/actions/align-vertical-node.png index 8b82d9262..173fd1830 100644 Binary files a/share/icons/hicolor/16x16/actions/align-vertical-node.png and b/share/icons/hicolor/16x16/actions/align-vertical-node.png differ diff --git a/share/icons/hicolor/24x24/actions/align-horizontal-node.png b/share/icons/hicolor/24x24/actions/align-horizontal-node.png index 8aa9ba36e..303fb06aa 100644 Binary files a/share/icons/hicolor/24x24/actions/align-horizontal-node.png and b/share/icons/hicolor/24x24/actions/align-horizontal-node.png differ diff --git a/share/icons/hicolor/24x24/actions/align-vertical-node.png b/share/icons/hicolor/24x24/actions/align-vertical-node.png index 303fb06aa..8aa9ba36e 100644 Binary files a/share/icons/hicolor/24x24/actions/align-vertical-node.png and b/share/icons/hicolor/24x24/actions/align-vertical-node.png differ diff --git a/share/icons/hicolor/scalable/actions/align-horizontal-node.svg b/share/icons/hicolor/scalable/actions/align-horizontal-node.svg index df4980b17..7c37e1533 100644 --- a/share/icons/hicolor/scalable/actions/align-horizontal-node.svg +++ b/share/icons/hicolor/scalable/actions/align-horizontal-node.svg @@ -6,6 +6,7 @@ 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="48px" @@ -13,7 +14,7 @@ id="svg12119" sodipodi:version="0.32" inkscape:version="0.46+devel r20659" - sodipodi:docname="node-align-vertical.svg" + sodipodi:docname="node-align-horizontal.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape"> @@ -52,47 +53,41 @@ inkscape:label="Layer 1" inkscape:groupmode="layer"> + id="node_valign" + inkscape:label="#node_valign" + transform="matrix(1.9995417,0,0,1.9995417,-2349.4501,-279.92484)"> - + d="m 1186.5,140.5008 0,22.9992 0,0" + id="path5262" /> - - + id="rect5251" + style="color:#000000;fill:#8ab3de;fill-opacity:1;fill-rule:evenodd;stroke:#0000ff;stroke-width:0.9999997;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:0;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;display:inline" /> + + diff --git a/share/icons/hicolor/scalable/actions/align-vertical-node.svg b/share/icons/hicolor/scalable/actions/align-vertical-node.svg index 7c37e1533..df4980b17 100644 --- a/share/icons/hicolor/scalable/actions/align-vertical-node.svg +++ b/share/icons/hicolor/scalable/actions/align-vertical-node.svg @@ -6,7 +6,6 @@ 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="48px" @@ -14,7 +13,7 @@ id="svg12119" sodipodi:version="0.32" inkscape:version="0.46+devel r20659" - sodipodi:docname="node-align-horizontal.svg" + sodipodi:docname="node-align-vertical.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape"> @@ -53,41 +52,47 @@ inkscape:label="Layer 1" inkscape:groupmode="layer"> + id="node_halign" + transform="matrix(1.9995416,0,0,1.9995416,-2349.4554,-279.93061)" + inkscape:label="#node_halign"> + d="m 1175.498,152.4972 22.999,0 0,0" + id="path5318" /> + + - - + height="4.0071669" + x="1183.5219" + y="150.50192" /> + diff --git a/src/ui/dialog/align-and-distribute.cpp b/src/ui/dialog/align-and-distribute.cpp index 09fe89cff..a39a09628 100644 --- a/src/ui/dialog/align-and-distribute.cpp +++ b/src/ui/dialog/align-and-distribute.cpp @@ -892,12 +892,15 @@ AlignAndDistribute::AlignAndDistribute() 0, 0); //Node Mode buttons + // NOTE: "align nodes vertically" means "move nodes vertically until they align on a common + // _horizontal_ line". This is analogous to what the "align-vertical-center" means. + // There is no doubt some ambiguity. For this reason the descriptions are different. addNodeButton(INKSCAPE_ICON_ALIGN_HORIZONTAL_NODES, - _("Align selected nodes horizontally"), - 0, Geom::X, false); + _("Align selected nodes to a common vertical line"), + 0, Geom::Y, false); addNodeButton(INKSCAPE_ICON_ALIGN_VERTICAL_NODES, - _("Align selected nodes vertically"), - 1, Geom::Y, false); + _("Align selected nodes to a common horizontal line"), + 1, Geom::X, false); addNodeButton(INKSCAPE_ICON_DISTRIBUTE_HORIZONTAL_NODE, _("Distribute selected nodes horizontally"), 2, Geom::X, true);