Browse Source

Update themes config

simov 9 years ago
parent
commit
fd97521a82
3 changed files with 19 additions and 19 deletions
  1. 2 1
      README.md
  2. 1 1
      content/content.js
  3. 16 17
      manifest.json

+ 2 - 1
README.md

@@ -10,7 +10,7 @@
 - Built on top of the [marked][marked] compiler
 - Support for [GitHub Flavored Markdown][gfm]
 - Full control over the [compiler options][compiler-options]
-- 20 themes from [jasonm23][themes1] and [mixu][themes2]
+- css themes from [jasonm23][themes1], [mixu][themes2] and [cobalt][themes3]
 - Syntax highlighted code blocks using [prism][prism]
 - Settings synchronization through google sync
 - Quickly switch between raw markdown and html
@@ -77,6 +77,7 @@ SOFTWARE.
   [compiler-options]: https://github.com/chjj/marked#gfm
   [themes1]: https://github.com/jasonm23/markdown-css-themes
   [themes2]: https://github.com/mixu/markdown-styles
+  [themes3]: https://github.com/nWODT-Cobalt/markown-utilities
   [prism]: http://prismjs.com/
   [event-page]: http://developer.chrome.com/extensions/event_pages.html
   [chrome-store]: https://chrome.google.com/webstore/detail/markdown-viewer/ckkdlimhmcjmikdlpkmbgfkaikojcbjk

+ 1 - 1
content/content.js

@@ -58,7 +58,7 @@ window.addEventListener('DOMContentLoaded', () => {
             $('html').classList.remove('markdown-body-html')
             $('body').classList.remove('markdown-body')
           }
-          else if (state.theme === 'github') {
+          else if (/github(-dark)?/.test(state.theme)) {
             $('html').classList.remove('markdown-theme-html')
             $('body').classList.remove('markdown-theme')
             $('html').classList.add('markdown-body-html')

+ 16 - 17
manifest.json

@@ -65,29 +65,28 @@
 
   "web_accessible_resources": [
     "/themes/github.css",
-    "/themes/avenir-white.css",
+    "/themes/github-dark.css",
+
+    "/themes/godspeed.css",
+    "/themes/new-modern.css",
+    "/themes/torpedo.css",
+    "/themes/vostok.css",
+
+    "/themes/ghostwriter.css",
+    "/themes/radar.css",
     "/themes/foghorn.css",
-    "/themes/jasonm23-dark.css",
-    "/themes/jasonm23-foghorn.css",
-    "/themes/jasonm23-markdown.css",
-    "/themes/jasonm23-swiss.css",
-    "/themes/markdown10.css",
-    "/themes/markdown1.css",
-    "/themes/markdown2.css",
-    "/themes/markdown3.css",
-    "/themes/markdown4.css",
+    "/themes/markdown.css",
+    "/themes/markedapp-byword.css",
+    "/themes/solarized-dark.css",
+    "/themes/solarized-light.css",
+
+    "/themes/screen.css",
     "/themes/markdown5.css",
     "/themes/markdown6.css",
     "/themes/markdown7.css",
     "/themes/markdown8.css",
     "/themes/markdown9.css",
-    "/themes/markdown-alt.css",
-    "/themes/markdown.css",
-    "/themes/markedapp-byword.css",
-    "/themes/screen.css",
-    "/themes/swiss.css",
-    "/themes/thomasf-solarizedcssdark.css",
-    "/themes/thomasf-solarizedcsslight.css"
+    "/themes/markdown-alt.css"
   ],
 
   "icons": {