You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Mobile: Custom mobile editor font (#1797)
* Make editor font "Menlo" * Add .vscode/* to .gitignore * Add "editor font" config UI * Render "editor font" chosen in config * Add shim.mobilePlatform() * Use style.editor.fontFamily rather than editorFont * Add default font option * Fixed for Android
This commit is contained in:
committed by
Laurent Cozic
parent
fe9a037cf9
commit
4ba4910a9c
@@ -6,7 +6,7 @@ const { generateSecureRandom } = require('react-native-securerandom');
|
||||
const FsDriverRN = require('lib/fs-driver-rn.js').FsDriverRN;
|
||||
const urlValidator = require('valid-url');
|
||||
const { Buffer } = require('buffer');
|
||||
const { Linking } = require('react-native');
|
||||
const { Linking, Platform } = require('react-native');
|
||||
const mimeUtils = require('lib/mime-utils.js').mime;
|
||||
const { basename, fileExtension } = require('lib/path-utils.js');
|
||||
const { uuid } = require('lib/uuid.js');
|
||||
@@ -145,6 +145,10 @@ function shimInit() {
|
||||
});
|
||||
};
|
||||
|
||||
shim.mobilePlatform = () => {
|
||||
return Platform.OS;
|
||||
};
|
||||
|
||||
// NOTE: This is a limited version of createResourceFromPath - unlike the Node version, it
|
||||
// only really works with images. It does not resize the image either.
|
||||
shim.createResourceFromPath = async function(filePath, defaultProps = null) {
|
||||
|
||||
Reference in New Issue
Block a user