From 5bfa2c5c97c7041989c955aebda5df0bed49be2d Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 13 May 2023 22:15:53 +0200 Subject: [PATCH] use svg icons thx @Philippe-dev --- icon-big.png | Bin 5582 -> 0 bytes icon-dark.svg | 111 ++++++++++++++++++++++++++++++++++++++++++++++++ icon.png | Bin 867 -> 0 bytes icon.svg | 111 ++++++++++++++++++++++++++++++++++++++++++++++++ src/Backend.php | 6 +-- 5 files changed, 225 insertions(+), 3 deletions(-) delete mode 100644 icon-big.png create mode 100644 icon-dark.svg delete mode 100644 icon.png create mode 100644 icon.svg diff --git a/icon-big.png b/icon-big.png deleted file mode 100644 index e9ed51420d23b0666fef2308a9a7c275b64cfa0d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5582 zcmYjVc{o)2|37nPHHNVp+ss&#lo3hUW++?A6iMnbvfegQiO8HGTewt`5YtWFsZ^uL z61T%p5^-;eRz&Dh#y*(kH$C5fe&>14InQ~X^E~JCIq&ytdB3umyF8Tex_AHpl)OB* z?UCQHlr_mmp|*A+8%hyFDCNTnb5chfDs;ZD1z#B zEHo-&Pef>V;)$0LjsT#^^4iAmPxx?1ER(qiJTU;Gt&P@-paXd#0KjooDFA@5{fY#r zkbAQH3%yxH00Iu(s72?}p)S)sdQHcrz9VOKsSwHItb_cmK%VBS3F})A9=x_PH8q`G znhqhGnVB8us*xijBgxe6+;zQ-Y_vJHZ+1zsKsq};`0OFwDWu#fX>n|uPlUIzyQMK@RJ2Tc49}LULOixc&nh2e1 zZFRNUyLWFAtLh%;^jf$)7Zu3J*yiRanH~&b#VspotSYw2=ouSn)&Md+8=bYE6DlwP z`wVC2#(go{w{O2(R;G{Hwd?gqI-e5#fJ)=~0?3KYw7toQ4@=`N11kT@Yj&{=q`xFa zUb}I_kR2Xgxuw_oC*9)%!pZ7oclUa*>**A1Lhydg+wRc2K`T<3)%AE|vScQAc%E3dCRSWSO^S|?kW z?02}j;kUD2KQ){T>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gof<7k;7J|bkCWvMzXNs8X%^0u#U6gpj_K`XizdhASb z6l?wFz;R4si^goO>TH*)Z3J|;E{XownY#J?o#r?VDwJiQF3$AtOx1@mr%1;9_2f`#-V1r}E$+Zo5!*s&~Fm?CXU{_%BHIf|WT@YK8>$=rpLcmE8L z>{w5n7b~;gjF{J)ULu#E*-QsLx%JpTiMqjo@k%IiG$0SSOmLRV=^WE0``$NVILK9Z zAQ@9TxSjLf?Yy3UgisiZd<%i;IvOK#rk`7hVQOn-h5S|@JG?S1$b1MUUB3#wpITd^ ziNiw`^g8LE@mg}0epJ-C(dc$+@r}8dDNh8VRZMm6z5Eq+zlh_1HtFi=A>#Enu!f*V zm~}J;KdtCB7$&je7l|-cD_;=EuiZC2@_#xei&Xk9ClP*hC8s`@h74#JY?7y0yK4eS zzxSR;uca3Fp|i%I3n%D)N{V}q{G{x8F}Y@s$Cz19nWu + + + + + + + + + + + diff --git a/icon.png b/icon.png deleted file mode 100644 index f78fad5c08848357d4895abaf300b1a21c27a49e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 867 zcmV-p1DyPcP)!09QEY8(g(fB@_VKg8Q$(r=OY{_fuyJ^J*yMJ*Uj_n!a3m68&w{dp)z#J4gM)(> z+$-nLP_@GiQ&Us7#>U1R48zE3A^G-Rz;VV8jrEt{%Ec#~tXwXqXJ%&ZPfkvL!QW#6 zKBUvr)3?XR$KMHsLK%fN36*Ldc0%vDLxoZTw91d65Y(B?<^iQr>2tYUVG_Xw zzu)ha%jFjMZ^e=u5Il5&UTuYB$p9a>_Br{0(Etj%veD7eagXln>(i=KDhpbMLgW*a z;%?#vSeAuCS_zi+r_iFj3b9Nc3grsNW+VY>wc6a<+uO#BjEop*nuendJLJMkoQHSi#zH2D$MYaz#nPI4fTNWfzGbE{Y^ z22!aM?wZ?Aub0c^V0(MJj>%*)KsbN-A&8r<0mVpx2^4`{`V3SndN+4*-h4hE==FM# z$z+g9r63p#5<4ujyu9qU*=*3$)595He;q;b?ekMl%&Tc=Zf=HjIt{zKyQlI}sg!j% z9A0K~b2GV*ODq-}OePaRlM-lME3lyhpmbW!J6Fm=A@1>bzUy>4RXiRKIGxT9D2@_c z`{?NCv&F?lc5Q8qJv=;QE0xMWYXBv$L}+*avO>{rwNt z*Vh4~0c;fRO;#urf@m~)fS)_a42}QjiiR5($oMHk+HD zpMQf5_mvMj#Sc`4;-`>IpaRhntX69`CbbhwDaMjk7Zw&)yk4&db$iGWaacw tbtI&Zc+T#5002ovPDHLkV1g)1hZX<; diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..8687f79 --- /dev/null +++ b/icon.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + diff --git a/src/Backend.php b/src/Backend.php index baa9a2e..9d57a5d 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -47,7 +47,7 @@ class Backend extends dcNsProcess dcCore::app()->menu[dcAdmin::MENU_BLOG]->addItem( My::name(), dcCore::app()->adminurl->get('admin.plugin.' . My::id()), - dcPage::getPF(My::id() . '/icon.png'), + [dcPage::getPF(My::id() . '/icon.svg'), dcPage::getPF(My::id() . '/icon-dark.svg')], preg_match( '/' . preg_quote(dcCore::app()->adminurl->get('admin.plugin.' . My::id())) . '(&.*)?$/', $_SERVER['REQUEST_URI'] @@ -67,8 +67,8 @@ class Backend extends dcNsProcess $favs->register(My::id(), [ 'title' => My::name(), 'url' => dcCore::app()->adminurl->get('admin.plugin.' . My::id()), - 'small-icon' => dcPage::getPF(My::id() . '/icon.png'), - 'large-icon' => dcPage::getPF(My::id() . '/icon-big.png'), + 'small-icon' => [dcPage::getPF(My::id() . '/icon.svg'), dcPage::getPF(My::id() . '/icon-dark.svg')], + 'large-icon' => [dcPage::getPF(My::id() . '/icon.svg'), dcPage::getPF(My::id() . '/icon-dark.svg')], 'permissions' => dcCore::app()->auth->makePermissions([ dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]),