Questions tagged [lightmode]
35 questions
3
votes
1 answer
Color change from light-mode to dark-mode not working in SwiftUI on real device
Using Swift5.3.2, iOS14.4.1, Xcode12.4,
I try to make a custom-Color change when switching from light to dark mode in SwiftUI.
Here is my code:
import SwiftUI
struct MyTestView : View {
var body: some View{
VStack {
…

iKK
- 6,394
- 10
- 58
- 131
2
votes
1 answer
React Native DateTime Picker Dynamic Dark/Light Mode
I struggle to find a DateTime Picker library for React Native which supports dynamic changes from light to dark mode or any other styling changes on runtime for that matter. The library I use now and is the most common, you can only change…

Stefan Bratanov
- 101
- 9
2
votes
1 answer
Flutter theme changing clicking on IconButton and SwitchTile
My app currently has a SwitchTile in the Drawer to set the theme but I also want to change it in a detail page using an IconButton.
I'm a newbie in Flutter and programming, so I'm not an expert and I think that I'm using the onPressed event in the…

theFreeman96
- 114
- 1
- 8
1
vote
1 answer
How can I ensure my email design stays consistent across light and dark mode settings?
How to make my email design stay the same regardless of the theme setting the user uses on his device.
Per se:
I want my email to look the same if my user has light mode on or dark mode on.
An example would be Gmail App automatically changing my…

th0tminik
- 21
- 4
1
vote
1 answer
Github Darkmode vs lightmode images and PyPi
GitHub supports multiple ways to have a logo displayed depending on dark/light mode. Somehow, any of these options do not seem to work well when the GitHub repository is a Python project uploaded to PyPi.
Here is what I tried, and the effects in…

Albert
- 163
- 1
- 7
1
vote
2 answers
Light mode and Dark mode using Native-Base
I'm trying to implement light and dark mode in my code but i got stuck. I have a theme file to global changes and i need to create a button to change the theme when pressed.
My theme file is that:
import { extendTheme } from 'native-base'
const…

Leonardo Girardi
- 11
- 1
1
vote
2 answers
Dark Mode in react using MUI v5
Trying to create a Toggle to switch from dark mode to light mode has been quite difficult for me in v5.
Using the code directly from MUI Sandbox MUI darkmode, I attempted to separate the code to work in the app.js and my…

Adnan Said
- 23
- 1
- 4
1
vote
0 answers
Xamarin Forms Light/Dark Without Custom Theme
Is there a way to change dark/light theme in Xamarin Forms without defining a custom theme?
For example, when I go into the iPhone simulator and toggle Settings -> Developer -> Dark Appearance, my app will change appearance. However, the code below…

dalchri
- 97
- 8
1
vote
1 answer
How can I add a DarkMode in React Native?
I am just new to React-Native and I want to build a school app for my school project.
And one of the features in the app should be dark/light mode. I have seen a few videos about the topic, but none of them meet my requirements.
It should be a nice…

fthkryksl
- 27
- 6
1
vote
1 answer
How to store the user input throughout the site and on reload ( switch between dark and light theme )
I am basically setting up a dark mode switch to my site and I want the browser to remember user click from dark to light theme. Code somewhat breakup and not clean but anyhow it works in changing dark & light mode style sheets.

Md Sarfaraz Hussain
- 11
- 4
0
votes
0 answers
How is System Background Colour handled by iOS versions that don't support the light mode / dark mode?
I'm setting up my app so that the UI (mostly in storyboard) uses the default background color / default label color, so that it auto adjusts for dark or light mode.
What happens if the iOS doesn't support light mode / dark mode - does it default to…

Lena Verhoev
- 231
- 1
- 3
- 15
0
votes
0 answers
How do I specify light/dark mode on Font Awesome's icons?
Take this icon for instance: https://fontawesome.com/icons/rug?f=classic&s=solid
You'll see there's a switch for Nox/Lumos:noxlumos
If I add the icon to my webpage without specifying the mode, then it will automatically detect the OS/browser setting…

Carlos
- 3
- 3
0
votes
0 answers
Lightmode of status bar and navigation bar on android in delphi 11.3
I'm trying to set the lightmode of status bar and navigation bar on and off in delphi 11.3 for android. The first problem is that i can't find the "getinsetscontroller". I fix that with the below code that works (not sure if it is the right approach…

xa_la_ra
- 1
- 1
0
votes
1 answer
Light and Dark Mode Not Working on MKDocs. the icon is missing, how to show it?
Yesterday I'm successfully add light and dark mode scheme on MkDocs-material
When I tried to add auto match with system preferences when I click to auto, the icon is missing. So I delete the code for auto and everything is working fine.
Today, I'm…

Angelica Deviana
- 1
- 1
0
votes
1 answer
Linear gradient not working with variables in light/dark themes
I am working on my personal website - https://coordinatedoilylivedistro.elliott23.repl.co - and it has light and dark themes based on preferences. The thing is, is that when I have the linear gradients set to variables, it doesn't work and the whole…

bobacup
- 29
- 4