Feature #13788
openDark mode support, e.g. by updating to Bootstrap 5.3
100%
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 5 months 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
Updated by Romain Mardulyn about 2 months ago
- Related to Bug #13683: Correct WSlider fill using Bootstrap 5 added
Updated by Romain Mardulyn about 2 months ago
- Status changed from New to InProgress
Updated by Romain Mardulyn about 2 months ago
- Status changed from InProgress to Review
Updated by Matthias Van Ceulebroeck about 2 months ago
- Target version set to 4.12.1
Added to #13683 (due to theme rebuilding there).
Updated by Matthias Van Ceulebroeck about 1 month ago
- Status changed from Review to Implemented @Emweb
- Assignee set to Romain Mardulyn
- % Done changed from 0 to 100
Updated by Matthias Van Ceulebroeck about 1 month ago
- Status changed from Implemented @Emweb to Implemented @Test
Updated by Matthias Van Ceulebroeck 29 days ago
- Status changed from Implemented @Test to Closed
Updated by Michael Seibt 23 days ago
This feature request has not been addressed at all by the "related issue" #13683 (which was closed with v4.12.1).
Please reopen and give feedback! Thank you in advance!
Updated by Matthias Van Ceulebroeck 17 days ago
- Status changed from Closed to New
- Assignee deleted (
Romain Mardulyn) - Target version changed from 4.12.1 to 4.14.0
Indeed, while Bootstrap allows you to implement this by means of a simple "toggle", this makes some assumptions that all coloring is done by means of Bootstrap.
This will result in some significant changes, such that Wt will define its own set of theme colors, and use them consistently. These can then be mapped to Bootstrap's colors.