Skip to content

[IMP] web_dark_mode Full CSS customizations#1

Closed
ljmnoonan wants to merge 164 commits intolambdao-dev:18.0-mig-web_dark_modefrom
Pyxiris:18.0-web_dark_mode
Closed

[IMP] web_dark_mode Full CSS customizations#1
ljmnoonan wants to merge 164 commits intolambdao-dev:18.0-mig-web_dark_modefrom
Pyxiris:18.0-web_dark_mode

Conversation

@ljmnoonan
Copy link
Copy Markdown

In your PR on OCA/web, @len-foss mentioned that the CSS would need some polish. This PR fully adapts the UI to dark mode and reorganizes assets, bundles, and their loading order according to Odoo's conventions.

The main colors are taken mostly from VScode's Dark Modern theme.

Please let me know if you would like me to change anything or if you find any mistakes!

simahawk and others added 30 commits December 13, 2024 16:55
On tree views the widget will be initialized once.
Without this change the value displayed is always the same.
Now anchor's text is computed on rendering.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-14.0/web-14.0-web_widget_url_advanced
Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_url_advanced/
badbole and others added 26 commits October 16, 2025 15:19
Currently translated at 100.0% (4 of 4 strings)

Translation: web-16.0/web-16.0-web_dark_mode
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_dark_mode/hr/
Currently translated at 100.0% (4 of 4 strings)

Translation: web-16.0/web-16.0-web_dark_mode
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_dark_mode/tr/
Currently translated at 100.0% (4 of 4 strings)

Translation: web-16.0/web-16.0-web_dark_mode
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_dark_mode/es/
Currently translated at 50.0% (2 of 4 strings)

Translation: web-16.0/web-16.0-web_dark_mode
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_dark_mode/fr/
Currently translated at 100.0% (4 of 4 strings)

Translation: web-16.0/web-16.0-web_dark_mode
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_dark_mode/it/
Also, change asset bundle loading from 'prepend' to 'before' This is in line with Odoo's own way of doing it.
If you go to any activity view and hover over an empty cell you will notice that
without this fix the the on hover background of empty cells (.o_activity_empty_cell) set by
$component-active-bg which is itself set as mix($o-action, $o-gray-100, 20%) through $o-component-active-bg
completely ignores the overrides we set in primary_variables.dark.scss.
This is because the assets for that view are lazy loaded, so we need to include our override
bundles in the lazy bundle.
Just general customizations of BS variables to bring them in line with our style
Add secondary_variables override to get rid of colors that don't jive well with the dark background.
Unfortunately this does introduce an issue where if you have many calendar users, you can run out of colors
This issue exists in the enterprise dark mode as well, so hopefully it will be fixed.
Set the background color to be darker and tone down the border around it.
The styling for the border is borrwed from the style of .o-mail-Composer-bg
Set attachment image background to white and fix the column background when hovering with a draggable card
@ljmnoonan ljmnoonan closed this Oct 16, 2025
ljmnoonan added a commit to Pyxiris/web that referenced this pull request Oct 21, 2025
web_dark_mode is not merged yet.
OCA#3267
And my CSS overhaul here:
lambdao-dev#1
ljmnoonan added a commit to Pyxiris/web that referenced this pull request Oct 21, 2025
web_dark_mode is not merged yet.
OCA#3267
And my CSS overhaul here:
lambdao-dev#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.