瀏覽代碼

[RN] Share font selections between web and native

master
Saúl Ibarra Corretgé 6 年之前
父節點
當前提交
10163274d3
共有 3 個文件被更改,包括 1 次插入4 次删除
  1. 0
    1
      doc/adding-an-icon.md
  2. 1
    2
      react/features/base/font-icons/Icon.js
  3. 0
    1
      react/features/base/font-icons/jitsi.json

+ 0
- 1
doc/adding-an-icon.md 查看文件

8
 7. Download the result in a zip file using the "download" button.
8
 7. Download the result in a zip file using the "download" button.
9
 8. Copy <code>selection.json</code> and <code>fonts/jitsi.*</code> from the zip file to <code>fonts/</code> in Jitsi Meet
9
 8. Copy <code>selection.json</code> and <code>fonts/jitsi.*</code> from the zip file to <code>fonts/</code> in Jitsi Meet
10
 9. Copy the class for the new icon from <code>style.css</code> in the zip file to <code>css/_font.scss</code> in Jitsi Meet (do *not* copy the whole file)
10
 9. Copy the class for the new icon from <code>style.css</code> in the zip file to <code>css/_font.scss</code> in Jitsi Meet (do *not* copy the whole file)
11
-10. Copy the <code>selection.json</code> file to <code>react/features/base/font-icons</code> overwriting <code>jitsi.json</code>
12
 
11
 
13
 Sample commit: https://github.com/jitsi/jitsi-meet/commit/68bc819b89aec12364fcf07b81efa83a1900eed6
12
 Sample commit: https://github.com/jitsi/jitsi-meet/commit/68bc819b89aec12364fcf07b81efa83a1900eed6

+ 1
- 2
react/features/base/font-icons/Icon.js 查看文件

5
 // reflect that, it suggests the file is platform-independent.
5
 // reflect that, it suggests the file is platform-independent.
6
 import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
6
 import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
7
 
7
 
8
-// FIXME Share this with fonts/selection.json
9
-import icoMoonConfig from './jitsi.json';
8
+import icoMoonConfig from '../../../../fonts/selection.json';
10
 
9
 
11
 /**
10
 /**
12
  * Creates the Jitsi icon set from the ico moon project config file.
11
  * Creates the Jitsi icon set from the ico moon project config file.

+ 0
- 1
react/features/base/font-icons/jitsi.json
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存