use SVG icon

This commit is contained in:
Jean-Christian Denis 2022-11-26 21:29:15 +01:00
parent 76c49cae51
commit 491f3c065e
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
4 changed files with 21 additions and 3 deletions

View file

@ -58,7 +58,7 @@ class admin
dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem( dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem(
__('improve'), __('improve'),
dcCore::app()->adminurl->get('admin.plugin.improve'), dcCore::app()->adminurl->get('admin.plugin.improve'),
dcPage::getPF('improve/icon.png'), dcPage::getPF('improve/icon.svg'),
preg_match('/' . preg_quote(dcCore::app()->adminurl->get('admin.plugin.improve')) . '(&.*)?$/', $_SERVER['REQUEST_URI']), preg_match('/' . preg_quote(dcCore::app()->adminurl->get('admin.plugin.improve')) . '(&.*)?$/', $_SERVER['REQUEST_URI']),
dcCore::app()->auth->isSuperAdmin() dcCore::app()->auth->isSuperAdmin()
); );
@ -81,8 +81,8 @@ class admin
[ [
'title' => __('improve'), 'title' => __('improve'),
'url' => dcCore::app()->adminurl->get('admin.plugin.improve'), 'url' => dcCore::app()->adminurl->get('admin.plugin.improve'),
'small-icon' => dcPage::getPF('improve/icon.png'), 'small-icon' => dcPage::getPF('improve/icon.svg'),
'large-icon' => dcPage::getPF('improve/icon-b.png'), 'large-icon' => dcPage::getPF('improve/icon.svg'),
'permissions' => null, 'permissions' => null,
] ]
); );

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

18
icon.svg Normal file
View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="96px" height="96px" viewBox="0 0 96 96" enable-background="new 0 0 96 96" xml:space="preserve"> <image id="image0" width="96" height="96" x="0" y="0"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAABGdBTUEAALGPC/xhBQAAACBjSFJN
AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAb1BMVEUAAAAZe7oYdbEXcKoY
d7QZebcYeLYZebcYeLYYdbIYeLYZebcZerkYd7QYebcZerkYeLUYeLYZerkYdrMZergZebgZerkY
drMZe7kZe7kZe7pUm5ZwqYZgoZCGtXm60VybwG0gfrUjgLQhf7X///+xsszEAAAAGnRSTlMAAAEc
W5q/5/kTb8b7GYjuB23vI8ZK61n4+4/r684AAAABYktHRCS0BvmZAAAACXBIWXMAAA7DAAAOwwHH
b6hkAAAAB3RJTUUH5gsZFyQ2cTO68QAAAVhJREFUaN7tmtuSgkAMREfuAgIDCJq9r///jy6ou6Nr
rBLSPKVfU9VHRiZFpWPMjTw/CKM4oaeVxFEY+J55rHWa5c97/ynP0vUD+01RznE/qSw2jH1l6/n2
g2pb3fNvWhn7QW3z33/byfkTddsb+1W/k/Qn2vWrK0C/l/Un2vdX5yP8+8dncE6pET3/i7rff7oS
fH9ctZe31d6vv7y6eptAsOf7y9yv9w9XnxMA9elOF0x5PoCKsb9x/UcAUA6dL+WqAgBKf/p/hgRk
nvHZ/i8ByH0TsEUJAAUmxAJCE2EBkYmxgNjw3w8igMTwNREAKUABClCAAhSgAAUoQAEKUIACFKAA
BShAAcsC4CM1+FAQPtaED2bho2X4cBw+3ocHFPiIBR4SsTHX17erwwT/c8zFBXXzZZeKGuFhKT7u
xQfW+MgdvjSwwNoDfnEDv3oyhsvY5ZlB0us/R92SimGxNiE/AAAAJXRFWHRkYXRlOmNyZWF0ZQAy
MDIyLTExLTI1VDIyOjM2OjU0KzAxOjAwL/FzDwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0xMS0y
NVQyMjozNjo1NCswMTowMF6sy7MAAAAASUVORK5CYII=" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB