Closed 9inpachi closed 2 years ago
Sir I think this issue has already been resolved. Are you talking about the documentation? .
Hey @subho951m,
Good point. So I checked it again and this only happens in the dark theme. If you change your browser's theme to dark and compodoc picks up the settings, it uses the invert compodoc logo which is a different image from what we replace using the gen-api-docs.js script.
@9inpachi Ok sir I will try to solve this problem. Is this issue still opened or have you solved it?
@subho951m It's still open.
@9inpachi sir in my android phone if I choose dark mode + desktop site, I can see that this problem is arising. But on other hand in my pc (windows 10) chrome if I choose "auto dark mode for web content" , the problem is not arising. I am not sure what setting is different in my android mobile and this PC. Can you please help ? this is my android chrome rendering this is my chrome rendering this is my chrome setting for dark mode. can you please help what setting should I do in PC so that it matches the android.
The experimental settings you enabled are different than dark mode. The latest chrome I think is able to pick up the theme based on your Windows preferences. So if you have dark theme enabled on Windows, Chrome should also have it enabled. Otherwise you can try installing this theme https://chrome.google.com/webstore/detail/dark-theme-for-google-chr/annfbnbieaamhaimclajlajpijgkdblo?hl=en.
Apart from this, you should probably look up how getting the dark theme preferences work in JavaScript.
Sometimes, websites also store the theme preferences (as Phoenix does) on your first load and then even if you change the theme of the browser, the preference in the local storage prevails. You can check the local session storage in browser console to see if any option like that is set.
Is this issue open? Can I give it a try?
Hi @MASTERAMARJEET, yes it's still open.
Hello, Thanks @9inpachi. I have created to PR with a possible fix. Kindly have a look.
Since compodoc is updated now, the way the title of API docs is handled is different. Instead of showing the title at the top left of the API docs page, there is a compodoc logo. We should update the Node.js script gen-api-docs.js to remove the code that did the replacement of the text at the top left with the Phoenix logo or adapt it to replace the compodoc logo with the Phoenix logo.