Questions tagged [darkmode]

General questions related to support of Dark Mode mode themes for OS, framework, and application programming.

Relating to programming for Dark Mode themes. Support of swapping from standard or default modes into Dark Mode.

As more OSes, frameworks, and programs support Light and Dark mode theme selection, programming to handle all theme cases gets complicated, especially on cross-platform apps.

566 questions
4
votes
2 answers

iOS, Swift Application is always running in Dark Mode

So I just want my app to always run in dark mode. Even if the device appearance in in Light I still want the app to run in dark mode. Is this possible?
Micheal
  • 309
  • 4
  • 16
4
votes
4 answers

How can I present a different next/Image based on the user's preferred color scheme?

I'm trying to use a next/image instead of a regular img tag in the code below. With the regular tag, the following achieves exactly what I'm looking for:
Shawn
  • 10,931
  • 18
  • 81
  • 126
4
votes
3 answers

WKWebView Dark and Light Mode with dynamic URL in Swift 5

I created WKWebView that doesn't have one url. User use this WKWebView as Safari means user can search anything on WKWebView. I am facing one issue when I change dark and light mode my web view will show me only white(Light) mode. My app is working…
Yogesh Patel
  • 1,893
  • 1
  • 20
  • 55
4
votes
1 answer

Eclipse - how to change background color of selected file, when Project Explorer View is inactive

I can't see which file is selected in the Project Explorer view when the view is inactive, as the image shows. Someone can help me to change the background color of selected file? Windows 10 Eclipse 2021-03 Dark theme I would like something…
4
votes
4 answers

Facebook Comment Plugin Darkmode Not Working

As the title says, I cannot get the dark mode to work for the facebook comment plugin. I used the tool on FB developers and added the "data-colorscheme="dark"" as per the instructions but it wont work, any ideas?
4
votes
5 answers

changing theme with react native elements not working?

I've been working with react native elements. I want to implement a dark mode to my app but for some reason I cant get the theme prop in to change when my state in my context changes. Here is my context where I have my darkTheme and…
3
votes
1 answer

Get CSS color-changes when using "Auto Dark Mode" in Chrome

I turned on the flag 'Auto Dark Mode for Web Contents' in Chrome using experimental features via chrome://flags entered in omnibox. Then my website is automatically turned into "dark mode". Inspected colors are inverted somehow When I inspect an…
Steve Payne
  • 612
  • 3
  • 8
  • 16
3
votes
1 answer

Next 13 & Tailwind Darkmode Flickering

I'm looking to achieve the results listed in this blog but with Next 13's new appDir. Flicker-free Dark Theme Toggle My darkmode flickers on refresh. // pages/_app no longer exist. How do you alter the < themeProvider > to match the new…
dankswoops
  • 103
  • 7
3
votes
1 answer

Different images for light/dark mode with Material for MkDocs

I am writing documentation using MkDocs and Material for MkDocs. I would like to have an image inside index.md that switch between two different versions when I switch from light to dark mode and vice versa. I've found different solutions online,…
chc
  • 498
  • 1
  • 4
  • 18
3
votes
0 answers

How to make WinForm use the system dark mode theme?

Can WinForm use system dark mode theme like explorer or StartAllBack? I've tried these things: int trueValue = 0x01, falseValue = 0x00; SetWindowTheme(this.Handle, "DarkMode_Explorer", null); DwmSetWindowAttribute(this.Handle,…
Cmo Sekil
  • 43
  • 6
3
votes
3 answers

How to save darkMode in local storage in React?

I want to save in local storage what theme the user has chosen - light or dark, so that when the page refreshes the theme is still current with the user's choice. I tried using the useEffect hook for this, but I am probably doing something wrong. I…
Yerba Mate
  • 113
  • 2
  • 9
3
votes
0 answers

Fooling a Windows program into thinking Windows has a different theme

Here's a recurring problem I've had. I love using a dark theme for my Windows 7 computer. Unfortunately, the only way to get a really dark theme is by choosing the "High Contrast Black" color style, even though I don't really want high contrast,…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
3
votes
3 answers

Xcode warning: 'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead

when updating my App's Deployment target to 15.0, i receive this warning: 'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead I have tried to look on the net what could be done to remediate this, but…
Daniel C
  • 113
  • 1
  • 8
3
votes
1 answer

Need dark/light mode change in OS to force refresh of external SVG files

My website uses many external SVG files with their own