From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: High-res Customize icons Date: Tue, 27 Oct 2020 22:26:53 +0000 Message-ID: <20201027222653.GJ59267@breton.holly.idiocy.org> References: <83imhre827.fsf@gnu.org> <83a733e56k.fsf@gnu.org> <834ktbe2ve.fsf@gnu.org> <83zharvkcc.fsf@gnu.org> <17B57ACD-3249-463A-9F23-7EA9B3E0C9A1@gmail.com> <83sga4izmc.fsf@gnu.org> <5AEB1CE7-D76C-4EE4-97F3-CCB86AEB6382@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27489"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel , chad , emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 27 23:28:21 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 1kXXS1-00072v-5M for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Oct 2020 23:28:21 +0100 Original-Received: from localhost ([::1]:50312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXXS0-0001iT-4a for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Oct 2020 18:28:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXXQn-0001FW-K6 for emacs-devel@gnu.org; Tue, 27 Oct 2020 18:27:05 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:54606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXXQl-0004iN-AX; Tue, 27 Oct 2020 18:27:04 -0400 Original-Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 1D73B3E6; Tue, 27 Oct 2020 23:26:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1603837618; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To; l=764; bh=B+TISIrpPvTrBZEJMgULwjADcetyH4U98saSMmih5Bw=; b=PeCDfsDXaR+XqWJw+TyKkog1RvNOd+EEa3ztnielJiRJ7aUAPnm0Vil5Zl2ikY3S sqzx4bH8LAL1xPHM5x7+wa6YPBykWl4Aa2IS6o2z06Dla8PUfO3I2hEI3ESuhwgq+dD cPh4uY8Mdt+Qm+vPchpr8EmQMAHPsgOqyOCEZLaAMiyYTV5oPxkW6Q9XhvVq26YuVhH 9GYySJur1BeUGdBX+0Fwauxcq11uJl6Ry+0Dp0XVxdnFpXqB6ejPvF49zNCXWxL+Qkw zqkndflsOEBkwR4Mc3+q1UMo920sabfYob9qTcZ/6sIEEtuLnyctZsIkWsJAZPkIEHh NRPcJmlLHQ== Original-Received: by smtp.mailfence.com with ESMTPA ; Tue, 27 Oct 2020 23:26:54 +0100 (CET) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 49365202641684; Tue, 27 Oct 2020 22:26:53 +0000 (GMT) Mail-Followup-To: Alan Third , Yuan Fu , Eli Zaretskii , chad , =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <5AEB1CE7-D76C-4EE4-97F3-CCB86AEB6382@gmail.com> X-ContactOffice-Account: com:241649512 Received-SPF: pass client-ip=212.3.242.97; envelope-from=alan@idiocy.org; helo=mailout-l3b-97.contactoffice.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/27 18:26:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:258521 Archived-At: On Tue, Oct 27, 2020 at 03:17:37PM -0400, Yuan Fu wrote: > > Cocoa provides an API for querying the scaling factor, if it is 2, > we should load the @2x image and add :scale 0.5. > > It’s kind of a mess. What do you think? > > How about exposing that Cocoa API to lisp and handle accordingly in > find-image? Some thing like: This sounds good to me. It should be easy to expose the scale factor to lisp. The only potential problem is that it can change as the frame is dragged from one screen to the other, or similar. Is there any way to force reloading the images? Anyway, even if not it will always display something, just not necessarily the optimal image. Do you want me to write the C code to expose the scale factor? -- Alan Third