From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 734E220248; Sat, 23 Feb 2019 10:49:53 +0000 (UTC) Date: Sat, 23 Feb 2019 10:49:53 +0000 From: Eric Wong To: Dmitry Alexandrov <321942@gmail.com> Cc: Mateusz Loskot , meta@public-inbox.org Subject: Re: Default theme Message-ID: <20190223104953.GA32348@dcvr> References: <20190222085014.mwvkf2mwrb6yeyrh@dcvr> <87a7in47yv.fsf@gmail.com> <20190223025023.bma7yitttmgqhdkr@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190223025023.bma7yitttmgqhdkr@dcvr> List-Id: Eric Wong wrote: > Dmitry Alexandrov <321942@gmail.com> wrote: > > Eric Wong wrote: > > >> "prefers-color-scheme" media queries may be used to set > > >> to respect user preferences in future browsers. > > > > FWIW, Mozilla implemented it a week ago. > > Yes, I just noticed the nightlies support it and will be testing > it and making adjustments as necessary to public-inbox.org and > .onion mirrors I run. OK, adjusted public-inbox.org config and all the .onion mirrors. No code changes were necessary. The "ui.systemUsesDarkTheme" integer pref in FF 67+ "about:config" can be used to set/override the dark theme detection: 0: light 1: dark 2: unspecified, dark with the following config The relevant part of ~/.public-inbox/config looks like this, now: [publicinbox] css = /path/to/public-inbox/contrib/css/216dark.css \ media=screen css = /path/to/public-inbox/contrib/css/216light.css \ media=print ; added this line for FF 67+ users: css = /path/to/public-inbox/contrib/css/216light.css \ media='screen AND (prefers-color-scheme:light)' ("!important" sample patches on the way)