Re: Is there an easy way to remove the icon "Toggle dark theme" at the top of the page?
Petko Yotov <[email protected]> Sun, 06 Jul 2025 23:11:54 +0200
| Newsgroups | gmane.comp.web.wiki.pmwiki.user |
|---|---|
| Message-ID | <[email protected]> |
On 06/07/2025 22:33, Christopher Pinon wrote: > Petko Yotov <[email protected]> writes: > In fact, as it happens, I was experimenting with local.css based on > your > suggestion > > /* Change backgrounds from light gray to light green: */ > #bodywrap, #wikileft, #wikihead-searchform, #wikicmds, .frame { > background-color: #dfd; > } > > from https://www.pmwiki.org/wiki/Skins/PmWiki-responsive , which looks > nice as a light color theme but doesn't work when switching to the > default dark color theme. > > Ideally, I would like to keep the toggle between light color and dark > color, but I would first need to adapt the default dark color theme to > my light color theme. It is now easier to change skin colors, as these are in CSS variables (properties). Something like this, instead of #bodywrap... in local.css may get you started: :root { --pm-frame-bgcolor: #dfd; --pm-bgcolor: #efe; } @media screen { html.pmDarkTheme { --pm-frame-bgcolor: #232; --pm-bgcolor: #121; } } Configuring the dark colors is tricky, and maybe subjective. :-) Petko