Skip to content

Conversation

@cloose
Copy link
Owner

@cloose cloose commented Dec 9, 2015

Load themes from JSON file instead of hardcoding them. This should be the start to add custom themes.

Replaces PR #190

A theme represents the combination of markdown, code and preview styles.
@cloose cloose self-assigned this Dec 9, 2015
@cloose cloose added this to the v0.12.0 milestone Dec 9, 2015
cloose added 19 commits December 9, 2015 11:42
A collection of themes that can be loaded from a JSON file.
Add JsonThemeTranslator class to translate between JSON and Theme
objects.
Add methods to retrieve a theme by name or the names of all themes to
the ThemeCollection class.
It manages a theme collection and the association to the builtin
markdown, code and preview styles
Remove the specific style actions from the main window and use the
ThemeManager instead to fill the Styles submenu.

Also rename option lastUsedStyle to lastUsedTheme.
* Remove theme collection management from ThemeManager
* Rename ThemeManager to StyleManager.
  The class is now responsible for mapping style names in themes
  to paths to style file.
@cloose cloose merged commit 2a53e01 into develop Dec 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants