unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Splash screen alignment on wider frame layout
@ 2020-09-29  6:28 Pankaj Jangid
  0 siblings, 0 replies; only message in thread
From: Pankaj Jangid @ 2020-09-29  6:28 UTC (permalink / raw)
  To: Emacs Developers

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 → 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
→ 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

-- 
Pankaj Jangid

GnuPG Fingerprint => 0B62 7424 3B26 A911 052A DDE6 7C95 6E6F F858 7689



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-29  6:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29  6:28 Splash screen alignment on wider frame layout Pankaj Jangid

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).