git ssb

16+

Dominic / patchbay



Commit 96fd009f7188e314e4308ddf338613c60913fa9a

FONT - add noto-color-emoji

mixmix committed on 6/11/2019, 4:22:39 AM
Parent: a035e0e448371bb320700598868f4917a757c12b

Files changed

app/html/app.mcsschanged
app/styles/css/noto-color-emoji.jsadded
app/sync/initialise/styles.jschanged
package-lock.jsonchanged
package.jsonchanged
app/html/app.mcssView
@@ -1,6 +1,7 @@
11 App {
22 background: var(--app-border-background)
3 + font-family: arial, sans-serif, NotoColorEmoji
34
45 overflow: hidden
56
67 min-height: 0px
app/styles/css/noto-color-emoji.jsView
@@ -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.jsView
@@ -34,9 +34,9 @@
3434 })
3535 )
3636 document.head.appendChild(
3737 h('style', {
38- innerHTML: when(openDyslexicEnabled, '.App { font-family: OpenDyslexicRegular; }', '')
38 + innerHTML: when(openDyslexicEnabled, '.App { font-family: OpenDyslexicRegular, arial, sans-serif, NotoColorEmoji; }', '')
3939 })
4040 )
4141 }
4242 }