krumo
krumo copied to clipboard
How to change skin?
Command krumo::$skin = "default" doesn't work. How does one change the skin?
Skin selection should be done in the krumo.ini
https://github.com/mmucklo/krumo/blob/master/krumo.sample.ini#L20
Getting error messages when using krumo.ini file. [skin] selected = "default"
GET http://localhost/krumo/skins/default/bg.gif 404 (Not Found)
I verified that the file bg.gif is in the directory!
No errors when using selected = "modern"
I just tested with the default
and modern
skins and didn't see any errors. Are you seeing PHP errors, or browser console errors? If you navigate to that URL in your browser normally do you see something?
Errors show up in browser console (Chrome). I am running this locally using Wamp on Windows. In spite of the errors the krumo results do show up.
If you navigate to that URL in your browser normally do you see something?
Yes. The krumo info shows up in spite of the error messages. I guess I'll just ignore the error messages and keep using it.
I'm not following. If you go directly to the URL it shows the image. Inside the context of a normal Krumo page that same URL doesn't load? I don't know how to help with that, as it sounds like something specific to your environment?
krumo for some reason is looking for the images (collapsed.gif and dotted.gif) in the wrong directory when using schablon.com in krumo.ini. I just uninstalled and reinstalled using composer and problem remains. It's looking for these images in the image directory instead of looking in vendor\mmucklo\krumo\skins\schablon.com
I'm testing the schablon.com
skin and it appears to be loading just fine. Can you post your krumo.ini
, there might be a CSS config in there that's conflicting?
Here is my test case using that skin.
I did a clone of this repo, and then copied the krumo.sample.ini
to krumo.ini
just to change the skin. Everything else is vanilla.
I'm using a copy of the provided sample krumo.ini and uncommented the line in the [skin] section. Nothing else changed.
That is so weird. I can't recreate what you're seeing. Maybe someone else will be able to?
@scottchiefbaker the images can be put inline inside the css files, so that there are no extra files to load, e.g.
background: url(data:image/gif;base64,R0lGODlhWgAJALMAAP///8vLy+Tk5...zCnNapVdLBAA7);
Some of the skins already do that. I'd welcome patches to convert other skins to do the same.
@scottchiefbaker I've already converted my skins in 2017 in ed1a544595e8. Do you want a pull request or you can just copy the changes made to the css files from that commit?