-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Clippy going dark: Adding a dark theme to Clippy's lint list #7030
Conversation
r? @llogiq (rust-highfive has picked a reviewer for you, use r? to override) |
Thank you! @bors r+ |
📌 Commit e25b106 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Well... I don't know why, but it seems like the theme isn't working on the site after the merge 😕 here. I'll try to see if the fix is easy or submit a revert PR until the problem is figured out -.- |
It turns out that |
Quick fix for the updated website theaming to access the correct css files This fixes a problem from #7030 that the service used to access css files was blocked by GitHub pages due to `SSL_ERROR_BAD_CERT_DOMAIN`. The css file loading worked fine during local development. The browser probably disabled some security options due to the local address. This fix works locally and should also work online as it references the direct css files used by the [mdBook User Guide](https://rust-lang.github.io/mdBook/index.html) the disadvantage of this is that refactorings within the mdBook project can have effects on the theme loading of Clippy. This PR is therefor more meant as a quick fix until I find a better solution. I've tested these changes using the page editor in the browser and can now confirm that they work :) changelog: none r? `@llogiq`
This PR adds the MdBook color themes to the lint list of Clippy. Well at least an adaption of these themes.
Here are some beautiful screenshots:
light theme
![image](https://user-images.githubusercontent.com/17087237/113510593-e31fb280-955b-11eb-8ab1-8b5bcf287475.png)
Rust theme
![image](https://user-images.githubusercontent.com/17087237/113510734-79ec6f00-955c-11eb-981c-8ebe890acf79.png)
Coal theme
![image](https://user-images.githubusercontent.com/17087237/113510752-8ec90280-955c-11eb-8f5c-c87ca07c35c2.png)
Navy theme
![image](https://user-images.githubusercontent.com/17087237/113510675-3f82d200-955c-11eb-8992-8c784abe19ea.png)
Ayu theme
![image](https://user-images.githubusercontent.com/17087237/113510700-588b8300-955c-11eb-83e0-a8f770e9f913.png)
The theme is also stored in the browser to ensure that the next session applies the theme and doesn't burn your eyes out.
cc: @matthiaskrgr
Closes #6877
changelog: Clippy's lint list now supports themes