From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: High-res Customize icons Date: Fri, 23 Oct 2020 21:08:43 +0300 Message-ID: <83sga4izmc.fsf@gnu.org> References: <6AEA7E43-DB35-458F-AFF2-B45DCBDC136F@gmail.com> <83a734fecm.fsf@gnu.org> <9713d235-11d4-b593-210a-e389c265e8ad@gmail.com> <83368vfxtl.fsf@gnu.org> <83imhre827.fsf@gnu.org> <83a733e56k.fsf@gnu.org> <834ktbe2ve.fsf@gnu.org> <83zharvkcc.fsf@gnu.org> <17B57ACD-3249-463A-9F23-7EA9B3E0C9A1@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8472"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yandros@gmail.com, cpitclaudel@gmail.com, emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 23 20:10:03 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 1kW1Vr-00026T-BW for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Oct 2020 20:10:03 +0200 Original-Received: from localhost ([::1]:34760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kW1Vq-0006fK-Ec for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Oct 2020 14:10:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kW1Uo-0005W6-Gm for emacs-devel@gnu.org; Fri, 23 Oct 2020 14:08:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55586) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kW1Uo-000684-79; Fri, 23 Oct 2020 14:08:58 -0400 Original-Received: from [176.228.60.248] (port=1638 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kW1Un-00007X-O7; Fri, 23 Oct 2020 14:08:58 -0400 In-Reply-To: <17B57ACD-3249-463A-9F23-7EA9B3E0C9A1@gmail.com> (message from Yuan Fu on Fri, 23 Oct 2020 12:39:44 -0400) 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:258377 Archived-At: > From: Yuan Fu > Date: Fri, 23 Oct 2020 12:39:44 -0400 > Cc: chad , > cpitclaudel@gmail.com, > emacs-devel@gnu.org > > (defcustom image-resolution-scaling-factor 1 > "If greater than 1, try display high-res alternatives. > E.g., if the value is 2, `find-image' tries to find file@2x.png > for file.png." > :type '(choice number > (const :tag "1x" 1) > (const :tag "2x" 2) > (const :tag "3x" 3)) > :version "28.1") The reason I said defcustom didn't sound like TRT was because I think Emacs should handle this automatically. It should automatically load the high resolution images when appropriate. Where it finds those images and by what logic is a secondary question.