nextcloud / nextcloud/server

iFrame force light/dark mode (prefers-color-scheme)

Open
#29,699 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: theming
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.