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.bugs Subject: bug#37689: Fringe pixmaps, widgets, etc. look ridiculously tiny in hidpi screen Date: Sun, 20 Oct 2019 19:03:10 +0300 Organization: LINKOV.NET Message-ID: <87eez7mxoh.fsf@mail.linkov.net> References: <83sgo1rpbx.fsf@gnu.org> <831rvksksa.fsf@gnu.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="149900"; 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: Robert Pluim , 37689@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 20 18:35:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1iMEAu-000cml-Km for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 18:35:24 +0200 Original-Received: from localhost ([::1]:40478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMEAt-0005uF-DE for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 12:35:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33268) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iME8h-0003cH-Mf for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 12:33:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iME8f-0000K6-N7 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 12:33:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46361) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iME8e-0000J2-F5 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 12:33:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iME8e-00073S-BG for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 12:33:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Oct 2019 16:33:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37689 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37689-submit@debbugs.gnu.org id=B37689.157158917927091 (code B ref 37689); Sun, 20 Oct 2019 16:33:04 +0000 Original-Received: (at 37689) by debbugs.gnu.org; 20 Oct 2019 16:32:59 +0000 Original-Received: from localhost ([127.0.0.1]:55180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iME8Z-00072t-Eu for submit@debbugs.gnu.org; Sun, 20 Oct 2019 12:32:59 -0400 Original-Received: from bisque.elm.relay.mailchannels.net ([23.83.212.18]:54567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iME8U-00072W-RU for 37689@debbugs.gnu.org; Sun, 20 Oct 2019 12:32:55 -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 CD7DC580696; Sun, 20 Oct 2019 16:32:53 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (100-96-84-88.trex.outbound.svc.cluster.local [100.96.84.88]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 59AB45805E5; Sun, 20 Oct 2019 16:32:53 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a73.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.18.5); Sun, 20 Oct 2019 16:32:53 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Trade-Bitter: 24f122ea29fc7955_1571589173659_3348799539 X-MC-Loop-Signature: 1571589173659:3848609290 X-MC-Ingress-Time: 1571589173659 Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTP id 21E7582C0F; Sun, 20 Oct 2019 09:32:49 -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=L/fjsjbWEd1/Gqlok/VTnhvk/ZI=; b= JOiGmZqFYa0gx5MW5kVGvrwNcig35ibJnvYDF6UdcFhw+nA3sR0a22/c+Dg8EJwl EojtOOyYTa7VNvpHzwEkQP3dhKYG85CpONOZSQpzoDpc5UCxlK/0EJKqC4UFa8ep u9iVN6GIO/dsJIO6Jm9El6NvK52ApTi7KVnriAgajYI= Original-Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (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-a73.g.dreamhost.com (Postfix) with ESMTPSA id 0368482C03; Sun, 20 Oct 2019 09:32:46 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a73 In-Reply-To: (Carlos Pita's message of "Thu, 10 Oct 2019 12:51:57 -0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169837 Archived-At: >> > Perhaps we should convert those pixmaps to some scaleable format, and >> > then autoscale them? >> >> You mean, SVG? We could do that, but we'd like images to display well >> even if Emacs cannot display SVG. >> >> Also, I think fringe bitmaps and other icons we use in the UI cannot >> be scalable, we need to scale them ourselves. Not that I'm an expert >> on that (so don't take my words as definitive and/or final). > > At least for the fringe part, what do you think of modifying > define-fringe-bitmap to take into account scaling factor? > > For example, if scaling factor > 1.5 make everything x2, if > 2.5 then > x3, etc. It seems quite simple to achieve those integer scalings. Funnily enough, the current fringe bitmaps are too big for me, so I had to customize them using smaller bitmaps copied from somewhere. I guess it should be possible to do the same to provide x2 scaled bitmaps: (define-fringe-bitmap 'light-down-arrow [32 32 32 32 32 32 168 112 32] nil nil 'bottom) (define-fringe-bitmap 'light-up-arrow [32 112 168 32 32 32 32 32 32] nil nil 'top) (define-fringe-bitmap 'light-top-left-angle [254 254 128 128 128] nil nil 'top) (define-fringe-bitmap 'light-bottom-left-angle [128 128 128 254 254] nil nil 'bottom) (define-fringe-bitmap 'light-left-bracket [254 254 128 128 128 0 0 0 0 128 128 128 254 254] nil nil 'center) (define-fringe-bitmap 'light-right-curly-arrow [96 16 8 8 72 80 96 120] nil nil 'bottom) (define-fringe-bitmap 'light-left-curly-arrow [8 16 16 16 18 10 6 30] nil nil 'top) (define-fringe-bitmap 'light-right-arrow [16 8 252 8 16] nil 11 'center) (define-fringe-bitmap 'light-left-arrow [32 64 254 64 32] nil nil 'center) (setq-default fringe-indicator-alist '((truncation . (light-left-arrow light-right-arrow)) (continuation . (light-left-curly-arrow light-right-curly-arrow)) (overlay-arrow . right-triangle) (up . light-up-arrow) (down . light-down-arrow) (top . (light-top-left-angle top-right-angle)) (bottom . (light-bottom-left-angle bottom-right-angle top-right-angle light-top-left-angle)) (top-bottom . (light-left-bracket right-bracket top-right-angle light-top-left-angle)) (empty-line . empty-line) (unknown . question-mark)))