From 92e9f69c8069644c544301a51fbbd351e799e99d Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 25 Nov 2020 23:22:05 -0500 Subject: Popup style updates (#1066) * Replace compactGlossaries option with new glossaryLayoutMode option * Update attributes * Update attributes * Update color definitions * Fix default theme scrollbar --- ext/fg/js/popup.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/fg/js') diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 00afb773..b3af3d6f 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -186,8 +186,10 @@ class Popup extends EventDispatcher { } updateTheme() { - this._frame.dataset.yomichanTheme = this._options.general.popupOuterTheme; - this._frame.dataset.yomichanSiteColor = this._getSiteColor(); + const {popupTheme, popupOuterTheme} = this._options.general; + this._frame.dataset.theme = popupTheme; + this._frame.dataset.outerTheme = popupOuterTheme; + this._frame.dataset.siteColor = this._getSiteColor(); } async setCustomOuterCss(css, useWebExtensionApi) { -- cgit v1.2.3