diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..bccb4df --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2021 Akretion (https://www.akretion.com). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Custom Background", + "summary": "change background", + "version": "14.0.1.0.0", + "category": "Theme/Creative", + "author": " Akretion", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "web_responsive", + ], + "data": [ + "views/assets.xml", + ], +} diff --git a/readme/DESCRIPTION.rst b/readme/DESCRIPTION.rst new file mode 100644 index 0000000..f480a39 --- /dev/null +++ b/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +1. mettre une image dans static/src/img +2. mettre son nom ligne 8 dans static/src/css/custom_background.scss + par exemple : background: url("../img/randonnee-montagne-tohapi.jpg"); diff --git a/static/src/css/custom_background.scss b/static/src/css/custom_background.scss new file mode 100644 index 0000000..47e37a8 --- /dev/null +++ b/static/src/css/custom_background.scss @@ -0,0 +1,13 @@ +/* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ +// customized background image +.o_menu_apps { + user-select: none; + + .dropdown-menu { + @include full-screen-dropdown(); + background: url("../img/randonnee-montagne-tohapi.jpg"); + background-size: cover; + background-position: center; + + } +} diff --git a/static/src/img/randonnee-montagne-tohapi.jpg b/static/src/img/randonnee-montagne-tohapi.jpg new file mode 100644 index 0000000..292a421 Binary files /dev/null and b/static/src/img/randonnee-montagne-tohapi.jpg differ diff --git a/views/assets.xml b/views/assets.xml new file mode 100644 index 0000000..6c2de46 --- /dev/null +++ b/views/assets.xml @@ -0,0 +1,15 @@ + + + +