Skip to content

Commit

Permalink
[TASK]: customize colors in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
albig committed Sep 26, 2023
1 parent 99921f1 commit 26aea5b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions verdigado_attendance/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions verdigado_attendance/static/src/scss/backend.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
9 changes: 9 additions & 0 deletions verdigado_attendance/static/src/scss/primary_variables.scss
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 26aea5b

Please sign in to comment.