Changeset 18743 in josm for trunk


Ignore:
Timestamp:
2023-05-30T22:40:29+02:00 (15 months ago)
Author:
stoecker
Message:

fix icon script and warning in SVG image

Location:
trunk
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/resources/images/presets/misc/avalanche_protection.svg

    r18730 r18743  
    1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
    3 
    4 <svg
    5    width="16"
    6    height="16"
    7    viewBox="0 0 4.2333333 4.2333333"
    8    version="1.1"
    9    id="svg36055"
    10    inkscape:version="1.2.2 (b0a8486, 2022-12-01)"
    11    sodipodi:docname="avalanche_protection.svg"
    12    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    14    xmlns:xlink="http://www.w3.org/1999/xlink"
    15    xmlns="http://www.w3.org/2000/svg"
    16    xmlns:svg="http://www.w3.org/2000/svg">
    17   <sodipodi:namedview
    18      id="namedview36057"
    19      pagecolor="#ffffff"
    20      bordercolor="#666666"
    21      borderopacity="1.0"
    22      inkscape:showpageshadow="2"
    23      inkscape:pageopacity="0.0"
    24      inkscape:pagecheckerboard="0"
    25      inkscape:deskcolor="#d1d1d1"
    26      inkscape:document-units="mm"
    27      showgrid="true"
    28      inkscape:zoom="38.057741"
    29      inkscape:cx="10.497207"
    30      inkscape:cy="9.5775522"
    31      inkscape:window-width="1920"
    32      inkscape:window-height="1027"
    33      inkscape:window-x="0"
    34      inkscape:window-y="25"
    35      inkscape:window-maximized="1"
    36      inkscape:current-layer="svg36055">
    37     <inkscape:grid
    38        type="xygrid"
    39        id="grid36059" />
    40   </sodipodi:namedview>
    41   <defs
    42      id="defs36052">
    43     <linearGradient
    44        inkscape:collect="always"
    45        id="linearGradient36615">
    46       <stop
    47          style="stop-color:#646464;stop-opacity:1;"
    48          offset="0"
    49          id="stop36611" />
    50       <stop
    51          style="stop-color:#ffffff;stop-opacity:0;"
    52          offset="1"
    53          id="stop36613" />
    54     </linearGradient>
    55     <linearGradient
    56        inkscape:collect="always"
    57        xlink:href="#linearGradient36615"
    58        id="linearGradient36617"
    59        x1="2.1166666"
    60        y1="4.2333331"
    61        x2="3.7041667"
    62        y2="0"
    63        gradientUnits="userSpaceOnUse" />
    64   </defs>
    65   <g
    66      id="g37471"
    67      inkscape:label="g37471">
    68     <g
    69        id="g37466">
    70       <rect
    71          style="fill:#784421;stroke:none;stroke-width:0.237;stroke-dasharray:none"
    72          id="rect37440"
    73          width="0.52916664"
    74          height="2.3812499"
    75          x="0.81319994"
    76          y="0.1324237"
    77          transform="rotate(6.3019573)" />
    78       <rect
    79          style="fill:#784421;stroke:none;stroke-width:0.237;stroke-dasharray:none"
    80          id="rect37440-0"
    81          width="0.52916664"
    82          height="2.3812499"
    83          x="2.9461188"
    84          y="0.16306539"
    85          transform="rotate(6.3019573)" />
    86     </g>
    87     <rect
    88        style="stroke:none;stroke-width:0.236087;stroke-dasharray:none"
    89        id="rect36682"
    90        width="4.201272"
    91        height="0.52910423"
    92        x="0.097832456"
    93        y="0.26046646"
    94        transform="matrix(0.9921591,0.12498128,-0.12309514,0.99239487,0,0)" />
    95     <rect
    96        style="stroke:none;stroke-width:0.236087;stroke-dasharray:none"
    97        id="rect36682-0"
    98        width="4.201272"
    99        height="0.52910423"
    100        x="0.19541389"
    101        y="1.0459511"
    102        transform="matrix(0.9921591,0.12498128,-0.12309514,0.99239487,0,0)" />
    103     <rect
    104        style="stroke:none;stroke-width:0.236087;stroke-dasharray:none"
    105        id="rect36682-6"
    106        width="4.201272"
    107        height="0.52910423"
    108        x="0.29312083"
    109        y="1.833479"
    110        transform="matrix(0.9921591,0.12498128,-0.12309514,0.99239487,0,0)" />
    111   </g>
    112   <rect
    113      style="stroke-width:0.237;stroke-dasharray:none;stroke:none;fill-opacity:1;fill:url(#linearGradient36617)"
    114      id="rect36061"
    115      width="4.2333331"
    116      height="4.2333331"
    117      x="0"
    118      y="0" />
    119   <g
    120      inkscape:label="Layer 1"
    121      inkscape:groupmode="layer"
    122      id="layer1" />
    123 </svg>
     1<svg height="16" viewBox="0 0 4 4" width="16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientTransform="matrix(.94482519 0 0 .94488194 -.000007 0)" gradientUnits="userSpaceOnUse" x1="2.116667" x2="3.704167" y1="4.233333" y2="0"><stop offset="0" stop-color="#646464"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><path d="m.8132.132424h.529167v2.38125h-.529167z" fill="#784421" transform="matrix(.93911580979 .10371805591 -.10371182656 .93917221686 -.000007 0)"/><path d="m2.946119.163065h.529167v2.38125h-.529167z" fill="#784421" transform="matrix(.93911580979 .10371805591 -.10371182656 .93917221686 -.000007 0)"/><g transform="matrix(.93741691017 .11809255431 -.11630338904 .93769599001 -.000007 0)"><path d="m.097832.260466h4.201272v.529104h-4.201272z"/><path d="m.195414 1.045951h4.201272v.529104h-4.201272z"/><path d="m.293121 1.833479h4.201272v.529104h-4.201272z"/></g><path d="m-.000007 0h3.99976v4h-3.99976z" fill="url(#a)"/></svg>
  • trunk/scripts/geticons.pl

    r18115 r18743  
    3131    while(my $l = <FILE>)
    3232    {
     33      if($l =~ /extends MapMode/)
     34      {
     35        $extends = "mapmode/";
     36      }
     37      elsif($l =~ /extends ToggleDialog/)
     38      {
     39        $extends = "dialogs/";
     40      }
     41      elsif($l =~ /extends JosmAction/)
     42      {
     43        $extends = "";
     44      }
    3345      if($l =~ /private static final String ([A-Z_]+) = ("[^"]+")/)
    3446      {
     
    116128          ++$icons{$i};
    117129        }
    118       }
    119       if($l =~ /extends MapMode/)
    120       {
    121         $extends = "mapmode/";
    122       }
    123       elsif($l =~ /extends ToggleDialog/)
    124       {
    125         $extends = "dialogs/";
    126       }
    127       elsif($l =~ /extends JosmAction/)
    128       {
    129         $extends = "";
    130130      }
    131131    }
Note: See TracChangeset for help on using the changeset viewer.