Project

General

Profile

Actions

Feature #13788

closed
MS RM

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

Feature #13788: Dark mode support, e.g. by updating to Bootstrap 5.3

Added by Michael Seibt over 1 year ago. Updated 4 months ago.

Status:
Closed
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 open — 1 closed)

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

Actions

CM Updated by Christian Meyer over 1 year ago Actions #1

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

RM Updated by Romain Mardulyn about 1 year ago Actions #2

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

RM Updated by Romain Mardulyn about 1 year ago Actions #3

  • Status changed from New to InProgress

RM Updated by Romain Mardulyn about 1 year ago Actions #4

  • Status changed from InProgress to Review

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #5

  • Target version set to 4.12.1

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

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #6

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

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #7

  • Status changed from Implemented @Emweb to Implemented @Test

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #8

  • Status changed from Implemented @Test to Closed

MS Updated by Michael Seibt about 1 year ago Actions #9

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!

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #10

  • 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.

RM Updated by Romain Mardulyn 5 months ago Actions #11

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 5 months ago Actions #12

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

ED Updated by emil de keyser 5 months ago Actions #13

  • Assignee set to emil de keyser

ED Updated by emil de keyser 4 months ago Actions #14

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

RM Updated by Romain Mardulyn 4 months ago Actions #15

  • Status changed from Resolved to Implemented @Emweb

RM Updated by Romain Mardulyn 4 months ago Actions #16

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom