mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-18 17:52:17 +00:00
ace字体添加yahei
This commit is contained in:
@@ -17,6 +17,17 @@ var Api = {
|
||||
userService: UserService,
|
||||
dbService: db,
|
||||
|
||||
// 打开本地目录
|
||||
// mac和windows下不同
|
||||
openLocalDir: function (dir) {
|
||||
if (isMac()) {
|
||||
gui.Shell.showItemInFolder(dir);
|
||||
}
|
||||
else {
|
||||
gui.Shell.openItem(dir);
|
||||
}
|
||||
},
|
||||
|
||||
// 得到当前版本
|
||||
getCurVersion: function (callback) {
|
||||
var me = this;
|
||||
|
@@ -48,7 +48,7 @@
|
||||
/** lifelife */
|
||||
/* Pretty printing styles. Used with prettify.js. */
|
||||
pre.prettyprint * {
|
||||
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
|
||||
font-family: Monaco, Menlo, Consolas, "Courier New", monospace, microsoft yahei;
|
||||
}
|
||||
pre.prettyprint {
|
||||
white-space: pre-wrap;
|
||||
|
@@ -8,7 +8,7 @@
|
||||
var async;
|
||||
|
||||
define(function() {
|
||||
var setLang = {
|
||||
var accounts = {
|
||||
langs: {
|
||||
'en-us': {
|
||||
'Accounts': 'Accounts',
|
||||
@@ -166,14 +166,14 @@ define(function() {
|
||||
Api.gui.dialog.showErrorBox(me.getMsg("Error"), me.getMsg("No such account"));
|
||||
return;
|
||||
}
|
||||
Api.gui.Shell.showItemInFolder(path);
|
||||
Api.openLocalDir(path);
|
||||
});
|
||||
},
|
||||
'open-attach-dir': function (userId) {
|
||||
Api.gui.Shell.showItemInFolder(Api.userService.getUserAttachsPath(userId));
|
||||
Api.openLocalDir(Api.userService.getUserAttachsPath(userId));
|
||||
},
|
||||
'open-image-dir': function (userId) {
|
||||
Api.gui.Shell.showItemInFolder(Api.userService.getUserImagesPath(userId));
|
||||
Api.openLocalDir(Api.userService.getUserImagesPath(userId));
|
||||
},
|
||||
'delete': function (userId, $targetBtn) {
|
||||
me.deleteUser(userId, function (ok) {
|
||||
@@ -521,6 +521,6 @@ define(function() {
|
||||
}
|
||||
};
|
||||
|
||||
return setLang;
|
||||
return accounts;
|
||||
|
||||
});
|
@@ -1184,7 +1184,7 @@ h1, h2, h3 {
|
||||
// ace 重置css, 必须
|
||||
.ace_editor, .ace_editor * {
|
||||
// font: 14px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro';
|
||||
font-family: @aceFontFamily !important; // 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro';
|
||||
}
|
||||
|
||||
/* leanote nav */
|
||||
@@ -1314,7 +1314,7 @@ h1, h2, h3 {
|
||||
text-decoration: underline;
|
||||
}
|
||||
pre {
|
||||
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
|
||||
font: 12px/normal @aceFontFamily; // 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
|
||||
// background-color: #FFFFFF;
|
||||
color: #4D4D4C;
|
||||
// padding: 5px;
|
||||
|
@@ -1296,7 +1296,7 @@ h3 {
|
||||
}
|
||||
.ace_editor,
|
||||
.ace_editor * {
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro';
|
||||
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', "Microsoft YaHei", "微软雅黑" !important;
|
||||
}
|
||||
/* leanote nav */
|
||||
.leanoteNav {
|
||||
@@ -1399,7 +1399,7 @@ h3 {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#editorContent pre {
|
||||
font: 12px / normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
|
||||
font: 12px / normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', "Microsoft YaHei", "微软雅黑";
|
||||
color: #4D4D4C;
|
||||
}
|
||||
#editorContent .ace-tomorrow {
|
||||
|
Reference in New Issue
Block a user