From 41411962baae1c4ae0bb227cd02cd9fc39030ef1 Mon Sep 17 00:00:00 2001 From: Bernhard Rusch Date: Wed, 12 Jun 2019 11:31:35 +0200 Subject: [PATCH] [UI] v5 and v6 icon style --- src/Resources/public/css/icons.css | 8 ++++++++ src/Resources/public/js/datahub.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Resources/public/css/icons.css b/src/Resources/public/css/icons.css index 2e82a3f3..efbcbdad 100644 --- a/src/Resources/public/css/icons.css +++ b/src/Resources/public/css/icons.css @@ -2,6 +2,14 @@ background: url(/bundles/pimcoreadmin/img/twemoji/2728.svg) center center no-repeat !important; } +.plugin_pimcore_datahub_nav_icon { + background: url(/bundles/pimcoreadmin/img/flat-color-icons/electronics.svg) center center no-repeat; +} + +.pimcore_version_6 .plugin_pimcore_datahub_nav_icon { + background: url(/bundles/pimcoreadmin/img/flat-white-icons/electronics.svg) center center no-repeat; +} + .plugin_pimcore_datahub_icon_graphql { background: url(/bundles/pimcoredatahub/img/graphql.svg) center center no-repeat !important; } diff --git a/src/Resources/public/js/datahub.js b/src/Resources/public/js/datahub.js index 9d856c53..a6bbfba1 100644 --- a/src/Resources/public/js/datahub.js +++ b/src/Resources/public/js/datahub.js @@ -31,7 +31,7 @@ pimcore.plugin.datahub = Class.create(pimcore.plugin.admin, { var menu = pimcore.globalmanager.get("layout_toolbar").settingsMenu; menu.add({ text: t("plugin_pimcore_datahub_toolbar"), - iconCls: "plugin_pimcore_datahub_icon", + iconCls: "plugin_pimcore_datahub_nav_icon", handler: function () { try { pimcore.globalmanager.get("plugin_pimcore_datahub_config").activate();