use dc2.21 new svg icon (thx @franckpaul for them)
This commit is contained in:
parent
01ead0c97a
commit
a898a9baee
@ -21,7 +21,7 @@ $core->addBehavior('adminDashboardFavorites', ['packmanBehaviors', 'adminDashboa
|
|||||||
$_menu['Plugins']->addItem(
|
$_menu['Plugins']->addItem(
|
||||||
__('Packages repository'),
|
__('Packages repository'),
|
||||||
'plugin.php?p=pacKman#packman-repository-repository',
|
'plugin.php?p=pacKman#packman-repository-repository',
|
||||||
'index.php?pf=pacKman/icon.png',
|
[dcPage::getPF('pacKman/icon.svg'), dcPage::getPF('pacKman/icon-dark.svg')],
|
||||||
preg_match(
|
preg_match(
|
||||||
'/plugin.php\?p=pacKman(&.*)?$/',
|
'/plugin.php\?p=pacKman(&.*)?$/',
|
||||||
$_SERVER['REQUEST_URI']
|
$_SERVER['REQUEST_URI']
|
||||||
@ -36,8 +36,8 @@ class packmanBehaviors
|
|||||||
$favs->register('pacKman', [
|
$favs->register('pacKman', [
|
||||||
'title' => __('Packages repository'),
|
'title' => __('Packages repository'),
|
||||||
'url' => 'plugin.php?p=pacKman#packman-repository-repository',
|
'url' => 'plugin.php?p=pacKman#packman-repository-repository',
|
||||||
'small-icon' => 'index.php?pf=pacKman/icon.png',
|
'small-icon' => [dcPage::getPF('pacKman/icon.svg'), dcPage::getPF('pacKman/icon-dark.svg')],
|
||||||
'large-icon' => 'index.php?pf=pacKman/icon-big.png',
|
'large-icon' => [dcPage::getPF('pacKman/icon.svg'), dcPage::getPF('pacKman/icon-dark.svg')],
|
||||||
'permissions' => $core->auth->isSuperAdmin(),
|
'permissions' => $core->auth->isSuperAdmin(),
|
||||||
'active_cb' => [
|
'active_cb' => [
|
||||||
'packmanBehaviors',
|
'packmanBehaviors',
|
||||||
|
@ -18,9 +18,9 @@ $this->registerModule(
|
|||||||
'pacKman',
|
'pacKman',
|
||||||
'Manage your Dotclear packages',
|
'Manage your Dotclear packages',
|
||||||
'Jean-Christian Denis',
|
'Jean-Christian Denis',
|
||||||
'2021.11.06',
|
'2022.02.01',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.19']],
|
'requires' => [['core', '2.21']],
|
||||||
'permissions' => null,
|
'permissions' => null,
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://github.com/JcDenis/pacKman',
|
'support' => 'https://github.com/JcDenis/pacKman',
|
||||||
|
BIN
icon-big.png
BIN
icon-big.png
Binary file not shown.
Before Width: | Height: | Size: 867 B |
1
icon-dark.svg
Normal file
1
icon-dark.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m-.000738-.001h64v64h-64z" fill="none"/><path d="m30 8h-28c-1.104 0-2 .896-2 2v6h2v14c0 1.104.896 2 2 2h24c1.104 0 2-.896 2-2v-14h2v-6c0-1.104-.896-2-2-2zm-28 2v4zm2 20v-14h10v14zm24 0h-9.958v-14h9.958zm2-16v-4z" fill="#b3b3b3" fill-rule="nonzero" transform="matrix(1.875 0 0 1.875 1.999 2)"/><path d="m6.312 20.86h51.457v7.611h-51.457z" fill="#fff6f6"/><g fill="#c44d58" fill-rule="nonzero"><path d="m28.249 17h7.57875v45h-7.57875z" stroke-width="1.875"/><path d="m16 6c0-.004-.002-.012-.002-.016h.006c-.002.004-.004.012-.004.016h8c2.762 0 4-1.344 4-3s-1.238-3-4-3c-2.586 0-4.622 1.164-6 2.514-.604-.358-1.302-.576-2.058-.576-.724 0-1.394.204-1.982.536-1.376-1.334-3.4-2.474-5.96-2.474-2.762 0-4 1.344-4 3s1.238 3 4 3zm10-3c0 .826-1.088 1-2 1h-4.542c-.016-.028-.03-.058-.046-.084 1.016-.988 2.556-1.916 4.588-1.916.912 0 2 .174 2 1zm-20 0c0-.826 1.088-1 2-1 1.988 0 3.496.89 4.512 1.844-.032.05-.056.104-.086.156h-4.426c-.912 0-2-.174-2-1z" transform="matrix(1.875 0 0 1.875 1.999 2)"/></g></svg>
|
After Width: | Height: | Size: 1.1 KiB |
1
icon.svg
Normal file
1
icon.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m-.000408-.001h64v64h-64z" fill="none"/><path d="m30 8h-28c-1.104 0-2 .896-2 2v6h2v14c0 1.104.896 2 2 2h24c1.104 0 2-.896 2-2v-14h2v-6c0-1.104-.896-2-2-2zm-28 2v4zm2 20v-14h10v14zm24 0h-9.958v-14h9.958zm2-16v-4z" fill="#676e78" fill-rule="nonzero" transform="matrix(1.875 0 0 1.875 1.99933 2)"/><path d="m6.31233 20.86h51.457v7.611h-51.457z" fill="#b3b3b3"/><g fill="#c44d58" fill-rule="nonzero"><path d="m28.24933 17h7.57875v45h-7.57875z" stroke-width="1.875"/><path d="m16 6c0-.004-.002-.012-.002-.016h.006c-.002.004-.004.012-.004.016h8c2.762 0 4-1.344 4-3s-1.238-3-4-3c-2.586 0-4.622 1.164-6 2.514-.604-.358-1.302-.576-2.058-.576-.724 0-1.394.204-1.982.536-1.376-1.334-3.4-2.474-5.96-2.474-2.762 0-4 1.344-4 3s1.238 3 4 3zm10-3c0 .826-1.088 1-2 1h-4.542c-.016-.028-.03-.058-.046-.084 1.016-.988 2.556-1.916 4.588-1.916.912 0 2 .174 2 1zm-20 0c0-.826 1.088-1 2-1 1.988 0 3.496.89 4.512 1.844-.032.05-.056.104-.086.156h-4.426c-.912 0-2-.174-2-1z" transform="matrix(1.875 0 0 1.875 1.99933 2)"/></g></svg>
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue
Block a user