From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Using images in tabs Date: Mon, 16 Sep 2019 18:49:22 -0400 Message-ID: <1b256154-0942-43fe-da3f-33ef5840f0f0@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="12930"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 17 00:49:59 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 1i9zoj-0003Bk-K7 for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2019 00:49:57 +0200 Original-Received: from localhost ([::1]:40588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9zoi-00043J-7H for ged-emacs-devel@m.gmane.org; Mon, 16 Sep 2019 18:49:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45508) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9zoE-00043B-Hs for emacs-devel@gnu.org; Mon, 16 Sep 2019 18:49:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9zoD-00088O-Id for emacs-devel@gnu.org; Mon, 16 Sep 2019 18:49:26 -0400 Original-Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:34499) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9zoD-00088B-Ci for emacs-devel@gnu.org; Mon, 16 Sep 2019 18:49:25 -0400 Original-Received: by mail-qk1-x72d.google.com with SMTP id q203so1810232qke.1 for ; Mon, 16 Sep 2019 15:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=XMOd2++T+mt83XVFJI8wDrhU4+NcI/S/M2zp5274G3g=; b=hmuvNpC917dBio7lc6wp09Ab0ZHFDdjrkOs1ki1gVYxiXlmPVSxv4v540nRLSbKMrG rYlaw/jC26BveXPb56wvm6ZOkgie9R2tsFMcF4dh5dKwK6gLwRPbkHzNPo/+8juUf3be Nf6XlCt/K238YVMvb3C1smVyyfOIYS5bJzcnNMPD1CyJn+c329/97+zsceRUi2p3wtQv I4I85CUtszmGsr3TlEwEEY8xZSPBlqZb9UZ5OP15HrhRpP3mwp37WCPB0J8z2JXzhiOA pzUO9BymYvFu0VLywcPKWa7Pl2UQLPFS70IE6MG/cH2Qi/4Q0hkyKtviYrk1H+3S17U2 NqyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XMOd2++T+mt83XVFJI8wDrhU4+NcI/S/M2zp5274G3g=; b=J6mHeqT4PoCDbBx9t+RbqME7FZ1SqOX2FR82xRCrDs93GxPzth+NJqpLIzIs2hgBOD kiYWZrtbXCmHjvMe7Cl+g6vU2pZ3BhSOZXf4R3lURm6tQ0d7jvt5Q8kSO6w0YLoZDcUh S0tt6QtyzsRLBlHInN04waOcjG/U8zzckS5sxRBulZEqIVhEsCAQkCEoq72S+VKC4I78 t91dAibe121ehUZ4R5Tdyfgs4NAK4EY9F7rgJMmWdJLuy/4P96/qA06+CxRPKlyNMTyk rFBpLoJb+9T/drvx/FMxUax+Ny1svMhGMOt111OE1whMTjZ8tIJUBSuouGICRs71Ce90 SYLw== X-Gm-Message-State: APjAAAU619Wcsy10CbHWmz7bG84XW3A/0aHv2+pB4h5zq3uvMjlq97e3 HYsJGfddEsH9krapxvX7Z2GzW0t1 X-Google-Smtp-Source: APXvYqy6mUTDvHj1G2S1lS5UPqyZEGmrZ3LrI8/IaOAHBrFWgqwT535Fmxa1v6GiiBfLm3K5+0nMJg== X-Received: by 2002:a37:a683:: with SMTP id p125mr729879qke.173.1568674164061; Mon, 16 Sep 2019 15:49:24 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:20d1:e637:815:6b56? ([2601:184:4180:66e7:20d1:e637:815:6b56]) by smtp.googlemail.com with ESMTPSA id t126sm176343qkh.119.2019.09.16.15.49.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Sep 2019 15:49:23 -0700 (PDT) In-Reply-To: <87k1a8yngo.fsf@mail.linkov.net> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72d 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:240094 Archived-At: On 2019-09-16 16:51, Juri Linkov wrote: >>>>> I don't know if the patch to vertically center line content >>>>> recently sent here by Jesse, could improve the look to align >>>>> the button image to the center of the text line in tabs. >>>> >>>> The image used should be centered to begin with. You could also try >>>> playing with :ascent property of images. >>> >>> Thanks for the hint. Using :ascent property with the center value >>> on images solved the issue, so now tabs are more nice-looking: >> >> Do images also play nice with HiDPI? > > 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? Would using SVG be an option? I use SVG (with a fallback) in my packages when I support the tool-bar, and it works nicely wrt scaling.