From 9849161a7d82bbf80f780281eda67ae3b2af2562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lef=C3=A8vre=20=28lul=29?= Date: Wed, 23 Aug 2023 13:29:16 +0000 Subject: [PATCH] [FIX] spreadsheet: force light theme on top bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit o-spreadsheet code isn't prepared to handle dark theme. At all. There are hardcoded colors everywhere. Until we have a proper way to handle dark theme (use overridable scss variables, rely on bootstrap), we force light theme for all elements inside o-spreadsheet. The white background on the top bar was removed by commit odoo/o-spreadsheet@4d93a99 Other changes probably from the new milk design opw-3461191 closes odoo/odoo#132909 X-original-commit: aaa9ea5c6584a8f830d8313d2f26670bf5b34cef Signed-off-by: Rémi Rahir (rar) Signed-off-by: Lucas Lefèvre (lul) --- .../o_spreadsheet/o_spreadsheet_extended.dark.scss | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet_extended.dark.scss b/addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet_extended.dark.scss index dc9bc42d2ee..fa7682331ea 100644 --- a/addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet_extended.dark.scss +++ b/addons/spreadsheet/static/src/o_spreadsheet/o_spreadsheet_extended.dark.scss @@ -2,6 +2,9 @@ // we have the proper scss tool chain to support dark theme properly // in the library .o-spreadsheet { + .o-spreadsheet-topbar { + background-color: #fff !important; + } .o-filter-menu { background-color: #fff !important; } @@ -12,10 +15,10 @@ background-color: #fff !important; } .o_field_tags .badge { - background-color: #fff !important; - color: #777 !important; + background-color: #e6dddd !important; + color: #3c3c3c !important; } - .o_field_selector_chain_part { + .o_model_field_selector_chain_part { background: #f6f7fa !important; border-color: #d5dae8 !important; } @@ -23,7 +26,7 @@ color: #333 !important; } .o_input { - color: #777 !important; + color: #3c3c3c !important; } .o_domain_leaf_info { background: #f6f7fa !important;