Skip to content

Commit

Permalink
[UI] v5 and v6 icon style
Browse files Browse the repository at this point in the history
  • Loading branch information
brusch committed Jun 12, 2019
1 parent 58bebe9 commit 4141196
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Resources/public/css/icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/js/datahub.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4141196

Please sign in to comment.