Browse Source

Replace D8 with Thunder logo in admin toolbar

tags/3.3.0-beta1
Christian Fritsch 3 years ago
parent
commit
4da9fea647
4 changed files with 43 additions and 0 deletions
  1. +5
    -0
      css/toolbar.css
  2. +25
    -0
      files/images/thunder.svg
  3. +4
    -0
      thunder.libraries.yml
  4. +9
    -0
      thunder.profile

+ 5
- 0
css/toolbar.css View File

@@ -0,0 +1,5 @@
.toolbar-icon-admin-toolbar-tools-help:before,
.toolbar-icon-admin-toolbar-tools-help:active:before,
.toolbar-icon-admin-toolbar-tools-help.active:before {
background-image: url(../files/images/thunder.svg);
}

+ 25
- 0
files/images/thunder.svg View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 20.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!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="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 124.1 80.5" enable-background="new 0 0 124.1 80.5" xml:space="preserve">
<g>
<path fill="#A2DAF8" d="M87.3,80.3c-20.6,0-30.4-12.3-32.5-17.1c-1.8-4.4-2.8-10-3-17l0,0v-2c0-0.1,0-0.3,0-0.4v-7
c0-3.8-0.3-7-0.9-9.5c-0.6-2.6-1.6-4.6-2.9-6.1c-1.3-1.5-2.9-2.6-4.9-3.2c-1.9-0.6-4.2-0.9-6.8-0.9c-2.6,0-4.9,0.3-6.8,0.9
c-1.9,0.6-3.6,1.7-4.9,3.2c-1.3,1.5-2.3,3.5-2.9,6.1c-0.6,2.6-0.9,5.8-0.9,9.8v39.8c-0.1,0-0.2,0-0.3,0c-3.4,0-6.5-8.3-9.8-8.3
c-3.4,0-7-22.9-10.5-23.5v-8.6c0-8,1-14.5,3.1-19.3c2-4.8,10.4-8.5,13.9-11c3.4-2.5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,3-17.4l0,0v-1.5c0-0.1,0-0.3,0-0.4l0,0
V37c0-4,0.3-7.2,0.9-9.8c0.6-2.6,1.6-4.6,2.9-6.1c1.3-1.5,2.9-2.6,4.9-3.2c1.9-0.6,4.2-0.9,6.8-0.9c2.6,0,4.9,0.3,6.8,0.9
c1.9,0.6,3.6,1.7,4.9,3.2c1.3,1.5,2.3,3.5,2.9,6.1c0.6,2.6,0.9,5.8,0.9,9.8v39.8c3.5,0.6,6.9,0.9,10.3,0.9
C117.2,77.7,120.6,77.4,124.1,76.8L124.1,76.8z"/>
</g>
</svg>

+ 4
- 0
thunder.libraries.yml View File

@@ -0,0 +1,4 @@
toolbar.icon:
css:
theme:
css/toolbar.css: {}

+ 9
- 0
thunder.profile View File

@@ -231,3 +231,12 @@ function thunder_page_attachments(array &$attachments) {
}
}
}

/**
* Implements hook_library_info_alter().
*/
function thunder_toolbar_alter(&$items) {
if (!empty($items['admin_toolbar_tools'])) {
$items['admin_toolbar_tools']['#attached']['library'][] = 'thunder/toolbar.icon';
}
}

Loading…
Cancel
Save