[plugin rework request] HTMLView dark mode

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
KozakMak
Senior Member
Senior Member
Posts: 352
Joined: 2021-05-24, 12:39 UTC
Location: UA

[plugin rework request] HTMLView dark mode

Post by *KozakMak »

Who can add dark mode to HTMLView?
OS: Win10 | TC: latest x64
KozakMak
Senior Member
Senior Member
Posts: 352
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: [plugin rework request] HTMLView dark mode

Post by *KozakMak »

UP
OS: Win10 | TC: latest x64
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: [plugin rework request] HTMLView dark mode

Post by *hi5 »

I have no programming skills when it comes to c++ but I googled a bit and think it can be done if you can manage to setup an environment to compile the plugins and adding some files and some lines of code.

You can find the source of htmlviewer here I think https://sites.google.com/site/htmlview/
if you look at markdownviewer here https://github.com/rg-software/wlx-markdown-viewer it says the code is based on htmlviewer and that can use "a custom CSS file for customizing the resulting look of the document. A collection of four CSS files from Markdown CSS is included into the package."

It seems to load the CSS file (defined in an ini file) here https://github.com/rg-software/wlx-markdown-viewer/blob/master/HTMLView/main.cpp#L108 - that bit is easily copied to the main.cpp of htmlview - from there on it is trial & error to make it work - once you can load a CSS via an ini file you can set it to always darkmode or prepare a script to switch between light and dark themes (probably needing to restart TC but that is small price to pay probably if you do want to switch).

Apparently you need Visual Studio 2017 (see instructions of markdownviewer)

(Again I wouldn't be able to do this, but perhaps someone with everything setup will see this and give it a shot)
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
KozakMak
Senior Member
Senior Member
Posts: 352
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: [plugin rework request] HTMLView dark mode

Post by *KozakMak »

UP
OS: Win10 | TC: latest x64
Post Reply