diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-25 23:22:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 23:22:05 -0500 |
commit | 92e9f69c8069644c544301a51fbbd351e799e99d (patch) | |
tree | 621bea652f78ab9e5b6850512ababeece243f908 /ext/mixed/js/display.js | |
parent | c6c4631817247c44f788b1ffa2bc1d9f644802eb (diff) |
Popup style updates (#1066)
* Replace compactGlossaries option with new glossaryLayoutMode option
* Update attributes
* Update attributes
* Update color definitions
* Fix default theme scrollbar
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r-- | ext/mixed/js/display.js | 8 |
1 files changed, 4 insertions, 4 deletions
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 }); |