From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Using images in tabs Date: Tue, 17 Sep 2019 23:33:21 +0300 Organization: LINKOV.NET Message-ID: <877e66oeo6.fsf@mail.linkov.net> References: <87tv9ir38c.fsf@mail.linkov.net> <83ftl11xdn.fsf@gnu.org> <87impxnqjm.fsf_-_@mail.linkov.net> <837e6c1zr2.fsf@gnu.org> <87o8zle0rn.fsf@mail.linkov.net> <87k1a8yngo.fsf@mail.linkov.net> <87v9tsos4k.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="115103"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , Emacs developers , Yuri Khan To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 17 22:43:51 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAKKE-000TnA-I1 for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2019 22:43:50 +0200 Original-Received: from localhost ([::1]:52420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAKKD-0007a8-CD for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2019 16:43:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55349) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAKJT-0007Ym-Eq for emacs-devel@gnu.org; Tue, 17 Sep 2019 16:43:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAKJS-0003Qr-Fl for emacs-devel@gnu.org; Tue, 17 Sep 2019 16:43:03 -0400 Original-Received: from bonobo.birch.relay.mailchannels.net ([23.83.209.22]:23580) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iAKJQ-0003Pj-Go; Tue, 17 Sep 2019 16:43:00 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C33518C22F4; Tue, 17 Sep 2019 20:42:58 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a18.g.dreamhost.com (100-96-83-181.trex.outbound.svc.cluster.local [100.96.83.181]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3D2A58C2133; Tue, 17 Sep 2019 20:42:58 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a18.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Tue, 17 Sep 2019 20:42:58 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Robust-Tasty: 2aef7d8b7e113e86_1568752978477_2664844467 X-MC-Loop-Signature: 1568752978477:3023193222 X-MC-Ingress-Time: 1568752978477 Original-Received: from pdx1-sub0-mail-a18.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a18.g.dreamhost.com (Postfix) with ESMTP id 2340283763; Tue, 17 Sep 2019 13:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=XwBActSMac5+fPS0ZjGBTX3xhFw=; b= WDjqRp0aWft4qjxzuLnyIt4MS7U86bX7LPc3iqj5dPr2imRsKPZdAA2L1x4sRlCX r+NaT9MISRiC9tts6ahQJMy2FafYa2vGuJL7NK9yXg918f0DEVEdsFP/EpqTcvqa eZvQxJLI1F75oHOumr9cs3mfdu+2azpQuplFNJYisbo= Original-Received: from mail.jurta.org (m91-129-107-243.cust.tele2.ee [91.129.107.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a18.g.dreamhost.com (Postfix) with ESMTPSA id E6D1A8373A; Tue, 17 Sep 2019 13:42:51 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a18 In-Reply-To: <87v9tsos4k.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 16 Sep 2019 23:20:27 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrudeigdduvdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddvgeefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrvdegfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehlrghrshhisehgnhhushdrohhrghenucevlhhushhtvghrufhiiigvpedu X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.22 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240114 Archived-At: >> I don't know, I'm using HiDPI and see no problems. But maybe if >> someone prefers Double HiDPI with huge scaling, then we could provide >> larger images. Is it possible to detect such scaling in Emacs? > > xg_get_scale and friends? (For gtk-ish Emacsen.) Maybe xg_get_scale should be exposed to Lisp, then find-image could use it to choose a suitable image specification among e.g. etc/images/icons/hicolor/16x16/ etc/images/icons/hicolor/24x24/ etc/images/icons/hicolor/32x32/ etc/images/icons/hicolor/48x48/ etc/images/icons/hicolor/128x128/ etc/images/icons/hicolor/scalable/ Similar subdirs could be added to other images as well because this problem exists for other features, e.g. for subtree arrows in customization buffers, tool-bar icons, etc.