Changeset 13369 in josm


Ignore:
Timestamp:
2018-01-30T18:48:26+01:00 (4 months ago)
Author:
stoecker
Message:

see #15734 - fix two icons by simply cutting the size. The circle is no longer prefectly round, but this produces best looking results with josm :-), add statusline image resizing

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/images/statusline/easting.svg

    r13363 r13369  
    88   x="0px"
    99   version="1.1"
    10    viewBox="0 0 57.207973 57.207977">
     10   viewBox="0 0 57 57">
    1111  <path
    1212     d="m 57.207975,44.718375 c -0.326767,2.150585 -1.072757,4.232611 -2.273437,6.048828 -2.332967,3.594441 -6.375712,6.019576 -10.646485,6.369141 -4.073192,0.433157 -8.236189,-1.124467 -11.154297,-3.958984 -2.416559,-2.325367 -3.937544,-5.540674 -4.287109,-8.869141 -1.398982,-0.0048 -2.799993,-7.06e-4 -4.199219,-0.002 l 0,-0.002 c -4.0043,-7.89e-4 -8.2883,-7.17e-4 -11.742188,0 l 0,-21.65625 -0.0078,0 c -4.36e-4,-3.023387 0.0054,-6.046714 -0.002,-9.070313 -0.881513,0.828312 -1.655138,1.746149 -2.589844,2.513672 -0.3571646,0.334367 -0.9133986,0.48057 -1.3769526,0.275391 -0.49395,-0.20518 -0.85025,-0.716101 -0.873047,-1.248047 0.0228,-0.592741 0.462474,-1.069896 0.865235,-1.472656 1.3450636,-1.314668 2.6757776,-2.652768 3.9980456,-3.9902351 0.425558,-0.410359 0.965607,-0.928048 1.619141,-0.730468 0.455955,0.06079 0.76677,0.449509 1.085937,0.738281 1.360265,1.3754621 2.728267,2.7432521 4.111329,4.1035151 0.410359,0.425558 0.928048,0.965607 0.730468,1.619141 -0.144386,0.881512 -1.330806,1.398282 -2.052734,0.835938 -0.972703,-0.851115 -1.823319,-1.831379 -2.765625,-2.712891 -0.0152,9.377462 -2.24e-4,18.753396 -0.0078,28.130859 4.39996,0 8.807071,0.0093 13.207031,-0.0059 0.151985,-1.056295 0.318616,-2.122113 0.675781,-3.132812 1.246275,-3.769225 4.120369,-6.991198 7.783203,-8.556641 3.944004,-1.816083 8.746851,-1.594662 12.531273,0.525526 4.019998,2.112588 6.755556,6.283599 7.371094,10.751953 z m -2.648437,-2.382812 c -0.115117,-2.629396 -1.216026,-5.202553 -2.998047,-7.13086 -2.256974,-2.545746 -5.708396,-3.951699 -9.097657,-3.761718 -3.670433,0.144386 -7.18762,2.21201 -9.140625,5.3125 -0.949905,1.459055 -1.550253,3.146279 -1.740234,4.878906 3.731227,0.0076 7.469945,0.0152 11.201172,0 -0.790321,-0.835917 -1.633721,-1.618949 -2.431641,-2.447266 -0.212779,-0.265973 -0.502167,-0.547557 -0.509766,-0.919922 -0.113989,-0.759923 0.539758,-1.566226 1.330079,-1.490234 0.49395,-0.113988 0.84294,0.297167 1.162109,0.585938 1.550245,1.565443 3.115984,3.115984 4.673828,4.673828 0.455955,0.40276 0.539905,1.169472 0.152344,1.640625 -0.341966,0.463554 -0.774975,0.843547 -1.177734,1.253906 -1.223479,1.208279 -2.43256,2.432561 -3.648438,3.648437 -0.326768,0.288771 -0.683357,0.644778 -1.162109,0.583985 -0.661134,0.0304 -1.284483,-0.508789 -1.330079,-1.169922 -0.08359,-0.478753 0.175399,-0.919326 0.509766,-1.246094 0.805519,-0.820718 1.641533,-1.611136 2.439453,-2.439453 -3.746425,-0.0228 -7.485783,-0.0078 -11.224609,-0.0078 0.448356,3.921208 3.040324,7.508528 6.634766,9.134765 1.48185,0.691531 3.113256,1.050204 4.748046,1.064453 1.634785,0.01425 3.272374,-0.315961 4.765625,-0.996093 3.921208,-1.694631 6.740841,-5.745492 6.832032,-10.039063 0.0247,-0.376162 0.02816,-0.753278 0.01172,-1.128906 z"
  • trunk/images/statusline/northing.svg

    r13363 r13369  
    88   x="0px"
    99   version="1.1"
    10    viewBox="0 0 57.207973 57.207977">
     10   viewBox="0 0 57 57">
    1111  <path
    1212     id="path3386"
  • trunk/src/org/openstreetmap/josm/gui/widgets/ImageLabel.java

    r10191 r13369  
    1111import org.openstreetmap.josm.tools.GBC;
    1212import org.openstreetmap.josm.tools.ImageProvider;
     13import org.openstreetmap.josm.tools.ImageProvider.ImageSizes;
    1314
    1415/**
     
    5253     */
    5354    public void setIcon(String img) {
    54         imgLabel.setIcon(ImageProvider.get("statusline/" + img));
     55        imgLabel.setIcon(ImageProvider.get("statusline/", img, ImageSizes.STATUSLINE));
    5556    }
    5657
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r13356 r13369  
    172172         * @since 10358
    173173         */
    174         ABOUT_LOGO(256, 258);
     174        ABOUT_LOGO(256, 258),
     175        /**
     176         * Status line logo size
     177         * @since 13369
     178         */
     179        STATUSLINE(18, 18);
    175180
    176181        private final int virtualWidth;
Note: See TracChangeset for help on using the changeset viewer.