fix: proper Odoo 19 dark mode detection via cookie-based theme_detect.js
Odoo 19 does NOT use .o_dark class or data-bs-theme attribute. It sets color-scheme via SCSS and stores preference in color_scheme cookie. Added theme_detect.js that reads the cookie and sets data-woo-theme="dark" on <html> for reliable CSS targeting. Fixed CSS dark mode selectors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
],
|
||||
'assets': {
|
||||
'web.assets_backend': [
|
||||
'fusion_woocommerce/static/src/js/theme_detect.js',
|
||||
'fusion_woocommerce/static/src/css/woo_styles.css',
|
||||
'fusion_woocommerce/static/src/js/ajax_search.js',
|
||||
'fusion_woocommerce/static/src/js/product_mapping.js',
|
||||
|
||||
Reference in New Issue
Block a user