From 7555233ebc31d8c2e30629a61a9e1203a5eb573c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 21 Apr 2019 23:56:54 +0000 Subject: add dark216 color scheme for power savings "oldweb" remains for compatibility and we still have minimal styling. Some browsers (e.g. Firefox 67.0a1 via "ui.systemUsesDarkTheme") are adding support for the "prefers-color-scheme" @media query. So this allows pages to respect user choice when it comes to dark or light schemes. OLED and CRT displays measure significant power savings when using dark schemes. Dark themes work better with less ambient light, so favoring darkness can lead to overall power savings even with CCFL and LED-lit displays. --- lib/oldweb.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oldweb.rb') diff --git a/lib/oldweb.rb b/lib/oldweb.rb index ccc37f7..5b55019 100644 --- a/lib/oldweb.rb +++ b/lib/oldweb.rb @@ -91,6 +91,7 @@ class Oldweb cgit_url << '#n%d' # lineno @old_vcs_url = cgit_url end + @oldweb_style = nil # used by dark216 end def generate # :nodoc: -- cgit v1.2.3-24-ge0c7