Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4d3be9c7

Von Martin Helmling martin.helmling@octosoft.eu vor fast 8 Jahren hinzugefügt

  • ID 4d3be9c7cbf7d525181428a9b3697338aa066f0f
  • Vorgänger 529e6bf9
  • Nachfolger cbb4ef68

Menu Icons können nun auch .svg Dateien sein

Vorrangig werden nun svg Dateien aus dem Verzeichnis ./image/icons/svg/*.svg verwendet.
Falls dort kein Icon auffindbar ist wird nach ./image/icons/16x16/*.png gesucht.

Es gibt seit langem ein svg Icon für den GoBD Export.
Das wird nun sichtbar. GGf anpassen.
Das Verzeichnis icon_svg wurde in icons/svg umbenannt.

Unterschiede anzeigen:

SL/Layout/Javascript.pm
41 41
  $_[0]->presenter->render("menu/menunew",
42 42
    force_ul_width  => 1,
43 43
    menu            => $_[0]->menu,
44
    icon_path       => sub { my $img = "image/icons/16x16/$_[0].png"; -f $img ? $img : () },
44
    icon_path       => sub { my $simg = "image/icons/svg/$_[0].svg";  my $pimg="image/icons/16x16/$_[0].png"; -f $simg ? $simg : ( -f $pimg ? $pimg : ()) },
45 45
    max_width       => sub { 10 * max map { length $::locale->text($_->{name}) } @{ $_[0]{children} || [] } },
46 46
  );
47 47
}
image/icon_svg/gobd.svg
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
3

  
4
<svg
5
   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
   xmlns:cc="http://creativecommons.org/ns#"
7
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
   xmlns:svg="http://www.w3.org/2000/svg"
9
   xmlns="http://www.w3.org/2000/svg"
10
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
   version="1.1"
13
   id="Layer_1"
14
   x="0px"
15
   y="0px"
16
   width="16"
17
   height="16"
18
   viewBox="0 0 16 16"
19
   enable-background="new 0 0 93.4 77.996"
20
   xml:space="preserve"
21
   inkscape:version="0.48.1 "
22
   sodipodi:docname="export.svg"
23
   inkscape:export-filename="O:\15-Artwork\Icons\od\erp\menuv3\SVG\16\export.png"
24
   inkscape:export-xdpi="14.4"
25
   inkscape:export-ydpi="14.4"><metadata
26
   id="metadata13"><rdf:RDF><cc:Work
27
       rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
28
         rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
29
   id="defs11" /><sodipodi:namedview
30
   pagecolor="#ffffff"
31
   bordercolor="#666666"
32
   borderopacity="1"
33
   objecttolerance="10"
34
   gridtolerance="10"
35
   guidetolerance="10"
36
   inkscape:pageopacity="0"
37
   inkscape:pageshadow="2"
38
   inkscape:window-width="1920"
39
   inkscape:window-height="1018"
40
   id="namedview9"
41
   showgrid="false"
42
   inkscape:zoom="13.622241"
43
   inkscape:cx="44.636133"
44
   inkscape:cy="16.422306"
45
   inkscape:window-x="1358"
46
   inkscape:window-y="-8"
47
   inkscape:window-maximized="1"
48
   inkscape:current-layer="Layer_1" />
49
<g
50
   id="g3"
51
   transform="matrix(0.16059957,0,0,0.16059957,0.5,1.7263984)"
52
   style="fill:#505050;fill-opacity:1">
53
	<path
54
   d="m 70.028,63.936 c -1.933,0 -3.5,1.565 -3.5,3.5 v 3.56 H 7 V 28.407 h 9.445 c 1.933,0 3.5,-1.567 3.5,-3.5 0,-1.933 -1.567,-3.5 -3.5,-3.5 H 3.5 c -1.933,0 -3.5,1.567 -3.5,3.5 v 49.586 c 0,1.934 1.567,3.5 3.5,3.5 h 66.528 c 1.933,0 3.5,-1.566 3.5,-3.5 v -7.059 c 0,-1.933 -1.567,-3.498 -3.5,-3.498 z"
55
   id="path5"
56
   inkscape:connector-curvature="0"
57
   style="fill:#505050;fill-opacity:1" />
58
	<path
59
   d="M 92.375,26.69 66.709,1.026 c -0.999,-1 -2.503,-1.302 -3.813,-0.758 -1.309,0.542 -2.16,1.818 -2.16,3.233 V 15.043 C 47.378,15.651 36.788,19.798 29.222,27.392 17.702,38.955 17.627,54.201 17.629,54.843 c 0.006,1.584 1.076,2.968 2.608,3.371 0.296,0.078 0.596,0.115 0.892,0.115 1.233,0 2.405,-0.654 3.039,-1.764 6.7,-11.725 23.989,-13.477 33.699,-13.477 1.074,0 2.04,0.022 2.867,0.055 V 54.83 c 0,1.416 0.853,2.691 2.16,3.233 1.312,0.544 2.814,0.241 3.813,-0.759 L 92.375,31.64 c 0.656,-0.657 1.025,-1.547 1.025,-2.475 0,-0.928 -0.369,-1.819 -1.025,-2.475 z M 67.734,46.38 v -6.514 c 0,-1.786 -1.344,-3.286 -3.118,-3.479 -0.11,-0.012 -2.75,-0.296 -6.749,-0.296 -8.239,0 -21.256,1.19 -30.941,7.671 1.396,-3.7 3.644,-7.805 7.255,-11.43 6.854,-6.879 16.966,-10.368 30.055,-10.368 1.933,0 3.5,-1.567 3.5,-3.5 V 11.95 L 84.95,29.165 67.734,46.38 z"
60
   id="path7"
61
   inkscape:connector-curvature="0"
62
   style="fill:#505050;fill-opacity:1" />
63
</g>
64
</svg>
image/icons/svg/gobd.svg
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
3

  
4
<svg
5
   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
   xmlns:cc="http://creativecommons.org/ns#"
7
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
   xmlns:svg="http://www.w3.org/2000/svg"
9
   xmlns="http://www.w3.org/2000/svg"
10
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
   version="1.1"
13
   id="Layer_1"
14
   x="0px"
15
   y="0px"
16
   width="16"
17
   height="16"
18
   viewBox="0 0 16 16"
19
   enable-background="new 0 0 93.4 77.996"
20
   xml:space="preserve"
21
   inkscape:version="0.48.1 "
22
   sodipodi:docname="export.svg"
23
   inkscape:export-filename="O:\15-Artwork\Icons\od\erp\menuv3\SVG\16\export.png"
24
   inkscape:export-xdpi="14.4"
25
   inkscape:export-ydpi="14.4"><metadata
26
   id="metadata13"><rdf:RDF><cc:Work
27
       rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
28
         rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
29
   id="defs11" /><sodipodi:namedview
30
   pagecolor="#ffffff"
31
   bordercolor="#666666"
32
   borderopacity="1"
33
   objecttolerance="10"
34
   gridtolerance="10"
35
   guidetolerance="10"
36
   inkscape:pageopacity="0"
37
   inkscape:pageshadow="2"
38
   inkscape:window-width="1920"
39
   inkscape:window-height="1018"
40
   id="namedview9"
41
   showgrid="false"
42
   inkscape:zoom="13.622241"
43
   inkscape:cx="44.636133"
44
   inkscape:cy="16.422306"
45
   inkscape:window-x="1358"
46
   inkscape:window-y="-8"
47
   inkscape:window-maximized="1"
48
   inkscape:current-layer="Layer_1" />
49
<g
50
   id="g3"
51
   transform="matrix(0.16059957,0,0,0.16059957,0.5,1.7263984)"
52
   style="fill:#505050;fill-opacity:1">
53
	<path
54
   d="m 70.028,63.936 c -1.933,0 -3.5,1.565 -3.5,3.5 v 3.56 H 7 V 28.407 h 9.445 c 1.933,0 3.5,-1.567 3.5,-3.5 0,-1.933 -1.567,-3.5 -3.5,-3.5 H 3.5 c -1.933,0 -3.5,1.567 -3.5,3.5 v 49.586 c 0,1.934 1.567,3.5 3.5,3.5 h 66.528 c 1.933,0 3.5,-1.566 3.5,-3.5 v -7.059 c 0,-1.933 -1.567,-3.498 -3.5,-3.498 z"
55
   id="path5"
56
   inkscape:connector-curvature="0"
57
   style="fill:#505050;fill-opacity:1" />
58
	<path
59
   d="M 92.375,26.69 66.709,1.026 c -0.999,-1 -2.503,-1.302 -3.813,-0.758 -1.309,0.542 -2.16,1.818 -2.16,3.233 V 15.043 C 47.378,15.651 36.788,19.798 29.222,27.392 17.702,38.955 17.627,54.201 17.629,54.843 c 0.006,1.584 1.076,2.968 2.608,3.371 0.296,0.078 0.596,0.115 0.892,0.115 1.233,0 2.405,-0.654 3.039,-1.764 6.7,-11.725 23.989,-13.477 33.699,-13.477 1.074,0 2.04,0.022 2.867,0.055 V 54.83 c 0,1.416 0.853,2.691 2.16,3.233 1.312,0.544 2.814,0.241 3.813,-0.759 L 92.375,31.64 c 0.656,-0.657 1.025,-1.547 1.025,-2.475 0,-0.928 -0.369,-1.819 -1.025,-2.475 z M 67.734,46.38 v -6.514 c 0,-1.786 -1.344,-3.286 -3.118,-3.479 -0.11,-0.012 -2.75,-0.296 -6.749,-0.296 -8.239,0 -21.256,1.19 -30.941,7.671 1.396,-3.7 3.644,-7.805 7.255,-11.43 6.854,-6.879 16.966,-10.368 30.055,-10.368 1.933,0 3.5,-1.567 3.5,-3.5 V 11.95 L 84.95,29.165 67.734,46.38 z"
60
   id="path7"
61
   inkscape:connector-curvature="0"
62
   style="fill:#505050;fill-opacity:1" />
63
</g>
64
</svg>

Auch abrufbar als: Unified diff