Skip to content

Commit

Permalink
Fix code background colors
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Oct 22, 2017
1 parent 571e247 commit 3ea1780
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions docs/src/markdown/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

> Oct 21, 2017
- **Fix**: Improved color scheme parsing logic.
- **FIX**: Improved color scheme parsing logic.
- **FIX**: Fix code background not being correct.

## 3.0.1

> Oct 20, 2017
- **Fix**: Update color scheme matcher to latest and fix legacy support issues.
- **FIX**: Update color scheme matcher to latest and fix legacy support issues.

## 3.0.0

Expand All @@ -27,7 +28,7 @@
- **NEW**: Update `rgba` library.
- **NEW**: Expose contrast.
- **NEW**: Add support for PackageDev settings completions/tooltips/linting.
- **Fix**: Hide scratch output panel.
- **FIX**: Hide scratch output panel.
- **FIX**: Increase block code font size to `1rem`.
- **FIX**: Better YAML stripping logic.
- **FIX**: More descriptive failure message.
Expand Down
7 changes: 4 additions & 3 deletions st3/mdpopups/st_scheme_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ def get_variables(self):
"""Get variables."""

if NEW_SCHEMES:
is_dark = self.is_dark()
return {
"is_dark": self.is_dark(),
"is_light": not self.is_dark(),
"is_dark": is_dark,
"is_light": not is_dark,
"sublime_version": int(sublime.version()),
"mdpopups_version": ver.version(),
"color_scheme": self.scheme_file,
Expand Down Expand Up @@ -170,7 +171,7 @@ def setup(self):
"""Setup the template environment."""

settings = sublime.load_settings("Preferences.sublime-settings")
self.use_pygments = not settings.get('mdpopups.use_sublime_highlighter', True),
self.use_pygments = not settings.get('mdpopups.use_sublime_highlighter', True)
self.default_style = settings.get('mdpopups.default_style', True)

if not NEW_SCHEMES:
Expand Down

0 comments on commit 3ea1780

Please sign in to comment.