iFrame force light/dark mode (prefers-color-scheme)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Hi,
I try to implement nextclouds calendar via iframe into a website, the website is completely held in white, but as my windows settings are set to dark, the iframed calendar is black, which doesn't match the theme.
I tried with like changing all css for iframes, but it takes much time and discolors other.
I propose an enhancement when making iframe like ?force_color_scheme=light
Think it has to to with this pull
nextcloud/server#21366
Is this something that could be impelemented?
https://github.com/nextcloud/calendar/issues/3416#issuecomment-968159071
Here you can see how it looks and why it would be a good feature.
Thanks
I could try work on this myself, if I get a little help how to start.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing nextcloud/server#21366 and the linked calendar issue comment to understand the existing color-scheme behavior for embedded content. Done would mean a supported way to force the embedded calendar to use a light or dark scheme without changing unrelated iframe styling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, php
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100