pereus
September 18, 2022, 4:08pm
#1
Hi community!
After some key combination (I don’t know what I’ve typed since I thought I was typing into a form but…I wasn’t ), all Grafana turned white:
Before it was all black (I was in default mode, so I guess it was dark ).
I’ve tried switching to dark and to light mode, but it doesn’t change anything.
Hi @pereus ,
Incase not, then try to set it to dark mode from the settings area and click save as shown in the screenshot;
If that does not change then logout and religion
And even if then does not help, then try to clear browser cache n cookies and test it (you can also test it on a new browser or incognito mode).
I hope this helps.
pereus
September 26, 2022, 2:32pm
#3
Hi @usmanahmad ,
thanks for your answer.
I’ve tried everything you suggested me, but nothing worked. I’m using Grafana in 2 different computers and the problem is the same on both.
Hi @pereus ,
Ok, hmm then might be that the settings are now permanent. Please open the grafana.ini configuration file and find the parameter default_theme
There set it to this;
default_theme = dark
Restart the grafana-server and then it should be back to dark mode
pereus
September 26, 2022, 3:18pm
#5
@usmanahmad I’ve done it and…it’s still all white
What the heck have I done?
Can you paste here the part of the configuration where you set it as:
default_theme = dark
thanks
pereus
September 26, 2022, 5:39pm
#7
Here it is:
# Default UI theme ("dark" or "light")
default_theme = dark
It was already there, I just had to uncomment it.
1 Like
Ok, one last question on this.
Did you try out a different browser to be able to change from the WebUI?
pereus
September 26, 2022, 7:55pm
#9
Yes, I’ve tried Firefox, Firefox incognito, Chrome and Chrome incognito. Always the same.
Thanks for taking the time to analyse this with me!
yosiasz
September 26, 2022, 9:00pm
#10
What file in what folder are you editing?
Ok, I think this might be a bug because when I changed the configuration from black to white while the UI theme is different from what I had defined in the configuration file. The changes did not take effect until manually did it inside the UI.
I will try to get in touch with our team.
@pereus What grafana version you are using?
pereus
September 27, 2022, 9:51am
#13
Thanks!
I’m using v9.1.6 (92461d8d1e)
Hi @pereus ,
I have reported this issue at our GitHub
opened 10:47AM - 27 Sep 22 UTC
area/ui/theme
<!--
Please use this template to create your bug report. By providing as much i… nfo as possible you help us understand the issue, reproduce it and resolve it for you quicker. Therefore take a couple of extra minutes to make sure you have provided all info needed.
PROTIP: record your screen and attach it as a gif to showcase the issue.
- Questions should be posted to: https://community.grafana.com
- Use query inspector to troubleshoot issues: https://bit.ly/2XNF6YS
- How to record and attach gif: https://bit.ly/2Mi8T6K
-->
**What happened**:
While working on an issue at https://community.grafana.com/t/it-all-turned-white-but-im-in-dark-mode/72598 I run into sort of similar (but not 100% exact) problem.
As per the user. he probably pressed a special shortcut key which changed the Default Theme colour from Dark to White and then when trying to change it back into the option via UI settings, cannot set it back to Dark mode
**What you expected to happen**:
The theme gets changed back to Default (dark) mode
**How to reproduce it (as minimally and precisely as possible)**:
I was partially (not as exact as the user because I do not know the secret shortcut key which changes the theme) able to reproduce it like this.
1- Login to Grafana via admin account and change the theme from dark to white (works as expected)
2- Logout from the UI
3- Change the configuration (/etc/grafana/grafana.ini) parameter from;
`default_theme = dark
`
4- Restart the grafana service
5- login back from the admin account
6- The theme is still white (which I changed in step 1)
The expected result should be that the configuration should take effect and the theme changes back to the dark mode
**Anything else we need to know?**:
**Environment**: locally installed
- Grafana version: v9.1.6 (92461d8d1e)
- OS Grafana is installed on: CentOS
- User OS & Browser: reproducible on all Chrome, Firefox and even in their incognito mode (after clearing cache n cookies)
It will be nice if you also keep track of it because I have provided all the possible details from my machine but as your case if a bit different (as do not know what activated the change).
So if there are any questions asked by the developers, please try to answer it with as much details as you can.
Thanks
pereus
September 27, 2022, 12:53pm
#15
Thanks, I’ll keep an eye on it!
Hey @pereus
Please check the GitHub link as just got an update about it. Alteast it’s not a bug, instead a special developer feature to toggle themes.
There is an explanation + answer for this.
I hope this helps.
1 Like
pereus
September 27, 2022, 2:26pm
#17
Checked and solved!
Damned tt
shortcut!!!
Thanks again for the help!
1 Like
Same thing happened to me - glad I’m not the only one! It baffled me when it happened. Maybe there should be a confirm box so it doesn’t catch other users unawares.