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 21:52:32 +0300 Organization: LINKOV.NET Message-ID: <87zhhvgsgf.fsf@mail.linkov.net> References: <83sgo1rpbx.fsf@gnu.org> <831rvksksa.fsf@gnu.org> <87eez7mxoh.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="200780"; 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 20:56:22 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 1iMGNK-000q7J-7v for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 20:56:22 +0200 Original-Received: from localhost ([::1]:44074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMGNI-00030b-N6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 14:56:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44154) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMGN1-0002yS-3Q for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 14:56:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMGN0-0006xX-0C for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 14:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46433) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMGMz-0006xO-Re for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 14:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMGMz-0001zL-Nw for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 14:56:01 -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 18:56:01 +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.15715977247588 (code B ref 37689); Sun, 20 Oct 2019 18:56:01 +0000 Original-Received: (at 37689) by debbugs.gnu.org; 20 Oct 2019 18:55:24 +0000 Original-Received: from localhost ([127.0.0.1]:55252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMGMO-0001yJ-3a for submit@debbugs.gnu.org; Sun, 20 Oct 2019 14:55:24 -0400 Original-Received: from cheetah.birch.relay.mailchannels.net ([23.83.209.34]:16997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMGMJ-0001y1-Rx for 37689@debbugs.gnu.org; Sun, 20 Oct 2019 14:55:21 -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 92565340CDE; Sun, 20 Oct 2019 18:55:18 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a26.g.dreamhost.com (100-96-171-212.trex.outbound.svc.cluster.local [100.96.171.212]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 80E84340CB7; Sun, 20 Oct 2019 18:55:17 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a26.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 18:55:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Soft-Shoe: 2a8b3c1c2c83910d_1571597717771_1997324158 X-MC-Loop-Signature: 1571597717771:2952394567 X-MC-Ingress-Time: 1571597717771 Original-Received: from pdx1-sub0-mail-a26.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a26.g.dreamhost.com (Postfix) with ESMTP id E526B81351; Sun, 20 Oct 2019 11:55:11 -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=9avx1jLYxrBLBh0X/uoFc6ls77A=; b= KD4U+JlNvCqUEL9jNq9Z+RpWg0bjf4zRqu2200iQVz8ZMCxgLCAdpbDf01yuntqB vp/Be2BMppxnFF3zjaA2UvMiNr/A0XA88TJJgEkHNhPKsD3NXKulWyzHbp+N7EAv UUJ61n4knKbTtWd/Ovey+cdUocwCg/XfH1kCYsQqElY= 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-a26.g.dreamhost.com (Postfix) with ESMTPSA id 970678135C; Sun, 20 Oct 2019 11:55:09 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a26 In-Reply-To: (Carlos Pita's message of "Sun, 20 Oct 2019 14:37:15 -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:169847 Archived-At: >> 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) > > This is indeed a cool workaround if you can override the builtin > bitmaps. Actually, this doesn't override the builtin bitmaps. The name of the builtin bitmap is 'down-arrow', but this defines a new bitmap 'light-down-arrow'. You can use any name you want, e.g. 'down-arrow-2x'. > But anyway it won't address the problem of having different > frames with different dpis nor the need to expose a "scale factor api" > to fix not only this but other hidpi-related issues. Maybe the value of 'fringe-indicator-alist' should be frame-local? Then depending on the exposed scale-factor, each frame could use own set of bitmaps defined by frame-local 'fringe-indicator-alist'. >> Funnily enough, the current fringe bitmaps are too big for me, > > Too big as in "twice as big as expected" or in "too big for my taste"? I use a small 10px font, so the customized bitmaps fit the font size. So maybe fridge bitmap size should depend on the font size, not scale?