Feature/web darktheme - adding the basics for a dark theme toggle#972
Feature/web darktheme - adding the basics for a dark theme toggle#972meteiorman wants to merge 10 commits intoLizardByte:nightlyfrom
Conversation
ReenigneArcher
left a comment
There was a problem hiding this comment.
Thank you for this PR! I think it will be a great addition to Sunshine!
5130f7f to
189180b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
cbe179c to
6b4d4c0
Compare
|
I pushed a commit that allows us to get any asset from the
I didn't look much into the reason, but didn't see any errors in console. |
|
A JavaScript toggle works, but most websites just use css media queries for dark/light mode if they have separate styles |
Since he's running Bootstrap on the page I went ahead and tapped into the bootstrap functionality which uses a class on the page. I'm not able to troubleshoot the issue @ReenigneArcher is having yet, though if you have any ides @DanTheMan827 This is the Codepen I built to kick things off, if it helps: https://codepen.io/jspeer/pen/KKxQWBy |
|
Here are some screenshots. Some of the js/css is slow to load, but every resource does load after 1 or 2 seconds at least. The head tag does have the |
|
Updating w/ rebase to make this easier to fix conflicts after adjusting clang-format rules |
c5c0d01 to
ffcd138
Compare
|
Good catch, that's totally the issue - I'm basing it off of 5.3 - since you're using stock Bootstrap, I had pulled the latest from their page to get the color picker to work. I wasn't sure how those packages get updated so I didn't commit that latest version in my code. You could pause this until 5.3 is out of alpha, or go with alpha 3 for now and it'd probably work just fine as well. |
|
@meteiorman bootstrap has been updated to v5.3.0 now. Could you fix the conflicts in your PR and we can resume this development/testing? |
|
Would like to have this feature added, but closing due to no response. |




Description
Adding a toggle for theme: dark/light/auto in the web UI
it sets a cookie so it can be set per device
Basic functionality seems to be in place but can be expanded further if needed
NOTE: This is my first ever pull request so PLEASE help me review and test the code to make sure I didn't break anything. I'm a rookie in here. Thanks!
Screenshot
Issues Fixed or Closed
Type of Change
.github/...)Checklist
Branch Updates
LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.