diff options
author | Adrian Perez de Castro <aperez@igalia.com> | 2018-07-20 00:16:57 +0200 |
---|---|---|
committer | Adrian Perez de Castro <aperez@igalia.com> | 2018-08-30 18:00:52 +0300 |
commit | 301ac60608d063063d14e12994ecc52da6043471 (patch) | |
tree | 0d0bfb67cb0abfe6ddd9f9db66477fc66ab0c77b /lib/meson.build | |
parent | a0236b15c1d1b38c0e74f527cc2ff2ecff211f3c (diff) | |
download | epiphany-301ac60608d063063d14e12994ecc52da6043471.tar.gz |
First pass at improving reader mode styling
The following fonts are used for reader mode:
- Merriweather (both the serif and sans variants) for text and titles.
- Adobe Source Pro for monospaced/preformatted text content.
A copy of the fonts is included and used as Web fonts. The CSS rules
are designed to match locally installed copies first, thus avoiding
the need for WebKit to fetch them from the bundled resources when
available in the system. The fonts are distributed under the terms of
the SIL OFL license.
On addition to the existing styling, a dark variant is provided as
well. Chosing the colorscheme is achieved by setting the "light" or
"dark" class in the <body> element. Whether to use the serif or
sans-serif font variant is chosen similarly using the "sans" and
"serif" CSS classes.
This adds two settings as well in a new org.gnome.Epiphany.reader
scheme, which for now can be set using external tools like dconf Editor
or the gsettings command line tools:
- font-style: Chooses between sans-serif and serif font.
- color-scheme: Chooses between light or dark background.
For the moment the settings are read only when reader mode is activated.
Diffstat (limited to 'lib/meson.build')
-rw-r--r-- | lib/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/meson.build b/lib/meson.build index c5056676c..5b2affa49 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -1,4 +1,5 @@ types_headers = [ + 'ephy-prefs.h', 'ephy-security-levels.h', 'ephy-sqlite-connection.h', 'history/ephy-history-types.h' |