From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.devel Subject: Splash screen alignment on wider frame layout Date: Tue, 29 Sep 2020 11:58:37 +0530 Organization: Code Is Great Foundation Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27686"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (darwin) To: Emacs Developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 29 08:30:44 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 1kN99v-00076V-QE for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Sep 2020 08:30:43 +0200 Original-Received: from localhost ([::1]:42810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kN99u-0006hd-OV for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Sep 2020 02:30:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kN989-0006C9-6y for emacs-devel@gnu.org; Tue, 29 Sep 2020 02:28:56 -0400 Original-Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:33248) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kN987-0002V2-Bv for emacs-devel@gnu.org; Tue, 29 Sep 2020 02:28:52 -0400 Original-Received: by mail-pf1-x42a.google.com with SMTP id q123so3542236pfb.0 for ; Mon, 28 Sep 2020 23:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:organization:mail-followup-to:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=bU2rYSRdzvDPAq06lzFVGG/HRedn+S7/PAigc87bVpk=; b=ctO3wY834P0xJNoNzUgaMj8PBhFN6fSdZKiZ4W8WRzmuUN3/6RacjasoUk4M5QAYtA 6Jy5F3HlvPRs79Etl0tcUD9Sa64xEYUhgzHAHAubHP/rgf0bBW3YixB2VdD7/6GJpRuq 08vWudzyOWONHWBNyBjIz9NmrNNqvr7GUGtMUOAZ5xXJVkAcJYTy63UFND4U7HZSRtJK 0VpBzAw2sC+reH/G2YO5MjwGH34WogthVfeLY1Kgw6CBtx4lHGwZBNeHRRvzuQhRHOs6 wqE+ufmQ7RfkM6tqVaU2tBkipJw69yyQfl2Cl2Q16VNB8wWuqdymy+yskhCpa83n6zmu YMqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:mail-followup-to :date:message-id:user-agent:mime-version:content-transfer-encoding; bh=bU2rYSRdzvDPAq06lzFVGG/HRedn+S7/PAigc87bVpk=; b=ubTY+HtnmzhzqWwK3sHbz4+oAEkFJyV+ZTLMNThsShcRnknkVmifbcLDk4n7eY1i1I ShSCDN7lU88azDzO+oHsEzJGVWmXwUn6ga22/j9TXcqCMJgyQ909Ado44aLXDfCw6QSV jBGEw1oD3zAUCi2IqGWTNCtKRKJvSNTscEXlQzGhktqkQuchipq2Cuh941yMWozvGot5 1DmrTmVYay6+/scVGgkXvIRS/8CzXkaf73zQxnih+2LSqMZQ34hFZCEyAuUT/bkgWBy7 f+jHDIeOygw6/hmxM5qNoY05oCnfHKRQAUsuNJBqv4viAKhOhcYvK6xffrxBSfZkLfjm q0bQ== X-Gm-Message-State: AOAM532fw2RXOW9L9lzCLW+HR3P6K9TQ9oeJXCKFLVpmgs1eLcBJmFb+ mn6yizPXHDOpXgYt+mJ+wApwMiuJ/DHENQ== X-Google-Smtp-Source: ABdhPJwQ1oLKM5ClieSepLkwpG0YgzOC0KylyzoTVaVd0JzQZ3d5gb+mN36WX4sL2fO0LlzNjHC/4w== X-Received: by 2002:aa7:94a4:0:b029:151:d786:d5c2 with SMTP id a4-20020aa794a40000b0290151d786d5c2mr141285pfl.50.1601360928342; Mon, 28 Sep 2020 23:28:48 -0700 (PDT) Original-Received: from BigBook.local ([49.36.145.117]) by smtp.gmail.com with ESMTPSA id l21sm3119814pjq.54.2020.09.28.23.28.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 23:28:47 -0700 (PDT) Mail-Followup-To: Emacs Developers Received-SPF: none client-ip=2607:f8b0:4864:20::42a; envelope-from=pankaj.jangid@codeisgreat.com; helo=mail-pf1-x42a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.199, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no 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:256670 Archived-At: Recently I have been experimenting with the width of my Emacs frame using some code in the early-init.el file. This was inspired by the text user interface (TUI )of one of my Debian laptops, that doesn't have a graphical user interface. I wanted exactly same number of columns and rows on my graphical as well as text user interfaces. This is what I did, --8<---------------cut here---------------start------------->8--- (setq default-frame-alist '((height . 47) (width . 169) (left . 110))) --8<---------------cut here---------------end--------------->8--- During this exercise, I found a tiny issue with the alignment of text and Emacs logo in the welcome screen, *GNU Emacs* buffer (splash). I think this can be improved. I like the left aligned text on the TUI, irrespective of the frame size. This gives me uniform experience on all the TUIs. Whether to keep it left aligned or keep it left-aligned in the center of the frame; this can be debated. But my following idea is about uniformity. On graphical user interfaces (GUIs), Emacs displays a logo above the welcome text. It is center aligned. This isn't an issue if we keep the default frame width. But when we increase the frame-width, the logo shifts =E2=86=92 towards the center. But the text remains left-aligned. This give a very odd impression. Proposal: There are two alternates that we can adopt. (1) Keep both, the logo and the text, left-aligned on all frame sizes. (2) Put both, the logo and the text, inside a box of max-width equal to default frame-width. Keep the text left-aligned inside this box and keep the logo center-aligned inside the box. If frame-width is increased move =E2=86=92 the container box to the center of the frame. If the frame-width = is decreased reduce the width of box, keeping alignment attibutes same. I prefer (1), this is much simpler to implement and gives uniform experience on all screens - TUIs and GUIs. Regards --=20 Pankaj Jangid GnuPG Fingerprint =3D> 0B62 7424 3B26 A911 052A DDE6 7C95 6E6F F858 7689