2024-03-28 21:01 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002738websites[All Projects] Generalpublic2020-02-24 11:05
ReporterRava T 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusfeedbackResolutionreopened 
PlatformLinux x86-64OSSlackwareOS VersionSlackware 14.2
Summary0002738: Night mode for Netsurf
DescriptionI am aware that this is more a question about a feature, and less of a bug but after browsing http://www.netsurf-browser.org including its documentation I found no hint as how to accomplish my goal, therefore this report here. (I might have missed a info, though)

I prefer a dark GUI and an inverted or Night Mode display on all browsers I use, with Palemoon I am quite happy using Advanced Night Mode AddOn.
Sadly, there seems no way to define colour for: background, text, links and visited links in Netsurf.
Maybe there is, but not via the standard Settings window. Any tips of how to accomplish a night mode for all visited local or remote sites or pages greatly appreciated.
Steps To ReproduceAll web pages loaded are standard display: usually white or bright background and dark text. I prefer bright green text and dark or better black background.
Tagsinverse colours night mode
URL of problem page
Attached Files

-Relationships
+Relationships

-Notes
Michael Drake

~0002168

Michael Drake (administrator)

This sort of thing is done using a user stylesheet.

https://www.mail-archive.com/netsurf-users@netsurf-browser.org/msg04000.html
Rava T

~0002171

Rava T (reporter)

Thanks Michael Drake, I created ~/.netsurf/user.css and put this into that css file:

body { color:#6f3; background-color:#000; !important; } a:link { color:#66f; text-decoration:none; font-weight:bold; !important; } a:visited { color:#a6d; text-decoration:none; font-weight:bold; !important; } a:focus, a:hover { color:#f33; text-decoration:none; background-color:#fff; font-weight:bold; !important; } a:active { color:#fff; background-color:#000; font-weight:bold; !important; }

Only then I did start netsurf, but unfortunately nothing is happening, the colours are the standard ones. What did I do wrong?
My netsurf is: 3.9.4967 x86-64 Linux GTK3.
Michael Drake

~0002173

Michael Drake (administrator)

The path might actually be ~/.config/netsurf/user.css or something. I'm not sure where config files are stored.

For the CSS, the "!important" should be after every property, rather than at the end of the rule.

So, for example:

body {
    color: #6f3 !important;
    background-color: #000 !important;
}
+Notes

-Issue History
Date Modified Username Field Change
2020-02-08 22:15 Rava T New Issue
2020-02-08 22:15 Rava T Tag Attached: inverse colours night mode
2020-02-21 10:10 Michael Drake Status new => closed
2020-02-21 10:10 Michael Drake Resolution open => no change required
2020-02-21 10:10 Michael Drake Note Added: 0002168
2020-02-21 18:03 Rava T Status closed => feedback
2020-02-21 18:03 Rava T Resolution no change required => reopened
2020-02-21 18:03 Rava T Note Added: 0002171
2020-02-24 11:05 Michael Drake Note Added: 0002173
+Issue History