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

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

Open
jonathanmmm opened this issue Nov 14, 2021 · 4 comments
Open

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

jonathanmmm opened this issue Nov 14, 2021 · 4 comments
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: theming

Comments

@jonathanmmm
Copy link

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
#21366

Is this something that could be impelemented?

nextcloud/calendar#3416 (comment)
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.

@jonathanmmm
Copy link
Author

Created a pull request:
#29940

@szaimen szaimen added 2. developing Work in progress and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Nov 28, 2021
@jonathanmmm
Copy link
Author

Pull request is a draft right now, could need help, got stuck.

@jonathanmmm
Copy link
Author

@moqmar you seemed interested in this feature, maybe we can try to figure it out together (original issue #28487)

@drmenguin
Copy link

drmenguin commented Feb 5, 2023

Has anyone found a solution to this? I used to override this by editing nextcloud/apps/accessibility/lib/AppInfo/Application.php and overriding prefers-colour-scheme, but since the last upgrade things seem to have been restructured and that file doesn't exist anymore.

@tcitworld tcitworld added 1. to develop Accepted and waiting to be taken care of and removed 2. developing Work in progress labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: theming
Projects
None yet
Development

No branches or pull requests

5 participants