Add icons

This commit is contained in:
Daniel Siepmann 2021-02-17 15:52:34 +01:00
parent 2e0102894f
commit 16ae83e841
17 changed files with 22 additions and 1 deletions

View file

@ -55,7 +55,7 @@ class Extension
],
[
'access' => 'user,group',
'icon' => 'EXT:' . self::EXTENSION_KEY . '/Resources/Public/Icons/module.svg',
'icon' => self::getIconPath() . 'Extension.svg',
'labels' => self::getLanguagePath() . 'locallang_mod.xlf',
]
);
@ -67,6 +67,11 @@ class Extension
self::addContentElements();
}
public static function getIconPath(): string
{
return 'EXT:' . self::EXTENSION_KEY . '/Resources/Public/Icons/';
}
private static function addContentElements(): void
{
$languagePath = self::getLanguagePath() . 'locallang_tca.xlf:tt_content';

View file

@ -9,6 +9,7 @@ return (static function (string $extensionKey, string $tableName) {
return [
'ctrl' => [
'label' => 'title',
'iconfile' => \WerkraumMedia\ThueCat\Extension::getIconPath() . $tableName . '.svg',
'default_sortby' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',

View file

@ -9,6 +9,7 @@ return (static function (string $extensionKey, string $tableName) {
return [
'ctrl' => [
'label' => 'crdate',
'iconfile' => \WerkraumMedia\ThueCat\Extension::getIconPath() . $tableName . '.svg',
'default_sortby' => 'crdate',
'tstamp' => 'tstamp',
'crdate' => 'crdate',

View file

@ -11,6 +11,7 @@ return (static function (string $extensionKey, string $tableName) {
'label' => 'table_name',
'label_alt' => 'record_uid',
'label_alt_force' => true,
'iconfile' => \WerkraumMedia\ThueCat\Extension::getIconPath() . $tableName . '.svg',
'default_sortby' => 'crdate',
'tstamp' => 'tstamp',
'crdate' => 'crdate',

View file

@ -8,6 +8,7 @@ return (static function (string $extensionKey, string $tableName) {
return [
'ctrl' => [
'label' => 'title',
'iconfile' => \WerkraumMedia\ThueCat\Extension::getIconPath() . $tableName . '.svg',
'default_sortby' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',

View file

@ -8,6 +8,7 @@ return (static function (string $extensionKey, string $tableName) {
return [
'ctrl' => [
'label' => 'title',
'iconfile' => \WerkraumMedia\ThueCat\Extension::getIconPath() . $tableName . '.svg',
'default_sortby' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',

View file

@ -8,6 +8,7 @@ return (static function (string $extensionKey, string $tableName) {
return [
'ctrl' => [
'label' => 'title',
'iconfile' => \WerkraumMedia\ThueCat\Extension::getIconPath() . $tableName . '.svg',
'default_sortby' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',

View file

@ -8,6 +8,7 @@ return (static function (string $extensionKey, string $tableName) {
return [
'ctrl' => [
'label' => 'title',
'iconfile' => \WerkraumMedia\ThueCat\Extension::getIconPath() . $tableName . '.svg',
'default_sortby' => 'title',
'tstamp' => 'tstamp',
'crdate' => 'crdate',

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect width="16" height="16" fill="#79a547"/><path d="M13.14619,4.24807a.89649.89649,0,1,0-.89648-.89649.87832.87832,0,0,0,.09888.39118L10.07637,6.015A2.02,2.02,0,0,0,7.45,5.66866L5.97822,4.29805a1.11305,1.11305,0,0,0,.17139-.56628A1.14649,1.14649,0,1,0,5.00313,4.87825a1.11522,1.11522,0,0,0,.6322-.21594l1.4328,1.33435a1.99545,1.99545,0,0,0-.31958,2.29608l-2.97589,1.128a1.36945,1.36945,0,1,0,.1626.63684,1.35654,1.35654,0,0,0-.01587-.15766L7.03633,8.71846A1.98819,1.98819,0,0,0,9.028,9.362l.76843,2.24689a1.27693,1.27693,0,1,0,.49945-.08374L9.4955,9.18483A2.044,2.044,0,0,0,10.463,8.119h1.57342a.88511.88511,0,0,0,.84607.6466.89648.89648,0,1,0,0-1.793.88526.88526,0,0,0-.846.64636H10.58314a2.00532,2.00532,0,0,0,.02448-.24219,2.0167,2.0167,0,0,0-.24207-.944l2.3263-2.32629A.87148.87148,0,0,0,13.14619,4.24807ZM11.03,12.79329a.77686.77686,0,1,1-.77685-.77685A.77791.77791,0,0,1,11.03,12.79329ZM4.35664,3.73177a.64649.64649,0,1,1,.64649.64648A.64725.64725,0,0,1,4.35664,3.73177Zm4.208,5.188a1.543,1.543,0,1,1,1.543-1.543A1.545,1.545,0,0,1,8.56465,8.91976Z" fill="#fff"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2,0V16H14V4L10,0Z" fill="#efefef"/><path d="M10,3.98V0l4,4Z" fill="#fff" opacity="0.65" style="isolation:isolate"/><path d="M2,0V16H14V4h-.012l.004-.008L10.008.006,10,.014V0ZM3,1H9V5h4V15H3Zm7,.412L12.586,4H10Z" fill="#999"/><path d="M13.68376,10.58311h.48451a.33189.33189,0,0,0,.332-.33178V8.17924a.07339.07339,0,0,0-.07344-.07327H13.844a.07335.07335,0,0,0-.07344.07325v.795h-.64388V8.17924A.07335.07335,0,0,0,13.0533,8.106h-.5828a.0734.0734,0,0,0-.07345.07327v.79494h-.64384V8.17924a.0734.0734,0,0,0-.07344-.07327H11.097a.0734.0734,0,0,0-.07346.07327v.79494h-.64387V8.17924A.0734.0734,0,0,0,10.3062,8.106H9.72339A.07341.07341,0,0,0,9.65,8.17924v.79494H9.00612V8.17924A.07339.07339,0,0,0,8.93268,8.106H8.34985a.07341.07341,0,0,0-.07343.07327v2.07189a.3319.3319,0,0,0,.33182.332H9.093l-.81523,4.57254a.33173.33173,0,0,0,.32661.39033h5.568a.33171.33171,0,0,0,.32657-.39033Zm-1.50467,3.09738H10.598V12.243a.79057.79057,0,0,1,1.58113,0Z" fill="#b9b9b9"/><rect x="11.20809" y="6.97727" width="0.36051" height="1.12868" fill="#b9b9b9"/><path d="M11.20809,4.36234V7.134a.06741.06741,0,0,0,.08861.064l3.93056-1.30176-3.9198-1.60069a.07211.07211,0,0,0-.09937.06676Z" fill="#79a547"/></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M0,0H16V16H0Z" fill="#fff"/><path d="M.74957,1.65587H15.25043V3.46848H.74957Zm0,3.62522H15.25043V7.0937H.74957Zm0,3.62521H15.25043v1.81261H.74957Zm0,3.62522H15.25043v1.81261H.74957Z" fill="#b9b9b9"/></svg>

After

Width:  |  Height:  |  Size: 307 B

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M0,0H16V16H0Z" fill="#fff"/><path d="M.74957,1.65587H15.25043V3.46848H.74957Zm0,3.62522H15.25043V7.0937H.74957Zm0,3.62521H15.25043v1.81261H.74957Zm0,3.62522H15.25043v1.81261H.74957Z" fill="#b9b9b9"/><rect x="4.97578" y="8.1308" width="11.02422" height="6.86717" fill="#79a547"/><rect x="6.38216" y="9.6921" width="0.46275" height="3.74458" fill="#fff"/><rect x="6.38216" y="13.03487" width="2.02734" height="0.4154" fill="#fff"/><rect x="9.15514" y="9.85626" width="2.17081" height="3.38907" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="0.4"/><rect x="12.0716" y="9.67851" width="0.4811" height="3.74458" fill="#fff"/><rect x="12.0716" y="13.03487" width="2.57226" height="0.4154" fill="#fff"/><rect x="12.07159" y="9.67463" width="2.33172" height="0.4154" fill="#fff"/><rect x="14.16277" y="11.90689" width="0.4811" height="1.50282" fill="#fff"/><rect x="13.78729" y="11.88857" width="0.85657" height="0.4811" fill="#fff"/></svg>

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M0,0H16V16H0Z" fill="#fff"/><path d="M.74957,5.28109H15.25043V7.0937H.74957Zm0,3.62521H15.25043v1.81261H.74957Zm0,3.62522H15.25043v1.81261H.74957Z" fill="#b9b9b9"/><rect x="0.74957" y="1.63189" width="14.50087" height="1.81261" fill="#79a547"/></svg>

After

Width:  |  Height:  |  Size: 352 B

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M10.77071,5.949a18.65086,18.65086,0,0,1-1.9384-.76481c.03454.11132.03982.16841-.02879.237a1.69857,1.69857,0,0,1-2.30305,0c-.06958-.06957-.05662-.12714-.01488-.2423A19.34825,19.34825,0,0,1,4.53327,5.949s-.67172.38384-.7197,1.87123h7.67685C11.44244,6.28486,10.77071,5.949,10.77071,5.949Z" fill="#79a547"/><path d="M9.28335,1.53478A1.40357,1.40357,0,0,0,7.86816.14293L7.84392.14334H7.46009A1.43426,1.43426,0,0,0,6.02066,1.53478v1.0556a2.17733,2.17733,0,0,0,.67341,1.39447l-.00023-.00017c-.0216,1.16208-.36943,1.26042-.19335,1.4365a1.69851,1.69851,0,0,0,2.303,0c.17661-.17655-.13335-.27489-.18422-1.4461a2.17271,2.17271,0,0,0,.664-1.3847ZM7.37457,4.417a.88682.88682,0,0,0,.55593-.0002.88682.88682,0,0,1-.55593.00018Zm-.4858-.26213c.01867.01451.03746.02844.05648.04208-.01908-.01383-.03781-.02741-.05648-.0421Zm.22876.152a1.36775,1.36775,0,0,0,.12831.059,1.34966,1.34966,0,0,1-.12831-.05906Zm.946.05655c.04185-.01768.08377-.03513.12474-.05737-.041.02271-.08281.03916-.12472.05731Zm.30393-.17292c.01709-.01241.03406-.02482.05092-.03788-.01684.01323-.03381.02523-.0509.03782Z" fill="#fdc759"/><rect x="3.81357" y="8.21754" width="7.67685" height="7.14809" fill="#fff" stroke="#b9b9b9" stroke-miterlimit="10"/><path d="M10.85547,4.05727v.00216a.72914.72914,0,0,1-.69619.694.69619.69619,0,1,1,.69619-.69619h0Z" fill="#fff" stroke="#b9b9b9" stroke-miterlimit="10" stroke-width="0.75"/><rect x="2.90692" y="7.32845" width="9.39595" height="2.14786" fill="#b9b9b9"/><path d="M11.44059,7.82023c.0425-.1802.47775-2.66642.47775-2.66642S10.8621,4.43553,10.744,4.4096" fill="none" stroke="#b9b9b9" stroke-miterlimit="10" stroke-width="0.75"/></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M11.09834,8.85347h.654a.448.448,0,0,0,.44816-.44811V5.60874a.09906.09906,0,0,0-.09914-.0989h-.78667a.099.099,0,0,0-.09913.0989v1.073h-.86911v-1.073a.099.099,0,0,0-.09911-.0989H9.46069a.09906.09906,0,0,0-.09914.0989v1.073H8.49249v-1.073a.09905.09905,0,0,0-.09912-.0989H8.23219l-.46345,0h-.162a.09906.09906,0,0,0-.09915.0989v1.073H6.63849V5.60874a.09906.09906,0,0,0-.09917-.0989H5.75265a.09907.09907,0,0,0-.09911.0989v1.073H4.78448v-1.073a.09905.09905,0,0,0-.09913-.0989h-.7867a.09907.09907,0,0,0-.09911.0989V8.40536a.448.448,0,0,0,.4481.44811h.65409l-1.1004,6.172a.44776.44776,0,0,0,.44086.52686h7.51566a.44773.44773,0,0,0,.44081-.52686Zm-2.031,4.18083H6.93317V11.094a1.06711,1.06711,0,0,1,2.13421,0Z" fill="#b9b9b9"/><rect x="7.75669" y="3.98632" width="0.48662" height="1.52349" fill="#b9b9b9"/><path d="M7.75669.45669V4.19792a.091.091,0,0,0,.11961.08638l5.30545-1.75711L7.89082.36659A.09733.09733,0,0,0,7.75669.45669Z" fill="#79a547"/></svg>

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8,14.45957A6.45957,6.45957,0,1,1,14.45957,8h0A6.45957,6.45957,0,0,1,8,14.45957Zm0,.9228A7.38237,7.38237,0,1,0,.61763,8,7.38237,7.38237,0,0,0,8,15.38237Z" fill="#b8b8b8"/><circle cx="8" cy="8" r="6.45957" fill="#fff"/><rect x="7.22511" y="6.41709" width="1.54977" height="6.56249" rx="0.14599" fill="#79a547"/><circle cx="8" cy="4.58497" r="1.15244" fill="#79a547"/></svg>

After

Width:  |  Height:  |  Size: 474 B

View file

@ -0,0 +1 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><polygon points="11.535 15.154 4.516 15.154 4.516 2.858 11.535 0.809 11.535 15.154" fill="#fff" stroke="#b9b9b9" stroke-miterlimit="10" stroke-width="0.5"/><path d="M11.728,15.34707H4.32273V2.71276L11.728.55049Zm-7.01839-.38688h6.6315V1.06659L4.70962,3.00292Z" fill="#b9b9b9" stroke="#b9b9b9" stroke-miterlimit="10" stroke-width="0.5"/><rect x="6.09855" y="4.33894" width="1.21507" height="1.21507" fill="#b9b9b9"/><rect x="8.73725" y="4.33894" width="1.21507" height="1.21507" fill="#b9b9b9"/><rect x="6.09855" y="6.52425" width="1.21507" height="1.21507" fill="#b9b9b9"/><rect x="8.73725" y="6.52425" width="1.21507" height="1.21507" fill="#b9b9b9"/><rect x="6.09855" y="8.70956" width="1.21507" height="1.21507" fill="#b9b9b9"/><rect x="8.73725" y="8.70956" width="1.21507" height="1.21507" fill="#b9b9b9"/><rect x="6.09855" y="10.89487" width="1.21507" height="1.21507" fill="#b9b9b9"/><rect x="8.73725" y="10.89487" width="1.21507" height="1.21507" fill="#b9b9b9"/><rect x="7.02452" y="13.15182" width="2.00183" height="2.00183" fill="#b9b9b9"/><rect x="13.49923" y="11.49938" width="0.38689" height="3.86284" fill="#b9b9b9" stroke="#b9b9b9" stroke-miterlimit="10" stroke-width="0.5"/><circle cx="13.69273" cy="10.17712" r="1.45083" fill="#79a547"/><path d="M13.69267,11.82144A1.64428,1.64428,0,1,1,15.337,10.17717,1.64623,1.64623,0,0,1,13.69267,11.82144Zm0-2.90166a1.25739,1.25739,0,1,0,1.25739,1.25739A1.25884,1.25884,0,0,0,13.69267,8.91978Z" fill="#79a547"/><circle cx="13.69273" cy="7.49449" r="1.13508" fill="#79a547"/><path d="M13.69267,8.82306a1.32851,1.32851,0,1,1,1.32861-1.32861A1.33007,1.33007,0,0,1,13.69267,8.82306Zm0-2.27014a.94163.94163,0,1,0,.94172.94153A.94264.94264,0,0,0,13.69267,6.55292Z" fill="#79a547"/><rect x="1.84895" y="11.49938" width="0.38689" height="3.86284" fill="#b9b9b9" stroke="#b9b9b9" stroke-miterlimit="10" stroke-width="0.5"/><circle cx="2.04239" cy="10.04855" r="1.45083" fill="#79a547"/><path d="M2.04239,11.69279a1.64428,1.64428,0,1,1,1.64428-1.64427A1.64623,1.64623,0,0,1,2.04239,11.69279Zm0-2.90166a1.25739,1.25739,0,1,0,1.25739,1.25739A1.25884,1.25884,0,0,0,2.04239,8.79113Z" fill="#79a547"/></svg>

After

Width:  |  Height:  |  Size: 2.2 KiB