[PATCH 3/4] Tweak DiskOverview spacing a little bit (#1014671).

Chris Lumens clumens at redhat.com
Wed Jan 8 21:22:11 UTC 2014


With the extra options on the storage spoke, DiskOverview icons need to be
smaller.  However, that then requires shrinking the spacing so the words
don't look so dumb next to the smaller icon.

We then also need to make the checkmark icon larger so it doesn't get scaled
down to some tiny thing on the disk icon, and make its check white instead of
transparent so it shows up better.
---
 widgets/data/pixmaps/anaconda-selected-icon.svg | 65 +++++++++++++------------
 widgets/src/DiskOverview.c                      |  4 +-
 2 files changed, 37 insertions(+), 32 deletions(-)

diff --git a/widgets/data/pixmaps/anaconda-selected-icon.svg b/widgets/data/pixmaps/anaconda-selected-icon.svg
index 32c90fd..e2faa03 100644
--- a/widgets/data/pixmaps/anaconda-selected-icon.svg
+++ b/widgets/data/pixmaps/anaconda-selected-icon.svg
@@ -10,11 +10,11 @@
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    id="svg7384"
-   sodipodi:docname="anaconda-selected-icon.svg"
+   sodipodi:docname="emblem-default-symbolic_b-on-w.svg"
    version="1.1"
-   inkscape:version="0.48+devel r11963"
-   height="16"
-   width="16">
+   inkscape:version="0.48.4 r9939"
+   height="32.20126"
+   width="32">
   <metadata
      id="metadata90">
     <rdf:RDF>
@@ -28,14 +28,14 @@
     </rdf:RDF>
   </metadata>
   <sodipodi:namedview
-     inkscape:cy="6.5413406"
-     pagecolor="#ffffff"
+     inkscape:cy="28.803581"
+     pagecolor="#555753"
      borderopacity="1"
-     showborder="true"
+     showborder="false"
      inkscape:bbox-paths="false"
      guidetolerance="10"
      inkscape:object-paths="true"
-     inkscape:window-width="1145"
+     inkscape:window-width="1279"
      showguides="true"
      inkscape:object-nodes="true"
      inkscape:snap-bbox="true"
@@ -47,19 +47,22 @@
      id="namedview88"
      showgrid="false"
      inkscape:window-maximized="0"
-     inkscape:window-x="201"
+     inkscape:window-x="3840"
      inkscape:snap-global="true"
-     inkscape:window-y="27"
+     inkscape:window-y="0"
      gridtolerance="10"
-     inkscape:window-height="709"
+     inkscape:window-height="1402"
      inkscape:snap-to-guides="true"
      inkscape:current-layer="layer15"
      inkscape:snap-bbox-midpoints="false"
-     inkscape:zoom="16"
-     inkscape:cx="6.9516857"
+     inkscape:zoom="11.313708"
+     inkscape:cx="7.2014857"
      inkscape:snap-grids="true"
-     inkscape:pageopacity="0"
-     borderlayer="true">
+     inkscape:pageopacity="1"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0">
     <inkscape:grid
        spacingx="1px"
        spacingy="1px"
@@ -68,7 +71,9 @@
        enabled="true"
        type="xygrid"
        snapvisiblegridlinesonly="true"
-       visible="true" />
+       visible="true"
+       originx="-1.09395px"
+       originy="-0.99998px" />
   </sodipodi:namedview>
   <title
      id="title9167">Gnome Symbolic Icon Theme</title>
@@ -76,38 +81,38 @@
      id="defs7386" />
   <g
      inkscape:label="status"
-     transform="translate(-482,-381.99998)"
+     transform="translate(-483.09395,-364.79874)"
      inkscape:groupmode="layer"
      id="layer9"
      style="display:inline" />
   <g
      inkscape:label="devices"
-     transform="translate(-482,-381.99998)"
+     transform="translate(-483.09395,-364.79874)"
      inkscape:groupmode="layer"
      id="layer10" />
   <g
      inkscape:label="apps"
-     transform="translate(-482,-381.99998)"
+     transform="translate(-483.09395,-364.79874)"
      inkscape:groupmode="layer"
      id="layer11" />
   <g
      inkscape:label="actions"
-     transform="translate(-482,-381.99998)"
+     transform="translate(-483.09395,-364.79874)"
      inkscape:groupmode="layer"
      id="layer12" />
   <g
      inkscape:label="places"
-     transform="translate(-482,-381.99998)"
+     transform="translate(-483.09395,-364.79874)"
      inkscape:groupmode="layer"
      id="layer13" />
   <g
      inkscape:label="mimetypes"
-     transform="translate(-482,-381.99998)"
+     transform="translate(-483.09395,-364.79874)"
      inkscape:groupmode="layer"
      id="layer14" />
   <g
      inkscape:label="emblems"
-     transform="translate(-482,-381.99998)"
+     transform="translate(-483.09395,-364.79874)"
      inkscape:groupmode="layer"
      id="layer15"
      style="display:inline">
@@ -116,20 +121,20 @@
        transform="translate(135.8093,-581.17812)"
        id="g17779" />
     <path
-       style="color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
-       d="M 11.53125 4.3125 C 11.784964 4.3148534 12.043986 4.3496993 12.28125 4.40625 C 12.035802 4.3478581 11.794428 4.3125 11.53125 4.3125 z M 12.28125 4.40625 C 12.505761 4.4597611 12.733193 4.5282014 12.9375 4.625 C 12.73111 4.5265635 12.508413 4.460292 12.28125 4.40625 z M 13.6875 5.125 C 13.850992 5.2667533 13.991932 5.4225624 14.125 5.59375 C 13.993811 5.4260074 13.847799 5.2645304 13.6875 5.125 z M 14.125 5.59375 L 11.71875 7.90625 L 10.8125 6.90625 L 9.78125 7.90625 L 11.71875 9.84375 L 14.78125 7.09375 C 14.688509 6.5295894 14.461839 6.0244437 14.125 5.59375 z M 14.84375 7.625 C 14.84375 8.544865 14.444846 9.3969938 13.84375 10 C 14.452893 9.395735 14.84375 8.5537662 14.84375 7.625 z "
-       transform="translate(482,381.99998)"
-       id="path1012" />
-    <path
        inkscape:connector-curvature="0"
-       d="m 493.51417,386.30805 c -1.82723,0 -3.30412,1.49216 -3.30412,3.33188 0,1.83973 1.47689,3.33189 3.30412,3.33189 1.82723,0 3.318,-1.49216 3.318,-3.33189 0,-0.18508 -0.0267,-0.36456 -0.0555,-0.54143 l -3.06223,2.74335 -1.92929,-1.93014 1.01176,-0.99284 0.91795,0.98022 2.40931,-2.31382 C 495.51856,386.80617 494.57294,386.30805 493.51417,386.30805 Z"
+       d="m 499.06041,364.79874 c -8.82972,0 -15.96646,7.21055 -15.96646,16.10063 0,8.89008 7.13674,16.10063 15.96646,16.10063 8.8297,0 16.03354,-7.21055 16.03354,-16.10063 0,-0.89439 -0.12904,-1.76166 -0.26835,-2.61635 l -14.79756,13.25664 -9.32289,-9.32701 4.8891,-4.79769 4.43584,4.73672 11.64248,-11.18104 c -2.92636,-3.76483 -7.49586,-6.1719 -12.61216,-6.1719 z"
        id="path74"
        sodipodi:nodetypes="ssssccccccs"
        style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;display:inline" />
+    <path
+       style="fill:#ffffff;stroke:none"
+       d="m 511.71875,370.93748 -0.0312,0.0312 -11.59375,11.125 -0.0625,0.0625 -4.4375,-4.75 -4.84375,4.78125 9.3125,9.3125 14.75,-13.21875 c 0.002,0.0102 -0.002,0.021 0,0.0312 l 0.125,-0.0937 c -0.45853,-2.7164 -1.57856,-5.20692 -3.21875,-7.28125 z"
+       id="path8950"
+       inkscape:connector-curvature="0" />
   </g>
   <g
      inkscape:label="categories"
-     transform="translate(-482,-381.99998)"
+     transform="translate(-483.09395,-364.79874)"
      inkscape:groupmode="layer"
      id="g4953"
      style="display:inline" />
diff --git a/widgets/src/DiskOverview.c b/widgets/src/DiskOverview.c
index aa39538..7e00482 100644
--- a/widgets/src/DiskOverview.c
+++ b/widgets/src/DiskOverview.c
@@ -57,7 +57,7 @@ enum {
 #define DEFAULT_NAME          ""
 #define DEFAULT_POPUP_INFO    ""
 
-#define ICON_SIZE             128
+#define ICON_SIZE             48
 
 struct _AnacondaDiskOverviewPrivate {
     GtkWidget *grid;
@@ -278,7 +278,7 @@ static void anaconda_disk_overview_init(AnacondaDiskOverview *widget) {
 
     /* Create the grid. */
     widget->priv->grid = gtk_grid_new();
-    gtk_grid_set_row_spacing(GTK_GRID(widget->priv->grid), 6);
+    gtk_grid_set_row_spacing(GTK_GRID(widget->priv->grid), 2);
     gtk_grid_set_column_spacing(GTK_GRID(widget->priv->grid), 6);
     gtk_container_set_border_width(GTK_CONTAINER(widget->priv->grid), 6);
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list