nicolasprigent / Dokuwiki-Kiwiki-Theme

Flex theme for Dokuwiki
https://www.dokuwiki.org/template:kiwiki
GNU General Public License v2.0
9 stars 3 forks source link

Light-Mode as default #29

Open suther opened 5 days ago

suther commented 5 days ago

Is it possible to set the LightMode as default. From time to time, if I come back to my wiki, it's set to darkmode. I dislike this.

It would be very nice if there would be an option in the settings to just force the preferred mode - and also to hide the "mode-switch-button" in the frontend optionally too.

nicolasprigent commented 5 days ago

Hello @suther I've made an update to the js code, because the cookie was not set on the root path, so each pages was getting it's own cookie :/ now when you click on the theme switcher button, the chosen theme stays in place on each pages (you might need to delete cookies on your wiki domain).

suther commented 5 days ago

Ok, but what if cookies are cleared ? What will be the default-color? Would be nice to have a way in the options to force one of both as default (even if cookies are removed, and user come back)

nicolasprigent commented 5 days ago

The default color is the system color, like in windows, if you have your system using dark colors, the website will be dark. I'll make some option to force the theme color, I have to think about it.

nicolasprigent commented 4 days ago

hello @suther , you now have a new option in the settings to set and force the default theme : you can choose to set light theme by default, and force it so that everyone would have this theme visible. Forcing the theme disables the button in the header. image Let me know if that works for you ?