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/mixed/js/display.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/mixed/js') diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 807f585a..085a3237 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -786,7 +786,7 @@ class Display extends EventDispatcher { const data = document.documentElement.dataset; data.ankiEnabled = `${options.anki.enable}`; data.audioEnabled = `${options.audio.enabled && options.audio.sources.length > 0}`; - data.compactGlossaries = `${options.general.compactGlossaries}`; + data.glossaryLayoutMode = `${options.general.glossaryLayoutMode}`; data.compactTags = `${options.general.compactTags}`; data.enableSearchTags = `${options.scanning.enableSearchTags}`; data.showPitchAccentDownstepNotation = `${options.general.showPitchAccentDownstepNotation}`; @@ -796,7 +796,7 @@ class Display extends EventDispatcher { } _updateTheme(themeName) { - document.documentElement.dataset.yomichanTheme = themeName; + document.documentElement.dataset.theme = themeName; } async _findDefinitions(isTerms, source, wildcardsEnabled, optionsContext) { @@ -1461,7 +1461,7 @@ class Display extends EventDispatcher { async _createNote(definition, mode, context, options, templates, injectMedia) { const { - general: {resultOutputMode, compactGlossaries, compactTags}, + general: {resultOutputMode, glossaryLayoutMode, compactTags}, anki: {tags, checkForDuplicates, duplicateScope, kanji, terms, screenshot: {format, quality}}, audio: {sources, customSourceUrl} } = options; @@ -1501,7 +1501,7 @@ class Display extends EventDispatcher { checkForDuplicates, duplicateScope, resultOutputMode, - compactGlossaries, + glossaryLayoutMode, compactTags, modeOptions }); -- cgit v1.2.3