diff --git a/fusion-woo-odoo/.DS_Store b/fusion-woo-odoo/.DS_Store new file mode 100644 index 00000000..8083d71a Binary files /dev/null and b/fusion-woo-odoo/.DS_Store differ diff --git a/fusion-woo-odoo/fusion-woodoo.zip b/fusion-woo-odoo/fusion-woodoo.zip new file mode 100644 index 00000000..fc9aa8ec Binary files /dev/null and b/fusion-woo-odoo/fusion-woodoo.zip differ diff --git a/fusion-woo-odoo/fusion_woocommerce/static/src/css/woo_styles.css b/fusion-woo-odoo/fusion_woocommerce/static/src/css/woo_styles.css index 0b8e09aa..0a13ff36 100644 --- a/fusion-woo-odoo/fusion_woocommerce/static/src/css/woo_styles.css +++ b/fusion-woo-odoo/fusion_woocommerce/static/src/css/woo_styles.css @@ -476,3 +476,82 @@ body.o_dark { width: 36px; text-align: center; } + +/* ---------------------------------------------------------- + Theme-aware utility classes + ---------------------------------------------------------- */ +.woo-text-muted { color: var(--woo-text-muted) !important; } +.woo-text-faint { color: var(--woo-text-faint) !important; } + +/* Inline code snippets (SKU etc.) */ +.woo-code { + font-family: monospace; + font-size: 0.85em; + padding: 1px 6px; + border-radius: 4px; + background: var(--woo-bg-tertiary); + color: var(--woo-text-secondary); +} + +/* ---------------------------------------------------------- + Client action wrapper — ensure background matches theme + ---------------------------------------------------------- */ +.o_action.o_client_action .woo-dashboard, +.o_action.o_client_action .p-3 { + background: var(--woo-bg-primary); + color: var(--woo-text-primary); + min-height: 100%; +} + +/* ---------------------------------------------------------- + Form view overrides — theme-aware inputs in Odoo forms + ---------------------------------------------------------- */ +.o_form_view .woo-table th { + background: var(--woo-bg-tertiary); + color: var(--woo-text-secondary); +} +.o_form_view .woo-table td { + color: var(--woo-text-secondary); + border-bottom-color: var(--woo-border-light); +} + +/* ---------------------------------------------------------- + Checkbox overrides for dark mode + ---------------------------------------------------------- */ +.woo-table input[type="checkbox"], +.woo-topbar input[type="checkbox"] { + accent-color: var(--woo-accent); +} + +/* ---------------------------------------------------------- + Select dropdown — theme aware + ---------------------------------------------------------- */ +.woo-topbar select { + background: var(--woo-input-bg); + color: var(--woo-text-primary); + border-color: var(--woo-input-border); +} +.woo-topbar select option { + background: var(--woo-bg-primary); + color: var(--woo-text-primary); +} + +/* ---------------------------------------------------------- + Odoo native overrides for our views + These ensure Odoo's own notebook/tab/statusbar elements + inside our module's form views respect the theme. + ---------------------------------------------------------- */ +.o_form_view .o_notebook .nav-link { + color: var(--woo-text-muted); +} +.o_form_view .o_notebook .nav-link.active { + color: var(--woo-text-primary); +} + +/* ---------------------------------------------------------- + Ensure strong/bold text uses theme colour + ---------------------------------------------------------- */ +.woo-table strong, +.woo-card strong { + color: var(--woo-text-primary); +} diff --git a/fusion-woo-odoo/fusion_woocommerce/static/src/xml/dashboard.xml b/fusion-woo-odoo/fusion_woocommerce/static/src/xml/dashboard.xml index 371991c5..2eb2df4c 100644 --- a/fusion-woo-odoo/fusion_woocommerce/static/src/xml/dashboard.xml +++ b/fusion-woo-odoo/fusion_woocommerce/static/src/xml/dashboard.xml @@ -125,7 +125,7 @@ - Never + Never diff --git a/fusion-woo-odoo/fusion_woocommerce/static/src/xml/product_mapping.xml b/fusion-woo-odoo/fusion_woocommerce/static/src/xml/product_mapping.xml index 0a02065a..d6d7dbd5 100644 --- a/fusion-woo-odoo/fusion_woocommerce/static/src/xml/product_mapping.xml +++ b/fusion-woo-odoo/fusion_woocommerce/static/src/xml/product_mapping.xml @@ -78,17 +78,17 @@ @@ -144,7 +144,7 @@ t-on-change="() => this.toggleSelectMapped(p.id)"/> - + @@ -177,7 +177,7 @@ Map Selected - + Select one Odoo product and one WooCommerce product to map them. @@ -215,7 +215,7 @@
- +