Skip to content

Commit

Permalink
Merge pull request #29 from verdigado/task/customize-colors
Browse files Browse the repository at this point in the history
[TASK]: customize colors in backend
  • Loading branch information
albig authored Sep 27, 2023
2 parents 99921f1 + 7443cb0 commit d05877d
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 d05877d

Please sign in to comment.