panwriter icon indicating copy to clipboard operation
panwriter copied to clipboard

Customize editor theme/layout

Open shaneknysh opened this issue 3 years ago • 2 comments

I just found panwriter and I am in love ❤️

I would love it even more if I could control a bit more of the editor. When I go full screen I would like to have the text be right aligned and go full width. Although I know this is likely not going to be a universally wanted item.

current image

better image

best image

I can manually get what I want by modifying css

.CodeMirror-lines {
    margin: 0 auto;
    max-width: 40em;
    padding: 60px 50px 50px;
}

to

.CodeMirror-lines {
    /* margin: 0 auto; */    /* makes it better */
    /* max-width: 40em; best*/ /* makes it best */
    padding: 60px 50px 50px;
}

but having this available as a setting would be great!

shaneknysh avatar Jan 17 '22 18:01 shaneknysh

Adding some settings/preferences is on the TODO list... but I haven't really decided the details yet...

mb21 avatar Jan 18 '22 07:01 mb21

We could easily allow switching between different CodeMirror themes... but not sure we want to allow injecting arbitrary CSS. Or let's just say, if I would allow this, I wouldn't give any guarantees to users that a PanWriter update won't break their setup.

mb21 avatar Jan 29 '22 12:01 mb21