all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: [Announce] The new Emacs homepage is online!
Date: Wed, 30 Mar 2016 00:02:31 +0200	[thread overview]
Message-ID: <56FAFB77.6090104@gmail.com> (raw)
In-Reply-To: <7de76737-d674-489c-b754-cc0b7e9ede05@default>


[-- Attachment #1.1: Type: text/plain, Size: 4409 bytes --]

On 03/29/2016 11:20 PM, Drew Adams wrote:
>> Even just inverting to white-on-black would look much better.
>
> Seriously?  Beauty, and eye-strain, are apparently in the eye of the 
> beholder - at least in part.
> 
> http://lmgtfy.com/?q=eye+strain+reading+online+light+dark+background+screen
> http://lmgtfy.com/?q=best+background+color+for+reading+on+computer

Drew, sending a let-me-google-that-for-you link feels insulting. I'm sure you meant it as a joke, but it looks rude from here.

Besides, here's a quote from the first result of the first link:

> Therefore, you want a background with about the intensity of a dark 
> grey, with something about the intensity of a light grey.  However, 
> to get the high contrast I discussed above, you need to use color.

I don't necessarily agree, but I think your reply highlights the importance of showing that Emacs's looks can be customized to the taste of the user. I'll also note that:

* vim is traditionally used in white-on-black terminals
* Atom uses a dark theme by default
* Spacemacs uses a dark theme by default
* Visual Studio provides both options, and asks you at installation time

On the other hand, Eclipse and jEdit do default to black on white.

Drew, what would you think of adding a carousel showing the default themes? Maybe it would help make sure that everyone does get a "phew, Emacs can be made pretty" moment (though more people would also get a "eww, who would want Emacs to look like that" moment too). Nicolas, do you think it would be a good idea? Would we want to also show more heavily customized copies of Emacs? Ideally, this could even come with the script used to generate the screenshots, so users can copy the styles if they want (in the fashion of what matplotlib does at http://matplotlib.org/gallery.html, for example). I'm sure Chris would be happy to provide details about the configuration that he used.

Nicolas, maybe the following could be a useful starting point? It prepares Emacs as shown in https://raw.githubusercontent.com/cpitclaudel/biblio.el/master/etc/screenshots/biblio.el.png , and takes a screenshot automatically.

(defconst biblio-screenshots--fringe-width 8)

(defun biblio-screenshots--make-emacs-pretty ()
  "Prettify Emacs."
  (redisplay t)
  (load-theme 'tango t)
  (set-face-attribute 'default nil :height 105)
  (set-face-attribute 'default nil :foreground "black")
  (set-face-attribute 'mode-line nil :foreground "gray60" :background "black")
  (set-face-attribute 'mode-line-inactive nil :foreground "gray60" :background "#404045")
  (set-face-attribute 'mode-line-buffer-id nil :foreground "#eab700")
  (set-fontset-font t 'unicode "Ubuntu Mono")
  (set-fontset-font t 'unicode "Symbola Monospacified for Ubuntu Mono" nil 'append)
  (tool-bar-mode -1)
  (menu-bar-mode -1)
  (scroll-bar-mode -1)
  (column-number-mode)
  (fringe-mode (cons biblio-screenshots--fringe-width biblio-screenshots--fringe-width))
  (blink-cursor-mode -1)
  (setq-default cursor-type nil
                split-width-threshold 100
                mode-line-format '(" " mode-line-buffer-identification " " mode-name))
  (set-frame-size (selected-frame) 128 30))

(defun biblio-screenshots--save-screenshot ()
  "Save screenshot of current frame."
  (let ((fname (expand-file-name "biblio.el.png" biblio-screenshots--script-dir)))
    (process-lines "import" "-window" (frame-parameter nil 'outer-window-id)
                   fname)
    (process-lines "mogrify" "-strip" "-matte"
                   "-bordercolor" (face-attribute 'fringe :background)
                   "-border" (format "0x%d" biblio-screenshots--fringe-width) fname)
    (process-lines "optipng" "-o3" fname))
  (kill-emacs))

(defun biblio-screenshots--prepare ()
  "Prepare a screenshot."
  (biblio-screenshots--make-emacs-pretty)
  (delete-other-windows)
  (Some setup code here to show the right window configuration))

(defun biblio-screenshots--do ()
  "Prepare and take screenshot."
  (biblio-screenshots--prepare)
  (force-window-update)
  (redisplay t)
  (run-with-timer 1 nil #'biblio-screenshots--save-screenshot))

I use a similar process to generate the (many) screenshots at https://github.com/cpitclaudel/company-coq/#screenshots . I don't claim that they are particularly pretty; just that that script might be useful :)

Cheers,
Clément.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2016-03-29 22:02 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 16:38 [Announce] The new Emacs homepage is online! Nicolas Petton
2016-03-29 16:42 ` Kaushal Modi
2016-03-29 16:48   ` Nicolas Petton
2016-03-29 17:01     ` Nicolas Petton
2016-03-29 17:30       ` Kaushal Modi
2016-03-29 16:53 ` Stefan Monnier
2016-03-29 17:01   ` Nicolas Petton
2016-03-29 17:01 ` Clément Pit--Claudel
2016-03-29 17:08   ` Nicolas Petton
2016-03-29 17:15     ` Clément Pit--Claudel
2016-03-29 17:43 ` Jorge A. Alfaro-Murillo
2016-03-29 18:06   ` Paul Michael Reilly
2016-03-29 18:08 ` Teemu Likonen
2016-03-29 21:04 ` Christopher Allan Webber
2016-03-29 21:20   ` Drew Adams
2016-03-29 22:02     ` Clément Pit--Claudel [this message]
2016-03-29 22:35       ` Drew Adams
2016-03-29 22:51         ` Clément Pit--Claudel
2016-03-31  8:38           ` Nicolas Petton
2016-03-31  9:01             ` Christian Kruse
2016-03-31  9:42               ` Nicolas Petton
2016-03-30  1:25         ` Chad Brown
2016-03-30 17:07     ` Christopher Allan Webber
2016-03-30  0:27 ` Xue Fuqiao
2016-03-30 17:05   ` Nicolas Petton
2016-07-25 12:35   ` Nicolas Petton
2016-07-25 22:23     ` Xue Fuqiao
2016-03-30  7:13 ` Joost Kremers
2016-03-30 13:57 ` Filipp Gunbin
2016-03-30 14:00   ` Filipp Gunbin
2016-03-30 14:09 ` Bastien Guerry
2016-03-31 12:34 ` Lluís
2016-03-31 12:40   ` Nicolas Petton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56FAFB77.6090104@gmail.com \
    --to=clement.pit@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.