diff --git a/web_company_color/README.rst b/web_company_color/README.rst index 09d3abfb2..244e38d33 100644 --- a/web_company_color/README.rst +++ b/web_company_color/README.rst @@ -7,7 +7,7 @@ Web Company Color !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:0d77639a7fc2cad4e3f3eefdb495036be87e1f9487c6601a255ff3b5ec96a071 + !! source digest: sha256:7aa40c74a29d5847a8a2ed05439d04e0991d362b95ec6969cb92e3bf2aeec8b7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/web_company_color/__manifest__.py b/web_company_color/__manifest__.py index 527788a47..368392e52 100644 --- a/web_company_color/__manifest__.py +++ b/web_company_color/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Web Company Color", "category": "web", - "version": "16.0.1.2.0", + "version": "16.0.1.2.2", "author": "Alexandre Díaz, Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", "depends": ["web", "base_sparse_field"], diff --git a/web_company_color/migrations/16.0.1.2.1/post-migration.py b/web_company_color/migrations/16.0.1.2.1/post-migration.py new file mode 100644 index 000000000..73b0a471b --- /dev/null +++ b/web_company_color/migrations/16.0.1.2.1/post-migration.py @@ -0,0 +1,9 @@ +# Copyright 2024 Tecnativa - Carlos Roca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + companies = env["res.company"].search([("company_colors", "!=", False)]) + companies.scss_create_or_update_attachment() diff --git a/web_company_color/models/res_company.py b/web_company_color/models/res_company.py index a3cc14b05..4bd8b7403 100644 --- a/web_company_color/models/res_company.py +++ b/web_company_color/models/res_company.py @@ -83,8 +83,15 @@ class ResCompany(models.Model): .o_arrow_button.btn-primary.disabled { color: %(color_link_text)s !important; } - .o_required_modifier.o_input, .o_required_modifier .o_input { - background-color: lighten(%(color_button_bg)s, 10%%) !important; + .o_required_modifier{ + :focus-within { + --o-input-border-color: %(color_button_bg)s !important; + --o-caret-color: %(color_button_bg)s !important; + } + input:hover, .o_field_many2one_selection:hover { + --o-input-border-color: %(color_button_bg)s !important; + --o-caret-color: %(color_button_bg)s !important; + } } """ @@ -172,14 +179,13 @@ class ResCompany(models.Model): "color_navbar_bg": (values.get("color_navbar_bg") or "$o-brand-odoo"), "color_navbar_bg_hover": (values.get("color_navbar_bg_hover")), "color_navbar_text": (values.get("color_navbar_text") or "#FFF"), - "color_button_bg": values.get("color_button_bg") or "$primary", + "color_button_bg": values.get("color_button_bg") or "#71639e", "color_button_bg_hover": values.get("color_button_bg_hover") - or 'darken(theme-color("primary"), 10%)', + or "darken(#71639e, 10%)", "color_button_text": values.get("color_button_text") or "#FFF", - "color_link_text": values.get("color_link_text") - or 'theme-color("primary")', + "color_link_text": values.get("color_link_text") or "#71639e", "color_link_text_hover": values.get("color_link_text_hover") - or 'darken(theme-color("primary"), 10%)', + or "darken(#71639e, 10%)", } ) return values diff --git a/web_company_color/static/description/index.html b/web_company_color/static/description/index.html index e6d3baa9a..f94fbabc7 100644 --- a/web_company_color/static/description/index.html +++ b/web_company_color/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:0d77639a7fc2cad4e3f3eefdb495036be87e1f9487c6601a255ff3b5ec96a071 +!! source digest: sha256:7aa40c74a29d5847a8a2ed05439d04e0991d362b95ec6969cb92e3bf2aeec8b7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module change navbar colors based in the company logo colors.

@@ -430,7 +430,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.