xiota / geany-preview

Turns Geany into a markdown editor by providing a preview pane in the sidebar to show the formatting of several light-weight languages as they are edited. Supported document types include AsciiDoc, DocBook, Fountain, HTML, LaTeX, Markdown, MediaWiki, reStructuredText, Textile, and Txt2Tags.
GNU General Public License v3.0
12 stars 0 forks source link

Fountain-text in the Preview all in white as default #42

Open ralf3u opened 1 year ago

ralf3u commented 1 year ago

I think that two years ago all text in the Preview was in white when using dark mode. According to https://github.com/xiota/geanylua-scripts/issues/5#issue-1269076597, since last year some text is white and some text is black. The black text is hard to read.

I replaced in fountain.css this code:

/* Slug */
Dialog {
    break-inside: avoid;

by this code:

/* Slug */
Dialog {
    color: white;
    break-inside: avoid;

Now all the text in the Preview is in white.

What about the idea to add the line color: white; in fountain.css as default? An alternative would be maybe color: yellow;, to give users a help where to change the color of dialogs.

I would also replace this code:

html {
    font-size: 8pt;
}

by this code:

html {
    font-size: 8pt;
    color: white;
}

It would be easier for users who have problems with CSS to know where to change the color for the rest of the text.