Questions tagged [lightmode]
35 questions
0
votes
1 answer
In Google Apps Script, is there a way to define two versions of the logoUrl, one for dark mode and one for light?
I'm using Apps Script to create an add-on for extending Gmail. I'm using a black & white icon and it looks great when the user's Gmail UI is in light mode, but becomes invisible in dark mode. Is there a way to use two different logoUrl's, one for…

Carmen DiMichele
- 555
- 4
- 18
0
votes
0 answers
Retreiving JS cookies work on apache localhost but not on the server
I'm adding light mode to my website but I'm facing the problem when I try to retrieve that cookie to display either dark or light mode. Everything works perfectly and as intended with apache localhost but whenever I upload it to the actual server…

Alex Clark
- 1
- 1
0
votes
2 answers
how do i make light mode stay when switching pages?
so my website is dark mode by default and i have added a light mode button to make the website light
and i want the light mode to stay when switching pages, how can i make the light mode stay when switching pages.
JS
//light mode for home…

Alex Naemi
- 33
- 5
0
votes
1 answer
How to emulate Emulate CSS media feature prefers-color-scheme using JavaScript or CSS?
How to emulate Emulate CSS media feature prefers-color-scheme using JavaScript or CSS, not in Chrome Developer Tools?
I tried color-scheme: light and color-scheme: dark but doesn't work as expected.
const changeColorSchemeButton =…

Faizan Anwer Ali Rupani
- 605
- 11
- 31
0
votes
0 answers
want to change the splash screen by app theme, not device theme
in Flutter I want to change the splash screen of the app according to the theme set by the app, but I can't find a way.
Instead of changing it according to the theme of the device itself, I would like to use the theme set by the app

devjang
- 1
0
votes
2 answers
Android Material3 toggle dark mode on click
I want to implement a switch for toggling dark mode in my application. After investigating multiple sources on how to do this correctly, I came across this one-line…

Bravo
- 1,944
- 4
- 29
- 53
0
votes
1 answer
How can I apply dark mode on button in flutter?
I wanted to apply dark mode on buttons. It is applied on texts, now I am trying to apply it on button. I am unable to figure out what button I should use that would take the primary colour from the MyThemes class. Kindly help me through…

Usama Bin Tahir
- 143
- 1
- 11
0
votes
4 answers
How to create dark/light theme in Bootstrap 5 with React
I'm stuck with developing a light/dark mode with bootstrap in react, how can I do this? Is there any example video or code or anything you know about it? I found in youtube only plain css and since I'm using bootstrap I'm afraid that won't work for…

сꝛıϻѕοɴ ᴠᴇɴoϻ
- 1
- 3
- 17
0
votes
1 answer
Flutter Substitute for accentColor
I trying to make a light theme and a dark theme for my app, I making an course of flutter and the code it's a little out of date and some commands doesn't work in the actual version of Flutter, in special the Themedata.accentColor or just…

gut
- 29
- 1
- 6
0
votes
1 answer
How to force darkmode in Android?
The problem i am facing is that i have a custom darkmode on my html website. Android has a darkmode function on their phones (same for IOS). Those functions apply a filter on my website, but i want them to use my custom code for it. How to i force…
0
votes
1 answer
Saving a cookie for darkmode/lightmode JS - Issues
I am trying to make the cookie load when the body does, and then check what value it is. If darkmode = true, then it should display css/cssmain.css. If it is false, it should display css/csslight.css. The cookie works: If I use the button to switch…
user15490220
0
votes
2 answers
How can I save cookies for dark mode and light mode toggling?
I can't quite figure out how to save the selection for dark/light mode as a cookie.
Here is the webpage I am trying it on:
https://schooloffish.info/index.html
Tried w3schools code for cookies but I can't get it to work. Any help is appreciated.
user15490220
0
votes
2 answers
Set CardView color separate from App Background Color XML (light view)
I'm trying to set the background color for light mode in my app. The cards I'm displaying should be white in either light or dark mode.
Everything I'm reading is telling me that I can simply place the line:
app:cardBackgroundColor="#FFEF00"
into my…

petestmart
- 500
- 11
- 27
0
votes
0 answers
How to use flutter_tex (Flutter) with light mode?
I'm using the package flutter_tex 4.0.3 and I have a problem: if I understood correctly, flutter_tex uses a webview, and apparently the flutter webview forces the dark mode when the dark mode of Android is enabled.
More clearly, how do I use…

ThomasG2201
- 676
- 6
- 25
0
votes
0 answers
Turn off GitHub enterprise dark mode in Firefox
I am desperately looking for options to turn off the dark mode on the GitHub pages. It is painful to see dark screens in the daytime.
I tried adding plugins to Firefox to disable the darkening, but the plugins are not useful.
Screenshot attached…

Harish
- 638
- 1
- 10
- 20