From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Caio Henrique Newsgroups: gmane.emacs.devel Subject: Re: toggle-light-dark-mode Date: Tue, 15 Sep 2020 17:10:42 -0300 Message-ID: <87tuvyztq5.fsf@gmail.com> References: <20200910102000.2t6tsju745xutg7u@Ergus> <20200910110832.ko66gqnqo4l664d6@Ergus> <20200911134225.zhnlq7cdhmu2iraj@Ergus> <20200911221435.go7b5kz2zcvxp2ft@Ergus> <20200912153723.ymnq3i5pugqf7lsy@Ergus> <20200912194652.nrcx2fjg7n4j54ns@Ergus> <87blia32b7.fsf@gmail.com> <871rj30vzq.fsf@gmail.com> <87d02mop87.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17463"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: casouri@gmail.com, Caio Henrique , spacibba@aol.com, emacs-devel@gnu.org, "Alfred M. Szmidt" , monnier@iro.umontreal.ca, ghe@sdf.org, tecosaur@gmail.com To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 15 22:11:35 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIHIc-0004Rr-IM for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Sep 2020 22:11:34 +0200 Original-Received: from localhost ([::1]:51452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIHIb-0001mB-LE for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Sep 2020 16:11:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIHHv-0001KV-TC for emacs-devel@gnu.org; Tue, 15 Sep 2020 16:10:51 -0400 Original-Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]:35734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIHHu-0001BX-C5; Tue, 15 Sep 2020 16:10:51 -0400 Original-Received: by mail-qv1-xf44.google.com with SMTP id b13so2398652qvl.2; Tue, 15 Sep 2020 13:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=GcVrSDpcFQAriWqB7dk17MCQF1q20Pfj1te6v2dnz3k=; b=jY/JTEWAyZHdUtpl81o/GUOgrQrjVK15t1zZ6xUVEU/s0NYEyC6160wVfJOzwQhbJJ cl+NNYJhscvzo/1JAI0mQhjKSE/h+Z2znGei0zexzx7ZusA5zdRxCGDdyC7iBhzXk5MD /NzWg9icpJrFY6IrRp/toVi9uLf0/BZoOivNYgc+SkVkX61ersNC331IR//AGB/Z+Ugh y+eo7k0OUgn7ywP7Q8i6mE9v+kK1MN3DOSSlklEbbH/WeBoPSnByFkPFrkJSPls02SGB /XW3r6wjqkoEfjwsH+LGCiTy7BF//c0uWWwS/X6b70WNGkFbK4zHU4KshpkIBzmyIKpG 0e4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=GcVrSDpcFQAriWqB7dk17MCQF1q20Pfj1te6v2dnz3k=; b=UGC77L7ioRzRZ9umKfpoo0ALWZQSv7L1wJJazOt0lzKx4vzzw9l7wQx7gCctmEh4Gr IM9bWklNxNTAjBtDmShyZc1ZI1AYYtr0JaYf7SmtvOj7jyNSZ4K1cOEHw1kBcqlt74iL pNym1ptPqEVx80xU+c7EMZeYv/mr/waek0OVQTDZT/GcVZsdwstJ81GK+BxSgZbbCdA6 Tz/ZJl2E4skDIdOHDBTNMY7xaNPYeN36jSX3yaHrz/zgluxhMTEv/ris+c5wGo2VNbRX tYuwsHgWhCa5TJ1js3kLEwzLuklg/1zHuL8N48oCzQ3MPvsZX7RFloWa+S+RgIFqGOXg lLbw== X-Gm-Message-State: AOAM531AxXsBmErHiigYG4rXoM8ejVewhNdjcZO2sd84oh62TjlBbG1O WjiUZG4SLI1fosXsWeCUZ3A= X-Google-Smtp-Source: ABdhPJxPX+Zrk85JNod/znBuP0S1FnUHLKbObqTFuxKC8yInHAnpyO4OqUetBdQe4+wK0bcKbDbx8w== X-Received: by 2002:ad4:57a7:: with SMTP id g7mr20070231qvx.10.1600200649120; Tue, 15 Sep 2020 13:10:49 -0700 (PDT) Original-Received: from localhost.localdomain ([181.223.151.236]) by smtp.gmail.com with ESMTPSA id 64sm17091311qko.117.2020.09.15.13.10.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 13:10:48 -0700 (PDT) X-Google-Original-From: Caio Henrique In-Reply-To: <87d02mop87.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 15 Sep 2020 22:03:20 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::f44; envelope-from=caiohcs0@gmail.com; helo=mail-qv1-xf44.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255786 Archived-At: Juri Linkov writes: > "Automatically switch to dark background after sunset > and to light background after sunrise. Personally I don't find this very useful, since most of the time the lights in my room are turned on during the night. I only call that function when I turn my lights off. I don't know any applications that have that kind of behavior enabled by default, since it's a bit intrusive. But I think that it would be a great optional feature (i.e. disabled by default) for those that are into it. > But the theme can be toggled from light to dark using the command > line switch --reverse-video, -r, -rv, or with the frame parameter Maybe this could also be an optional alternative behavior that you can enable with a boolean variable? toggle-light-dark-theme-use-reverse-video I like your suggestions and I can see that they appeal to other users, but personally I also wouldn't use reverse video (I like using kaolin-galaxy as my dark theme and modus-operandi for my light theme). Or we could also do the inverse: use the behavior of your code by default and make mine optional. :)