summaryrefslogtreecommitdiff
path: root/ext/js/app
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-06-20 12:03:17 -0400
committerGitHub <noreply@github.com>2024-06-20 16:03:17 +0000
commit9f4e595c7264a52ab85eb07c4d1411e4efb09ab1 (patch)
tree55f8ea5fec49801915174dd92367032c47a8c149 /ext/js/app
parent171722966cc8d2057c23fbbb454b3aa16897c492 (diff)
Fix settings display when shadow is on auto and body is light or dark (#1089)
Diffstat (limited to 'ext/js/app')
-rw-r--r--ext/js/app/popup.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js
index 75e2bd84..50e2fca9 100644
--- a/ext/js/app/popup.js
+++ b/ext/js/app/popup.js
@@ -24,6 +24,7 @@ import {ExtensionError} from '../core/extension-error.js';
import {deepEqual} from '../core/utilities.js';
import {addFullscreenChangeEventListener, computeZoomScale, convertRectZoomCoordinates, getFullscreenElement} from '../dom/document-util.js';
import {loadStyle} from '../dom/style-util.js';
+import {checkPopupPreviewURL} from '../pages/settings/popup-preview-controller.js';
import {ThemeController} from './theme-controller.js';
/**
@@ -1014,6 +1015,10 @@ export class Popup extends EventDispatcher {
const {general} = options;
this._themeController.theme = general.popupTheme;
this._themeController.outerTheme = general.popupOuterTheme;
+ this._themeController.siteOverride = checkPopupPreviewURL(optionsContext.url);
+ if (this._themeController.outerTheme === 'site' && this._themeController.siteOverride && ['dark', 'light'].includes(this._themeController.theme)) {
+ this._themeController.outerTheme = this._themeController.theme;
+ }
this._initialWidth = general.popupWidth;
this._initialHeight = general.popupHeight;
this._horizontalOffset = general.popupHorizontalOffset;