diff --git a/.gitignore b/.gitignore index 8c8220a..1f1a171 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ out node_modules .vscode-test/ .vsix +package-lock.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 177d2eb..e6ddece 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## ver1.1.19 (2018/7/6) + 更新样式。 + update style. + +## ver1.1.18 (忘记什么时候更新的了。forget when) + 好像是更新文档之类。 + seems to update docs. + ## ver1.1.17 (2017/11/12) fix bug: 在vscode更新的时候,遗漏了 非初次加载插件&&css文件未hack 的情况。 产生原因:用ts重写的时候遗漏。 @@ -9,7 +17,7 @@ rewrite by typescript,because the old code is so rubish. :D 修复了旧版本的一个bug:插件卸载之后,注册的事件并没有dispose掉。 fix bug: After extension has been uninstalled,the event doesn't dispose currently. - + ## ver1.1.14 (2017/7/3) Fix the bug,which "z-index" caught. @@ -23,7 +31,7 @@ ### ver1.1.12 (2017/6/27) Config opacity. 添加自定义透明度功能。 remove background to the css3 [::after],so u can config opacity now! - 把background的背景移植到css3属性[::after]上,所以现在可以配置透明度。 + 把background的背景移植到css3属性[::after]上,所以现在可以配置透明度。 ### ver1.1.10 ver1.1.11 (2017/3/27) 添加 minimap 透明度 @@ -35,7 +43,7 @@ ver.1.1.9 修复背景重影的问题 -### ver1.1.7 (2016/9/27) +### ver1.1.7 (2016/9/27) 将 cunstomImages 修改为 customImages Please use customImages in your settings.json @@ -59,4 +67,4 @@ #### ver1.1.1 (2016/8/11) - 修复vscode1.4下不能使用的问题。 \ No newline at end of file + 修复vscode1.4下不能使用的问题。 diff --git a/assets/config.json b/assets/config.json index 775c49a..51b0361 100644 --- a/assets/config.json +++ b/assets/config.json @@ -1,3 +1,3 @@ { "firstload": true -} \ No newline at end of file +} diff --git a/package.json b/package.json index 61534f0..25640fd 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "background", "displayName": "background", "description": "A simple tool to make your vscode's background look better!", - "version": "1.1.18", + "version": "1.1.19", "publisher": "shalldie", "repository": { "type": "git", @@ -11,7 +11,7 @@ "engines": { "vscode": "^1.17.0" }, - "icon": "https://user-images.githubusercontent.com/9987486/40583704-6accf3a4-61c6-11e8-8c00-a636b9c3ec65.png", + "icon": "vscode-background-logo.png", "categories": [ "Other" ], diff --git a/src/getCss.ts b/src/getCss.ts index 94036eb..9b70b4a 100644 --- a/src/getCss.ts +++ b/src/getCss.ts @@ -3,7 +3,7 @@ import version from './version'; /** * 通过配置获取样式文本 - * + * * @param {object} options 用户配置 * @param {boolean} useFront 是否前景图 * @returns {string} @@ -25,13 +25,13 @@ function getStyleByOptions(options: object, useFront: boolean) { /** * 生成css样式 - * + * * @export * @param {Array} arr 图片数组 * @param {any} [style={}] 自定义样式 * @param {Array} [styles=[]] 每个背景图的自定义样式 * @param {boolean} [useFront=true] 是否用前景图 - * @returns + * @returns */ export default function (arr: Array, style = {}, styles = [], useFront = true) { let [img0, img1, img2] = (arr && arr.length) ? @@ -50,16 +50,17 @@ export default function (arr: Array, style = {}, styles = [], useFront = let frontContent = useFront ? '::after' : '::before'; let content = ` - + /*css-background-start*/ /*background.ver.${version}*/ -.editor-one>.container>.editor-container>.monaco-editor>.overflow-guard>.monaco-scrollable-element:nth-child(2)${frontContent}{background-image: url('${img0}');${styel0}} -.editor-two>.container>.editor-container>.monaco-editor>.overflow-guard>.monaco-scrollable-element:nth-child(2)${frontContent}{background-image: url('${img1}');${style1}} +[id="workbench.parts.editor"] .split-view-view:nth-child(1) .editor-container .overflow-guard>.monaco-scrollable-element${frontContent}{background-image: url('${img0}');${styel0}} + +[id="workbench.parts.editor"] .split-view-view:nth-child(2) .editor-container .overflow-guard>.monaco-scrollable-element${frontContent}{background-image: url('${img1}');${style1}} -.editor-three>.container>.editor-container>.monaco-editor>.overflow-guard>.monaco-scrollable-element:nth-child(2)${frontContent}{background-image: url('${img2}');${style2}} +[id="workbench.parts.editor"] .split-view-view:nth-child(3) .editor-container .overflow-guard>.monaco-scrollable-element${frontContent}{background-image: url('${img2}');${style2}} -[id='workbench.parts.editor']>.content>.one-editor-silo .monaco-editor>.overflow-guard>.monaco-scrollable-element>.monaco-editor-background{background: none;} +[id="workbench.parts.editor"] .split-view-view .editor-container .overflow-guard>.monaco-scrollable-element>.monaco-editor-background{background: none;} /*css-background-end*/ `; diff --git a/src/version.ts b/src/version.ts index f498a65..3abb88f 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '1.1.17'; \ No newline at end of file +export default '1.1.19'; diff --git a/vscode-background-logo.png b/vscode-background-logo.png new file mode 100644 index 0000000..07b6293 Binary files /dev/null and b/vscode-background-logo.png differ