From e39efcaa529f0b6e4c4bdcbe5b54967cb9dc4522 Mon Sep 17 00:00:00 2001 From: Romeo Fragomeli Date: Mon, 4 Dec 2023 07:54:54 +0100 Subject: [PATCH] [FIX] mail: dark mode: text attachment readability There is a specific rule that set the `o_AttachmentViewer_view` background color to a static white color (i.e. `#FFFFFF`). Then in dark mode, while the font color for the attachement "view" is set to white due to the `color-scheme` meta, the background keeps its white color, which makes the content unreadable. In this commit we use instead the `$white` variable, which is properly adapted in "dark mode", for the background color. Steps to reproduce: * Open Odoo * Set Odoo in Dark mode using the dropdown menu of the user * Open the Note app * Make a note or open one * Upload a JSON attachment in the chatter * Open the preview of the attachment => BUG text in white and background color in white => text not visible closes odoo/odoo#144763 X-original-commit: 2af9edb3ca45db0a36552ca751136b7b0c7b6a18 Signed-off-by: Pierre Paridans (app) Signed-off-by: Romeo Fragomeli (rfr) --- addons/web/static/src/core/file_viewer/file_viewer.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/core/file_viewer/file_viewer.scss b/addons/web/static/src/core/file_viewer/file_viewer.scss index 2fd7792e4bb..14abb8a3980 100644 --- a/addons/web/static/src/core/file_viewer/file_viewer.scss +++ b/addons/web/static/src/core/file_viewer/file_viewer.scss @@ -41,6 +41,6 @@ outline: none; &.o-isText { - background: #FFFFFF; + background: $white; } }