Preview video Dark Mode?

24 views
Skip to first unread message

@lbutlr

unread,
May 9, 2020, 5:51:50 AM5/9/20
to BBEdit Talk
When I preview markdown files, they appear with white background. This is fine in HTML files since I can easily overwrite the style myself and it should show the HTML correctly, but there’s seemingly nothing I can do about the Markdown preview.

My Color Scheme is set to BBEdit Dark and there don’t appear to be any setting for the preview window in the color scheme (neither at the top level or the Markdown specific settings).

Am I missing something? If not, I’d like to request this as a feature.


--
New plan. I give up on Fillory and dedicate myself completely to destroying Todd.


Rich Siegel

unread,
May 9, 2020, 11:27:15 AM5/9/20
to bbe...@googlegroups.com
On 5/9/20 at 5:51 AM, kre...@kreme.com (@lbutlr) wrote:

>When I preview markdown files, they appear with white background. This
>is fine in HTML files since I can easily overwrite the style myself
>and it should show the HTML correctly, but there’s seemingly nothing I
>can do about the Markdown preview.

Why not? You can put <style> tags in Markdown, as well as choose
an alternative external CSS file in the preview window's control
bar at the top of the window.

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they
sedate me.

@lbutlr

unread,
May 12, 2020, 9:45:29 AM5/12/20
to BBEdit Talk
On 09 May 2020, at 09:27, Rich Siegel <sie...@barebones.com> wrote:
>
> On 5/9/20 at 5:51 AM, kre...@kreme.com (@lbutlr) wrote:
>
>> When I preview markdown files, they appear with white background. This
>> is fine in HTML files since I can easily overwrite the style myself
>> and it should show the HTML correctly, but there’s seemingly nothing I
>> can do about the Markdown preview.
>
> Why not? You can put <style> tags in Markdown,

True enough, thought that alters the markdown file in ways I do not necessary want to do (I don’t need to enforce my dark mode on others).

> as well as choose an alternative external CSS file in the preview window's control bar at the top of the window.

I did finally find how to do that on page 259 "DefaultCSS_Markdown.css”. The drop down on the preview window only shows (no CSS) and it might be good if that could open the appropriate folder? And so far, trying to alter the style for markdown preview is… odd. The only handy;er that seems to work is * {…} and not pre {…} or code {…} (which is what copy style HTML shows) or even body {…}. Are there sample files?

I still would like to see a setting where the Preview window used the BBEdit theme, especially since it appears I’ll have to create a custom css file for each type of document I preview to prevent the “white flash of doom”.

(I know this is not an issue many people have, but I have recently developed a very bad sensitivity to bright screens and am trying to “dark mode my life” as much as possible. This is making reading PDFs, for example, difficult, as after a very few minutes I have to stop.)




--
FOUR QUEENS. HMM. THAT IS VERY HIGH. Death looked down at his cards,
and then up into Granny's steady, blue-eyed gaze. Neither moved
for some time. Then Death laid the hand on the table. I LOSE, he
said. ALL I HAVE IS FOUR ONES.


Rich Siegel

unread,
May 12, 2020, 9:58:17 AM5/12/20
to bbe...@googlegroups.com
On 5/12/20 at 9:45 AM, kre...@kreme.com (@lbutlr) wrote:

>I did finally find how to do that on page 259
>"DefaultCSS_Markdown.css”. The drop down on the preview
>window only shows (no CSS) and it might be good if that could
>open the appropriate folder? And so far, trying to alter the
>style for markdown preview is… odd. The only handy;er that
>seems to work is * {…} and not pre {…} or code {…} (which
>is what copy style HTML shows) or even body {…}. Are there
>sample files?

Since most Markdown renderers don't generate a fully qualified
HTML document, if you intend to modify the body, you'll probably
instead need to use a preview template with appropriate CSS in it.

>I still would like to see a setting where the Preview window
>used the BBEdit theme, especially since it appears I’ll have
>to create a custom css file for each type of document I preview
>to prevent the “white flash of doom”.

This is unlikely to make any difference, since WebKit windows
are an authority unto themselves, and the view background
defaults to white, irrespective of whether the rest of the
application is in Dark Mode. But if you wish to make a request,
you know what you need to do. :-)
Reply all
Reply to author
Forward
0 new messages