Commit c5ee5844 authored by Shaimaa Natshah's avatar Shaimaa Natshah
Browse files

Issue #3276777: Switch from Claro to the Gin admin theme with the better experience modules

parent f8379802
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -41,7 +41,11 @@
    "drupal/webeditor": "1.0.x-dev",
    "drupal/webpage": "9.1.x-dev",
		"drupal/webtheme": "9.1.x-dev",
    "drupal/webform": "@stable"
    "drupal/webform": "@stable",
    "drupal/gin": "~3.0",
    "drupal/gin_toolbar": "~1.0",
    "drupal/gin_login": "~1.2",
    "drupal/gin_lb": "~1.0"
  },
  "require-dev": {
    "drupal/core-dev": "@stable",
+1 −1
Original line number Diff line number Diff line
admin: claro
admin: gin
default: webtheme
+5 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ distribution:
    theme: claro
themes:
  - claro
  - gin
  - webtheme
install:
  - system
@@ -48,3 +49,7 @@ install:
  - webeditor
  - webpage
  - webform
  - gin_toolbar
  - gin_login
  - gin_lb
+0 −9
Original line number Diff line number Diff line
@@ -13,13 +13,4 @@ function webship_preprocess_install_page(&$variables) {
  $variables['#attached']['library'][] = 'webship/install-page';
}

/**
 * Implements hook_toolbar_alter().
 */
function webship_toolbar_alter(&$items) {
  if (\Drupal::currentUser()->hasPermission('access toolbar')
    && !empty($items['admin_toolbar_tools'])) {
    $items['admin_toolbar_tools']['#attached']['library'][] = 'webship/toolbar-icon';
  }
}