diff --git a/playbooks/zuul/gerrit/files/plugins/opendev-theme-plugin.js b/playbooks/zuul/gerrit/files/plugins/opendev-theme-plugin.js index 38742f075a..2c07530113 100644 --- a/playbooks/zuul/gerrit/files/plugins/opendev-theme-plugin.js +++ b/playbooks/zuul/gerrit/files/plugins/opendev-theme-plugin.js @@ -17,23 +17,17 @@ 'use strict'; -const openDevThemeStyle = document.createElement('dom-module'); -openDevThemeStyle.innerHTML = ` - -`; -openDevThemeStyle.register('opendev-site-theme'); - Gerrit.install(plugin => { - plugin.registerStyleModule('app-theme', 'opendev-site-theme'); + const styleEl = document.createElement('style'); + styleEl.innerHTML = ` + html { + --header-title-content: "OpenDev"; + --header-icon: url("/static/opendev-sm.png"); + --header-background-color: var(--background-color-primary); + --header-icon-size: 1.2em; + --header-border-bottom: 1px solid; + --header-border-image: linear-gradient(to right, #ee265e, #f9b8cb, #ee265e) 1; + } + `; + document.head.appendChild(styleEl); });