Dark themed preview [CLOSED]

Any wishes
Locked
df87
Posts: 4
Joined: Fri Mar 31, 2017 1:42 pm

Dark themed preview [CLOSED]

Post by df87 » Fri Jun 02, 2017 5:19 pm

When I view the preview, it's still light. (File Panels > Show preview).

That's a bit annoying when using a dark theme. Optimal for me would be dark with syntax coloring.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Dark themed preview

Post by mike » Mon Jun 05, 2017 12:45 pm

Hm, that's strange, I thought it was fixed in v1.2.1.
Could you provide any screenshot to clarify?

df87
Posts: 4
Joined: Fri Mar 31, 2017 1:42 pm

Re: Dark themed preview

Post by df87 » Mon Jun 05, 2017 5:20 pm

[spoiler]Image[/spoiler]

I'm going to purchase a license btw, I've tried a lot of file managers recently and this is my favourite so far. Especially since your answer seems to address one of my few reservations

sasha
Posts: 168
Joined: Wed Feb 17, 2016 4:59 pm

Re: Dark themed preview

Post by sasha » Mon Jun 05, 2017 9:44 pm

I think it works like this: if you preview something like an icon, preview's the background in NC will be dark.
nc_dark.png
nc_dark.png (130.15 KiB) Viewed 10603 times
If it's a text file, e.g. a source file, the coloring (background, syntax highlighting etc.) is done by mac OS's Quick Look. There are a lot of QL plugins that change the colors, syntax highlighting etc. My guess is you'd have to change it in QL which would be system wide. But maybe I'm wrong :)
nc_dark2.png
nc_dark2.png (187.87 KiB) Viewed 10603 times

df87
Posts: 4
Joined: Fri Mar 31, 2017 1:42 pm

Re: Dark themed preview

Post by df87 » Tue Jun 06, 2017 2:46 am

This is news to me actually, can't believe I didn't know about quick look plug-ins.

I had a look for some and found a syntax highlighter which did indeed work in NC as well, so it seems you're right. Only found one with light colors, but a more in-depth search might solve that problem.

sasha
Posts: 168
Joined: Wed Feb 17, 2016 4:59 pm

Re: Dark themed preview

Post by sasha » Tue Jun 06, 2017 12:11 pm

df87 wrote:
Tue Jun 06, 2017 2:46 am
I had a look for some and found a syntax highlighter which did indeed work in NC as well, so it seems you're right. Only found one with light colors, but a more in-depth search might solve that problem.
I'm using qlcolorcode (https://code.google.com/archive/p/qlcolorcode/). The configuration is done via terminal commands (see README). For example, the command to use a theme with dark background is

Code: Select all

defaults write org.n8gray.QLColorCode hlTheme bipolar
Then, the preview looks like this:
nc_dark_sh.png
nc_dark_sh.png (193.15 KiB) Viewed 10590 times
There are many themes to chose from (http://www.andre-simon.de/dokuwiki/doku ... e_examples) and many many options, all well documented in the README that comes with qlcolorcode.

df87
Posts: 4
Joined: Fri Mar 31, 2017 1:42 pm

Re: Dark themed preview

Post by df87 » Tue Jun 06, 2017 3:02 pm

Brilliant, I got it to work now. Cheers for the help, although I guess in the end it turned to have nothing to do with NC :)

Locked