-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to configure global template (#2271)
- Loading branch information
1 parent
8c69876
commit 9fd546a
Showing
8 changed files
with
176 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
from ..config import _config | ||
from .base import Template, BaseTemplate # noqa | ||
from .bootstrap import BootstrapTemplate # noqa | ||
from .fast import FastListTemplate, FastGridTemplate # noqa | ||
from .material import MaterialTemplate # noqa | ||
from .theme import DarkTheme, DefaultTheme # noqa | ||
from .golden import GoldenTemplate # noqa | ||
from .vanilla import VanillaTemplate # noqa | ||
from .react import ReactTemplate # noqa | ||
from .vanilla import VanillaTemplate # noqa | ||
|
||
templates = { | ||
'bootstrap' : BootstrapTemplate, | ||
'fast' : FastListTemplate, | ||
'fast-list' : FastListTemplate, | ||
'material' : MaterialTemplate, | ||
'golden' : GoldenTemplate, | ||
'vanilla' : VanillaTemplate | ||
} | ||
|
||
_config.param.template.names = templates | ||
_config.param.template.objects = list(templates) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters