Skip to content
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

override prefers-color-scheme for iFrame via URL value #28487

Closed
jonathanmmm opened this issue Aug 18, 2021 · 3 comments
Closed

override prefers-color-scheme for iFrame via URL value #28487

jonathanmmm opened this issue Aug 18, 2021 · 3 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement Nice to have

Comments

@jonathanmmm
Copy link

jonathanmmm commented Aug 18, 2021

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
This would make iFrame much more useful. If this is right now possible or somebody knows how I can tweak via the inbuilt CSS app to make it easily only use the light theme for guest/iFrame, that would be great.

Think it has to to with this pull
#21366
or this issue
#12276

@jonathanmmm jonathanmmm added 0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement labels Aug 18, 2021
@szaimen
Copy link
Contributor

szaimen commented Sep 15, 2021

As this sounds like a nice feature, the requests for this are quite low. Currently there are no plans to implement such a feature. Thus I will close this ticket for now. This does not mean we don't want this feature, but it is simply not on our roadmap for the near future. If somebody wants to implement this feature nevertheless we are happy to assist and help out.If you wish to have this feature implemented by the Nextcloud GmbH there is the option for consulting work on top of your Nextcloud Enterprise subscription to get your features implemented.

@moqmar
Copy link

moqmar commented Oct 6, 2021

I agree that this would be great and is needed - this makes it basically impossible to embed a calendar on a website with a consistent color scheme.

There's a line <link rel="stylesheet" media="(prefers-color-scheme: dark)" ...>, basically as far as I can tell all that's required is to remove it when ?force_color_scheme=light is set, and to remove the media attribute if ?force_color_scheme=dark is set. I have no idea though if prefers-color-scheme is used in other stylesheets as well.

@jonathanmmm
Copy link
Author

jonathanmmm commented Jan 18, 2022

Trying to create this feature in this pull request #29940 (right now, still a draft)
Help appreciated (and needed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement Nice to have
Projects
None yet
Development

No branches or pull requests

3 participants