Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dark mode #1021

Open
xmo-odoo opened this issue Dec 13, 2024 · 1 comment
Open

dark mode #1021

xmo-odoo opened this issue Dec 13, 2024 · 1 comment
Labels

Comments

@xmo-odoo
Copy link
Collaborator

No description provided.

@xmo-odoo xmo-odoo moved this to ideas in Mergebot Dec 13, 2024
@xmo-odoo xmo-odoo moved this from ideas to accepted in Mergebot Dec 16, 2024
@xmo-odoo
Copy link
Collaborator Author

xmo-odoo commented Jan 16, 2025

Bootstrap only supports dark mode starting in 5.3, Odoo 17 used 5.1, which has no dark mode support. So:

  • add dark mode by hand using prefers-color-scheme and possibly light-dark and color-scheme

  • stop using website.layout, and switch to an other front-end framework with support for dark themes

    https://picocss.com/ could be a nice pick, the only thing we'd need is a link to the backend (and login) as the rest is mostly irrelevant...

    relevant parent templates: website_templates.xml:/template[@id=layout] < portal_templates.xml:/template[@id=frontend_layout] < webclient_templates.xml:/template[@id=web.frontend_layout] < webclient_templates.xml:/template[@id=web.layout]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: accepted
Development

No branches or pull requests

1 participant