Project

General

Profile

Improvements #9115

Set the version in WBootstrapTheme C'tor

Added by Rathnadhar K V about 1 year ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/28/2021
Due date:
% Done:

0%

Estimated time:
1.50 h

Description

Namaskara,

Currently I create a BootstrapTheme object and then set the them version as follows:

auto btheme_ptr = std::make_shared<Wt::WBootstrapTheme>();
btheme_ptr->setVersion (Wt::BootstrapVersion::V3);

this->setTheme(btheme_ptr);

can we make it more robust as :

this->setTheme(WT::BootstrapTheme,Wt::BootstrapVersion::V3,path_to_bootstrap_theme_css_dir);

further

this->setTheme(WT::WtTheme,Wt::WT3,path_to_wt_css_dir);

If I have to add my own theme then...

this->setTheme(WT::Other,Wt::Other,path_to_other_css_dir);

that way I can have clean interface to set the theme for the page/widget.

Its preferable to set the pass to css directory...so that we have the flexibility to define our own themes in self contained directory.

Regards
Rathnadhar K V

Also available in: Atom PDF