diff --git a/_admin.php b/_admin.php index a7b8201..d54a90a 100644 --- a/_admin.php +++ b/_admin.php @@ -16,12 +16,12 @@ if (!defined('DC_CONTEXT_ADMIN')) { dcCore::app()->addBehavior('adminModulesListGetActions', ['translaterAdminBehaviors', 'adminModulesGetActions']); dcCore::app()->addBehavior('adminModulesListDoActions', ['translaterAdminBehaviors', 'adminModulesDoActions']); -dcCore::app()->addBehavior('adminDashboardFavoritesV2', ['translaterAdminBehaviors', 'adminDashboardFavorites']); +dcCore::app()->addBehavior('adminDashboardFavoritesV2', ['translaterAdminBehaviors', 'adminDashboardFavoritesV2']); dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem( __('Translater'), dcCore::app()->adminurl->get('translater'), - dcPage::getPF('translater/icon.png'), + dcPage::getPF('translater/icon.svg'), preg_match( '/' . preg_quote(dcCore::app()->adminurl->get('translater')) . '(&.*)?$/', $_SERVER['REQUEST_URI'] @@ -102,13 +102,13 @@ class translaterAdminBehaviors * * @param dcFavorites $favs dcFavorites instance */ - public static function adminDashboardFavorites(dcFavorites$favs): void + public static function adminDashboardFavoritesV2(dcFavorites $favs): void { $favs->register('translater', [ 'title' => __('Translater'), 'url' => dcCore::app()->adminurl->get('translater'), - 'small-icon' => urldecode(dcPage::getPF('translater/icon.png')), - 'large-icon' => urldecode(dcPage::getPF('translater/icon-big.png')), + 'small-icon' => urldecode(dcPage::getPF('translater/icon.svg')), + 'large-icon' => urldecode(dcPage::getPF('translater/icon.svg')), 'permissions' => dcCore::app()->auth->isSuperAdmin(), ]); } diff --git a/icon-big.png b/icon-big.png deleted file mode 100644 index ad8442e..0000000 Binary files a/icon-big.png and /dev/null differ diff --git a/icon.png b/icon.png deleted file mode 100644 index 4dcb2e0..0000000 Binary files a/icon.png and /dev/null differ diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..35795e4 --- /dev/null +++ b/icon.svg @@ -0,0 +1,27 @@ + + + +