From 9e2f7d5a0827b39e636a410b3fd986134d951291 Mon Sep 17 00:00:00 2001 From: hrach Date: Wed, 3 Aug 2016 14:13:11 +0200 Subject: [PATCH] tracy panel: updates elasticsearch icon to new design & svg format --- src/Kdyby/ElasticSearch/Diagnostics/Panel.php | 7 +++---- src/Kdyby/ElasticSearch/Diagnostics/logo.png | Bin 9382 -> 0 bytes src/Kdyby/ElasticSearch/Diagnostics/logo.svg | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 src/Kdyby/ElasticSearch/Diagnostics/logo.png create mode 100644 src/Kdyby/ElasticSearch/Diagnostics/logo.svg diff --git a/src/Kdyby/ElasticSearch/Diagnostics/Panel.php b/src/Kdyby/ElasticSearch/Diagnostics/Panel.php index 3868342..c417055 100644 --- a/src/Kdyby/ElasticSearch/Diagnostics/Panel.php +++ b/src/Kdyby/ElasticSearch/Diagnostics/Panel.php @@ -57,10 +57,9 @@ class Panel extends Nette\Object implements IBarPanel */ public function getTab() { - $img = Html::el('img', ['height' => '14', 'width' => '14']) - ->src('data:image/png;base64,' . base64_encode(file_get_contents(__DIR__ . '/logo.png'))); + $img = Html::el('')->addHtml(file_get_contents(__DIR__ . '/logo.svg')); $tab = Html::el('span')->title('ElasticSearch')->addHtml($img); - $title = Html::el()->setText('ElasticSearch'); + $title = Html::el('span')->class('tracy-label'); if ($this->queriesCount) { $title->setText( @@ -69,7 +68,7 @@ public function getTab() ); } - return (string) $tab->addText($title); + return (string) $tab->addHtml($title); } diff --git a/src/Kdyby/ElasticSearch/Diagnostics/logo.png b/src/Kdyby/ElasticSearch/Diagnostics/logo.png deleted file mode 100644 index e76760bc343ae569a96c5038410be72ac42c71e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9382 zcmV;XBw5>uP)xRF3Tq*MZs1;E+oT>M|BvS1=wc<M0e)#ge@w1Db#_3ngEaZ@TkbwO%(-ePb1cC@bDFH+| zTs?RoKtcJ_AUINbLsklq%)H%AW$Yw{Lfp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w?;Qt2Hc^1bfvZcLgq1qU7c&hcOR;stB*I#^@JcFz})x&DGW zjlkhEj`wWYvgNK3k+Ze}-Zoe3z-6sgdu-XVrH=vlez91bux{O|E+r!Z zVCEABgSVreNVZn5e%;|V;M}r{cN4k#+&@3;K6J3XQf{yc<0wypH~4Bs-DYv{3P}1d z-LdW~lJI{AfYJya*$}~q3aX8rk1v(5#sR>L8N0t>0b~~KSm!Qv*SHSdcGC_{_%-xGu~{ny`r2Z4BiIfK}6{&p4P! z`ew}7opw}o4_39el`2EY+EFuVa8%sh>ssfux5m6og35Z>?zjMB7_AD+;9Cp01mLOR z0=V5#hEbzN@5{`4Z|%gk*BTruAcHThvZJIvBMAE@)l1pfd@h^EX)Oo_Rvpsv84Ylc z#lUMl?R*fKF=Ka#$S(%_q^tnn8Y_3y0@#{w9LmaG*IG5SKJQrBR8*{OUSNm)6o8|dS+>QPR#V(@4LUUQZoNpwz&RTp@b~6x z+|*aAG?htJ*>O96D1PcfGQspZ0DH8A_z?{v0Cvao&o90cfSNjW+HN8;X7I@mbyOld z@$90pJ7S+wssVyA)?bHJ{4RQntnuZ7h1=ql1+~HV#$^9z5D_tRAKaMRE8ka`GG!{> gTyL&7*Xwcpe-w*?@>^gOoB#j-07*qoM6N<$f~9j5S^xk5 diff --git a/src/Kdyby/ElasticSearch/Diagnostics/logo.svg b/src/Kdyby/ElasticSearch/Diagnostics/logo.svg new file mode 100644 index 0000000..bf4c225 --- /dev/null +++ b/src/Kdyby/ElasticSearch/Diagnostics/logo.svg @@ -0,0 +1 @@ +