Commit 96fd009f7188e314e4308ddf338613c60913fa9a
FONT - add noto-color-emoji
mixmix committed on 6/11/2019, 4:22:39 AMParent: a035e0e448371bb320700598868f4917a757c12b
Files changed
app/html/app.mcss | changed |
app/styles/css/noto-color-emoji.js | added |
app/sync/initialise/styles.js | changed |
package-lock.json | changed |
package.json | changed |
app/html/app.mcss | ||
---|---|---|
@@ -1,6 +1,7 @@ | ||
1 | 1 … | App { |
2 | 2 … | background: var(--app-border-background) |
3 … | + font-family: arial, sans-serif, NotoColorEmoji | |
3 | 4 … | |
4 | 5 … | overflow: hidden |
5 | 6 … | |
6 | 7 … | min-height: 0px |
app/styles/css/noto-color-emoji.js | |||
---|---|---|---|
@@ -1,0 +1,11 @@ | |||
1 … | +const nest = require('depnest') | ||
2 … | +const requireStyle = require('require-style') | ||
3 … | +const { assign } = Object | ||
4 … | + | ||
5 … | +exports.gives = nest('styles.css') | ||
6 … | + | ||
7 … | +exports.create = function (api) { | ||
8 … | + return nest('styles.css', (sofar = {}) => { | ||
9 … | + return assign(sofar, { notoColorEmoji: requireStyle('noto-color-emoji') }) | ||
10 … | + }) | ||
11 … | +} |
app/sync/initialise/styles.js | ||
---|---|---|
@@ -34,9 +34,9 @@ | ||
34 | 34 … | }) |
35 | 35 … | ) |
36 | 36 … | document.head.appendChild( |
37 | 37 … | h('style', { |
38 | - innerHTML: when(openDyslexicEnabled, '.App { font-family: OpenDyslexicRegular; }', '') | |
38 … | + innerHTML: when(openDyslexicEnabled, '.App { font-family: OpenDyslexicRegular, arial, sans-serif, NotoColorEmoji; }', '') | |
39 | 39 … | }) |
40 | 40 … | ) |
41 | 41 … | } |
42 | 42 … | } |