More icons as SVG

This commit is contained in:
Matthias Koefferlein 2022-09-14 22:47:39 +02:00
parent 164748be22
commit c7006898a6
14 changed files with 343 additions and 4 deletions

View File

@ -91,7 +91,8 @@
<file alias="home_24px.png">images/home_24px.png</file>
<file alias="home_24px@2x.png">images/home_24px@2x.png</file>
<file alias="import.png">images/import.png</file>
<file alias="important.png">images/important.png</file>
<file alias="important_16px.png">images/important_16px.png</file>
<file alias="important_16px@2x.png">images/important_16px@2x.png</file>
<file alias="instance.png">images/instance.png</file>
<file alias="invert_16px.png">images/invert_16px.png</file>
<file alias="invert_16px@2x.png">images/invert_16px@2x.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

View File

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="16"
height="16"
viewBox="0 0 4.2333332 4.2333335"
version="1.1"
id="svg1011"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
sodipodi:docname="checked_16px.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1013"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:document-units="px"
showgrid="true"
units="px"
inkscape:snap-nodes="true"
inkscape:snap-bbox="true"
inkscape:bbox-nodes="true"
inkscape:snap-others="false"
inkscape:zoom="17.288462"
inkscape:cx="5.8420467"
inkscape:cy="10.151279"
inkscape:window-width="1535"
inkscape:window-height="1081"
inkscape:window-x="215"
inkscape:window-y="82"
inkscape:window-maximized="0"
inkscape:current-layer="layer1"
width="16px">
<inkscape:grid
type="xygrid"
id="grid1074"
spacingx="0.13229167"
spacingy="0.13229167"
empspacing="2" />
</sodipodi:namedview>
<defs
id="defs1008">
<linearGradient
id="linearGradient3600">
<stop
style="stop-color:#ff9f3f;stop-opacity:1;"
offset="0"
id="stop3602" />
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="1"
id="stop3604" />
</linearGradient>
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="color:#000000;overflow:visible;fill:#ffffff;stroke:#000000;stroke-width:0.26458333;stroke-miterlimit:3;stroke-opacity:1;fill-opacity:1;stroke-dasharray:none"
id="rect930"
width="3.96875"
height="3.96875"
x="0.13229166"
y="0.13229166" />
<rect
style="fill:none;stroke:#865b26;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect3596"
width="4.2333326"
height="4.2333331"
x="3.3333333e-07"
y="3.3333333e-07"
inkscape:export-filename="/home/matthias/klayout/master/src/lay/lay/images/back.png"
inkscape:export-xdpi="27.093315"
inkscape:export-ydpi="27.093315" />
<path
style="fill:#404040;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 1.0583334,1.0583334 1.3229167,0.79375002 2.1166667,1.5875 l 0.79375,-0.79374998 0.5291667,0.52916668 -0.79375,0.79375 0.79375,0.79375 -0.5291667,0.5291667 -0.79375,-0.79375 -0.79375,0.79375 L 0.79375002,2.9104167 1.5875,2.1166667 0.79375002,1.3229167 Z"
id="path2830"
sodipodi:nodetypes="cccccccccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="16"
height="16"
viewBox="0 0 4.2333332 4.2333335"
version="1.1"
id="svg1011"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
sodipodi:docname="important_16px.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1013"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:document-units="px"
showgrid="true"
units="px"
inkscape:snap-nodes="false"
inkscape:snap-bbox="true"
inkscape:bbox-nodes="true"
inkscape:snap-others="false"
inkscape:zoom="17.288462"
inkscape:cx="8.5606225"
inkscape:cy="8.7052276"
inkscape:window-width="1535"
inkscape:window-height="1081"
inkscape:window-x="385"
inkscape:window-y="79"
inkscape:window-maximized="0"
inkscape:current-layer="layer1"
width="16px">
<inkscape:grid
type="xygrid"
id="grid1074"
spacingx="0.13229167"
spacingy="0.13229167"
empspacing="2" />
</sodipodi:namedview>
<defs
id="defs1008">
<linearGradient
id="linearGradient3600">
<stop
style="stop-color:#ff9f3f;stop-opacity:1;"
offset="0"
id="stop3602" />
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="1"
id="stop3604" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4711-3"
id="linearGradient4745"
x1="-155.90552"
y1="333.07083"
x2="-106.29921"
y2="333.07083"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.07817647,0,0,0.07817646,12.365785,-23.92163)" />
<linearGradient
id="linearGradient4711-3">
<stop
id="stop4721"
offset="0"
style="stop-color:#ba0000;stop-opacity:1" />
<stop
style="stop-color:#ff2b2b;stop-opacity:1"
offset="1"
id="stop4723" />
</linearGradient>
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<ellipse
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:0.52916667;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.5"
id="ellipse1025"
cx="2.1166661"
cy="2.1166673"
rx="1.7214085"
ry="1.7214084"
inkscape:export-filename="/home/matthias/klayout/master/src/lay/images/error_16.png"
inkscape:export-xdpi="25"
inkscape:export-ydpi="25" />
<circle
cy="2.1166673"
cx="2.1166661"
id="ellipse4737"
style="fill:url(#linearGradient4745);fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-filename="/home/matthias/klayout/master/src/lay/images/error_16.png"
inkscape:export-xdpi="25"
inkscape:export-ydpi="25"
r="1.6654053" />
<ellipse
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:0.26135;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4727"
cx="2.1166661"
cy="2.1166673"
rx="1.7214085"
ry="1.7214084"
inkscape:export-filename="/home/matthias/klayout/master/src/lay/images/error_16.png"
inkscape:export-xdpi="25"
inkscape:export-ydpi="25" />
<rect
style="fill:none;stroke:#865b26;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect3596"
width="4.2333326"
height="4.2333331"
x="3.3333333e-07"
y="3.3333333e-07"
inkscape:export-filename="/home/matthias/klayout/master/src/lay/lay/images/back.png"
inkscape:export-xdpi="27.093315"
inkscape:export-ydpi="27.093315" />
<rect
style="fill:none;stroke:none;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4695"
width="4.2333336"
height="4.2333336"
x="4.4408921e-16"
y="-8.8817842e-16"
inkscape:export-filename="/home/matthias/klayout/master/src/lay/images/error_16.png"
inkscape:export-xdpi="25.399982"
inkscape:export-ydpi="25.399982" />
<ellipse
style="fill:#fdd9d9;fill-opacity:1;stroke:none;stroke-width:0.373357;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4788"
cx="0.611287"
cy="1.6845435"
rx="0.66145831"
ry="0.13229166"
transform="rotate(-33.683172)"
inkscape:export-filename="/home/matthias/klayout/master/src/lay/images/error_16.png"
inkscape:export-xdpi="25"
inkscape:export-ydpi="25" />
<path
id="path8155"
style="color:#000000;fill:#fefefe;fill-opacity:0.8;fill-rule:evenodd;stroke-width:0.719379;-inkscape-stroke:none"
d="M 1.8295179,0.52916668 1.8202518,0.71679795 1.7236446,2.5985379 C 1.5633939,2.7027258 1.4552084,2.893307 1.4552084,3.1094842 c 0,0.326511 0.2466008,0.5946826 0.5468484,0.5946826 0.3002475,0 0.5482742,-0.2681716 0.5482742,-0.5946826 0,-0.1863668 -0.080823,-0.3538763 -0.2060485,-0.4632632 L 2.7781251,0.52916668 Z m 0.3465036,0.39697193 h 0.145446 L 2.1261136,1.8829029 Z M 1.9924316,2.9117735 c 0.00316,-1.657e-4 0.00641,0 0.00963,0 0.1029651,0 0.1832334,0.085739 0.1832334,0.1977107 0,0.1119716 -0.080268,0.1992612 -0.1832334,0.1992612 -0.102965,0 -0.1818074,-0.08729 -0.1818074,-0.1992612 0,-0.1084724 0.073942,-0.1925705 0.172182,-0.1977107 z" />
<path
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.190336px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 2.0024132,0.72765265 H 2.5499745 L 2.1849337,2.5140263 H 1.9111531 Z"
id="path7161"
sodipodi:nodetypes="ccccc" />
<ellipse
style="color:#000000;overflow:visible;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.190336;stroke-opacity:0.5"
id="path7388"
cx="2.002413"
cy="3.1094842"
rx="0.36504087"
ry="0.39697191" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="16"
height="16"
viewBox="0 0 4.2333332 4.2333335"
version="1.1"
id="svg1011"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
sodipodi:docname="unchecked_16px.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1013"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:document-units="px"
showgrid="true"
units="px"
inkscape:snap-nodes="true"
inkscape:snap-bbox="true"
inkscape:bbox-nodes="true"
inkscape:snap-others="false"
inkscape:zoom="17.288462"
inkscape:cx="5.8420467"
inkscape:cy="10.151279"
inkscape:window-width="1535"
inkscape:window-height="1081"
inkscape:window-x="215"
inkscape:window-y="82"
inkscape:window-maximized="0"
inkscape:current-layer="layer1"
width="16px">
<inkscape:grid
type="xygrid"
id="grid1074"
spacingx="0.13229167"
spacingy="0.13229167"
empspacing="2" />
</sodipodi:namedview>
<defs
id="defs1008">
<linearGradient
id="linearGradient3600">
<stop
style="stop-color:#ff9f3f;stop-opacity:1;"
offset="0"
id="stop3602" />
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="1"
id="stop3604" />
</linearGradient>
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="color:#000000;overflow:visible;fill:#ffffff;stroke:#000000;stroke-width:0.26458333;stroke-miterlimit:3;stroke-opacity:1;fill-opacity:1;stroke-dasharray:none"
id="rect930"
width="3.96875"
height="3.96875"
x="0.13229166"
y="0.13229166" />
<rect
style="fill:none;stroke:#865b26;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect3596"
width="4.2333326"
height="4.2333331"
x="3.3333333e-07"
y="3.3333333e-07"
inkscape:export-filename="/home/matthias/klayout/master/src/lay/lay/images/back.png"
inkscape:export-xdpi="27.093315"
inkscape:export-ydpi="27.093315" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -546,7 +546,7 @@
</property>
<property name="icon">
<iconset resource="../../lay/lay/layResources.qrc">
<normaloff>:/important.png</normaloff>:/important.png</iconset>
<normaloff>:/important_16px.png</normaloff>:/important_16px.png</iconset>
</property>
</widget>
</item>

View File

@ -373,7 +373,7 @@ LayerControlPanel::LayerControlPanel (lay::LayoutViewBase *view, db::Manager *ma
m_no_stipples_label = new QLabel (tb);
m_no_stipples_label->hide ();
m_no_stipples_label->setPixmap (QPixmap (QString::fromUtf8 (":/important.png")));
m_no_stipples_label->setPixmap (QPixmap (QString::fromUtf8 (":/warn_16px.png")));
m_no_stipples_label->setToolTip (tr ("Stipples are disabled - unselect \"View/Show Layers Without Fill\" to re-enable them"));
ltb->addWidget (m_no_stipples_label);

View File

@ -1268,7 +1268,7 @@ public:
const rdb::Item *i = item (index.row ());
if (i != 0 && i->has_tag (m_important_tag_id)) {
return QVariant (QIcon (QString::fromUtf8 (":important.png")));
return QVariant (QIcon (QString::fromUtf8 (":important_16px.png")));
}
} else if (index.column () == 2) {