Project

General

Profile

Actions

Feature #13788

open

Dark mode support, e.g. by updating to Bootstrap 5.3

Added by Michael Seibt about 1 year ago. Updated 8 days ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
06/19/2025
Due date:
% Done:

100%

Estimated time:

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

ThemeToggleButton.cpp (9.45 KB) ThemeToggleButton.cpp Christian Meyer, 07/02/2025 12:09 AM
ThemeToggleButton.hpp (945 Bytes) ThemeToggleButton.hpp Christian Meyer, 07/02/2025 12:09 AM

Related issues 1 (0 open1 closed)

Related to Bug #13683: Correct WSlider fill using Bootstrap 5ClosedRomain Mardulyn04/01/2025

Actions

Updated by Christian Meyer about 1 year ago

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

Actions #2

Updated by Romain Mardulyn 10 months ago

  • Related to Bug #13683: Correct WSlider fill using Bootstrap 5 added
Actions #3

Updated by Romain Mardulyn 10 months ago

  • Status changed from New to InProgress
Actions #4

Updated by Romain Mardulyn 10 months ago

  • Status changed from InProgress to Review
Actions #5

Updated by Matthias Van Ceulebroeck 10 months ago

  • Target version set to 4.12.1

Added to #13683 (due to theme rebuilding there).

Actions #6

Updated by Matthias Van Ceulebroeck 9 months ago

  • Status changed from Review to Implemented @Emweb
  • Assignee set to Romain Mardulyn
  • % Done changed from 0 to 100
Actions #7

Updated by Matthias Van Ceulebroeck 9 months ago

  • Status changed from Implemented @Emweb to Implemented @Test
Actions #8

Updated by Matthias Van Ceulebroeck 9 months ago

  • Status changed from Implemented @Test to Closed
Actions #9

Updated by Michael Seibt 9 months 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!

Actions #10

Updated by Matthias Van Ceulebroeck 9 months 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.

Actions #11

Updated by Romain Mardulyn about 1 month ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #12

Updated by Romain Mardulyn 23 days ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions #13

Updated by emil de keyser 15 days ago

  • Assignee set to emil de keyser
Actions #14

Updated by emil de keyser 8 days ago

  • Status changed from Review to Resolved
  • Assignee changed from emil de keyser to Romain Mardulyn
Actions

Also available in: Atom PDF