Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Theme Support #8

Open
CeJienAJPC opened this issue Apr 17, 2017 · 2 comments
Open

Theme Support #8

CeJienAJPC opened this issue Apr 17, 2017 · 2 comments

Comments

@CeJienAJPC
Copy link

CeJienAJPC commented Apr 17, 2017

Hello,
Can MarkDownView support Dark and Light Themes?

Thanks

@nandorrb
Copy link

nandorrb commented Jul 4, 2017

Yes, I defined Two themes

  1. Dark theme:
class DarkThemeCssModule : PrimalThemeCssModule() {
    init {
        this.addRule("body", *arrayOf("font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif", "font-size: 14px", "line-height: 1.42857143", "color: #FFF", "background-color: #161418", "margin: 0"))
    }
}
  1. Light Theme
class WhiteThemeCssModule : PrimalThemeCssModule() {
    init {
        this.addRule("body", *arrayOf("font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif", "font-size: 14px", "line-height: 1.42857143", "color: #000", "background-color: #FFF", "margin: 0"))
    }
}

@nandorrb
Copy link

nandorrb commented Jul 4, 2017

If you agree close the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants