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
Chore: change dark mode to use Bootstrap's color modes #4174
Chore: change dark mode to use Bootstrap's color modes #4174
Conversation
Hello @ThaFog, thank you very much for submitting this PR to us! This is what will happen next:
Please allow up to 7 days for an initial review. We're all very excited about new pull requests but we only do this as a hobby. |
Edit: I fixed the couple small things I noticed. In general Im OK with this but yea, curious about what the perceived advantage is & your theme idea |
With only this there's barely any advantage other than utilizing bs feature. However there should be after bigger theming refactor (eg. sticking more to bootstrap's variables) so I'd treat it as some step towards it. This is at least a starting point for me. As I said, I felt like it's good to PR this here as I've done this anyway. Next work I guess will be more related to refactoring and changing theme. About the theme itself - in general I try to unify look of every app I have on my personal homeserver wherever this is possible. My styling is also based on bootstrap which you can find here: https://bootstrap.lukester.app/ . So in the end the transition should be easier + if you like it in the end, I'd be happy to share it. Btw. sorry for these borders, I was testing it on fresh instance |
872d0cc
to
b9e5e03
Compare
Codecov Report
@@ Coverage Diff @@
## dev #4174 +/- ##
==========================================
- Coverage 95.36% 95.36% -0.01%
==========================================
Files 339 339
Lines 12892 12889 -3
Branches 1060 1058 -2
==========================================
- Hits 12295 12292 -3
Misses 592 592
Partials 5 5
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
b9e5e03
to
bbbe572
Compare
Yea, so this also broke the 'live' application of toggling "use system settings". I've simplified things, I think we really only need 3 cases: "use system settings" = "auto" otherwise dark or light. Let me know if you have any issues, Im ok to merge this (a lot of work to arrive back where things are currently =), if you have larger ideas about themeing please open a discussion or find us in the chat. |
Huh sorry once again for that, I see it was indeed quick testing on my side. Anyway sure I can show you everything when I'm done so we'll be able to discuss the final direction if it turns out to be going into official repo |
cf8a4da
to
492dece
Compare
* Change setting dark mode to use Bootstrap's data-bs-theme attribute * Update dark mode styling to use Bootstrap's color mode attribute * Update unit tests and lints * Fix not reflecting custom theme color * Remove commented-out code * fix inverted thumbnails in dark mode & card borders * prettier * Fix application of dark mode, tests --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. |
Proposed change
I'm working on custom theme for paperless and needed to refactor this anyway so maybe it would be actually worth to add.
Currently paperless has it's own mechanism to set specific theme. Bootstrap 5.3 implemented color modes functionality which is then used for dark mode. Since paperless uses Bootstrap, it'd be good to actually utilize this functionality for dark mode.
Type of change
Checklist:
pre-commit
hooks, see documentation.