Feature #13788
openDark mode support, e.g. by updating to Bootstrap 5.3
0%
Description
Our customers would like to optionally use dark mode.
What are the plans for updating to Bootstrap 5.3 or newer?
https://getbootstrap.com/docs/5.3/customize/color-modes/
Files
Updated by Christian Meyer 22 days ago
- File ThemeToggleButton.cpp ThemeToggleButton.cpp added
- File ThemeToggleButton.hpp ThemeToggleButton.hpp added
I want that as well!
I just realized the current Bootstrap Version does not Support it, after Spending some time Creating a Theme Toggle Button...
Maybe this might help later.
The Button is fully functional:
sets the theme attribute, even for "potential" BS 5.2.3 Themes with body.dark
support.
Saves the Theme into localStorage.
Retrieves the Theme from localStorage.
Listens to Preferred Theme changes (setting OS Theme)
Updates the Icon on the button.
Supports setting Own Icons and Localizing Theme Names.
Current Themes are Light, Dark, Auto. Icons are the same as Bootstrap toggle Demo