-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[18.0][MIG] web_dark_mode: Migration to 18.0 #3324
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
Conversation
|
Thanks, it works for me. Did you test the dashboard? The background is white. |
- wait after PR OCA#3324 Liam Noonan <ljmnoonan@gmail.com>
The dashboard is, unfortunately, mostly canvas elements that I presume are rendered by JavaScript somewhere. I didn't look into it too much this time, but hopefully I'll be able to get it sorted later. |
|
FWIW, I have this in .app-menu-container {
background-image: url(/lambdao_web/static/src/img/logo_grey.svg) !important;
background-position: bottom right !important;
background-repeat: no-repeat !important;
background-size: 10% !important;
background-color: #899499 !important;
}and this in .app-menu-container {
background-color: #213330 !important;
}in any case, you don't need any JS to fix that. I had put a bunch of theme fixes for all the things I found egregious, this one being the worst offender :-) |
|
@len-foss |
|
@len-foss,
Now, I am not very good with javascript, but it does seem that this is all being rendered in o_spreadsheet.js and the styles that are controlled by SCSS are deliberately set to stay in light mode even when dark mode is active in o_spreadsheet_extended.dark.scss the first lines of which contain a comment mentioning that odoo does not currently have an adequate toolchain to support darkmode in spreadsheet. |
|
Oh sorry for the confusion. After the previous message I saw that I had a bunch of "fixes" to the dark mode, but without proper doc on chat it was. I agree with your analysis 👍 |
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_AR/
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/
Set attachment image background to white and fix the column background when hovering with a draggable card
…in forms It was being set to $o-form-lightsecondary which I set lighter, so this tones it down a bit.
I don't want to but my email on a public repo, so I just linked my github page instead. I could not find any guideline against this, but please correct me if there is.
7f977b2 to
a62a759
Compare
web_dark_mode is not merged yet. OCA#3324
|
Can you review please @legalsylvain @yajo @LoisRForgeFlow |
|
@len-foss, would you mind reviewing this so we could maybe get some movement? |
len-foss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In any case, I don't see any good reason to stall the PR, except demoralization of potential contributors.
For completeness, there are some issues left (I guess left from the implementation of dark mode in CE that is severely lacking) -- checking on the runboat, I could see the following, by example.
I think that's because |
|
@len-foss and @pedrobaeza |
Also, btw, I have #3394 open to make |
pedrobaeza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need, let's move with this:
/ocabot migration web_dark_mode
/ocabot merge nobump
@len-foss the problem about merging without proper reviewing from trusted reviewers is to lower the quality perception of people using OCA modules. I try to push some of them when others that are more or less familiar do reviews, but there's also a trend of some people "spitting" migration PRs (or even imp) not being even properly tested in their end.
|
What a great day to merge this nice PR. Let's do it! |
|
This PR has the |
|
@ljmnoonan but are you using |
|
Congratulations, your PR was merged at a111fc8. Thanks a lot for contributing to OCA. ❤️ |
|
@ljmnoonan oh, sorry for the noise again -- I just hopped on runboat without much more checks (and I was indeed confused as to how such an obvious issue could have been overlooked). Thanks for your work! |
|
@pedrobaeza, I don't have any real production deployments yet as I am just learning in my free time with the goal of eventually setting this up at the place I work (a lumber yard). I do like having As for the idea of moving Thank you for the approval on this PR too! |
|
@ljmnoonan that's at least less aggressive, but I suppose that only in dark mode. What I mean is to touch the light part in And congratulations for your work. |
|
@pedrobaeza Ah, I see what you mean; integrate dome of the functionality of |



This PR includes and supersedes #3267 with the permission of @len-foss.
Migrates
web_dark_modefrom 16 to 18 and overhauls the SCSS not only to look better, but also to correspond to Odoo's native structure as seen in thewebmodule.As with the previous version, its scope is limited to the backend, and so has no effect on POS or website.
Also, I have submitted #3322 to make
web_theme_classicget along with this dark mode hope to do the same forweb_responsivesoon.Looking forward to any feedback!