From 26aea5b00948ff7696f2d8744770014559f6e9e5 Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Tue, 26 Sep 2023 16:24:39 +0200 Subject: [PATCH 1/2] [TASK]: customize colors in backend --- verdigado_attendance/__manifest__.py | 3 +++ verdigado_attendance/static/src/scss/backend.scss | 13 +++++++++++++ .../static/src/scss/primary_variables.scss | 9 +++++++++ 3 files changed, 25 insertions(+) create mode 100644 verdigado_attendance/static/src/scss/primary_variables.scss diff --git a/verdigado_attendance/__manifest__.py b/verdigado_attendance/__manifest__.py index beab014..b877059 100644 --- a/verdigado_attendance/__manifest__.py +++ b/verdigado_attendance/__manifest__.py @@ -26,6 +26,9 @@ "views/hr_menu_human_resources_configuration.xml", ], "assets": { + "web._assets_primary_variables": [ + "verdigado_attendance/static/src/scss/primary_variables.scss", + ], "web.assets_backend": [ "verdigado_attendance/static/src/scss/backend.scss", "verdigado_attendance/static/src/js/systray.esm.js", diff --git a/verdigado_attendance/static/src/scss/backend.scss b/verdigado_attendance/static/src/scss/backend.scss index cb0e283..9d10e41 100644 --- a/verdigado_attendance/static/src/scss/backend.scss +++ b/verdigado_attendance/static/src/scss/backend.scss @@ -7,3 +7,16 @@ div.o_cp_buttons button.btn.btn-secondary.btn-allocation { display: none; } + +.o_hr_attendance_kiosk_backdrop { + background-color: #F5F1E9; +} + +/* Kiosk mode */ +.o_hr_attendance_kiosk_mode { + background-color: #ffffff; +} + +.o_hr_attendance_kiosk_mode .o_hr_attendance_user_badge { + background: linear-gradient(90deg, #006E2E, #008939); +} diff --git a/verdigado_attendance/static/src/scss/primary_variables.scss b/verdigado_attendance/static/src/scss/primary_variables.scss new file mode 100644 index 0000000..6c7d454 --- /dev/null +++ b/verdigado_attendance/static/src/scss/primary_variables.scss @@ -0,0 +1,9 @@ +// overwrite defaults in addons/web/static/src/legacy/scss/primary_variables.scss + +$o-community-color: #005437; +$o-enterprise-color: #005437; +$o-enterprise-primary-color: $o-community-color; + +$o-community-color: $o-community-color; +$o-brand-odoo: $o-enterprise-color; +$o-brand-primary: $o-community-color; From 7443cb061b67bbd8db550b40ac3bc06bff4f457a Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Tue, 26 Sep 2023 16:40:58 +0200 Subject: [PATCH 2/2] Fix format of hex color codes --- verdigado_attendance/static/src/scss/backend.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/verdigado_attendance/static/src/scss/backend.scss b/verdigado_attendance/static/src/scss/backend.scss index 9d10e41..350c930 100644 --- a/verdigado_attendance/static/src/scss/backend.scss +++ b/verdigado_attendance/static/src/scss/backend.scss @@ -9,7 +9,7 @@ div.o_cp_buttons button.btn.btn-secondary.btn-allocation { } .o_hr_attendance_kiosk_backdrop { - background-color: #F5F1E9; + background-color: #f5f1e9; } /* Kiosk mode */ @@ -18,5 +18,5 @@ div.o_cp_buttons button.btn.btn-secondary.btn-allocation { } .o_hr_attendance_kiosk_mode .o_hr_attendance_user_badge { - background: linear-gradient(90deg, #006E2E, #008939); + background: linear-gradient(90deg, #006e2e, #008939); }