From 9dd7e6de5ee4a1ab12c60d447411ec5230d1f5bd Mon Sep 17 00:00:00 2001 From: chrox Date: Wed, 11 Dec 2024 18:16:02 +0100 Subject: [PATCH] Avoid overriding some background colors --- apps/readest-app/src/utils/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index ad30b13a..5e691982 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -108,7 +108,7 @@ const getLayoutStyles = ( color: ${fg}; zoom: ${zoomLevel}%; } - body *:not(#b1):not(#b1 *):not(#b2):not(#b2 *) { + body *:not(#b1):not(#b1 *):not(#b2):not(#b2 *):not(.bg):not(.bg *):not(.vol):not(.vol *):not(.background):not(.background *) { color: inherit; border-color: currentColor !important; ${bg === '#ffffff' ? '' : `background-color: ${bg} !important;`}