Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
release ver.1.1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
shalldie committed Jul 6, 2018
1 parent 92e9f8d commit 37d9682
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ out
node_modules
.vscode-test/
.vsix
package-lock.json
16 changes: 12 additions & 4 deletions 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重写的时候遗漏。
Expand All @@ -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.
Expand All @@ -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 透明度
Expand All @@ -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

Expand All @@ -59,4 +67,4 @@


#### ver1.1.1 (2016/8/11)
修复vscode1.4下不能使用的问题。
修复vscode1.4下不能使用的问题。
2 changes: 1 addition & 1 deletion assets/config.json
@@ -1,3 +1,3 @@
{
"firstload": true
}
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -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",
Expand All @@ -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"
],
Expand Down
17 changes: 9 additions & 8 deletions src/getCss.ts
Expand Up @@ -3,7 +3,7 @@ import version from './version';

/**
* 通过配置获取样式文本
*
*
* @param {object} options 用户配置
* @param {boolean} useFront 是否前景图
* @returns {string}
Expand All @@ -25,13 +25,13 @@ function getStyleByOptions(options: object, useFront: boolean) {

/**
* 生成css样式
*
*
* @export
* @param {Array<string>} arr 图片数组
* @param {any} [style={}] 自定义样式
* @param {Array<any>} [styles=[]] 每个背景图的自定义样式
* @param {boolean} [useFront=true] 是否用前景图
* @returns
* @returns
*/
export default function (arr: Array<string>, style = {}, styles = [], useFront = true) {
let [img0, img1, img2] = (arr && arr.length) ?
Expand All @@ -50,16 +50,17 @@ export default function (arr: Array<string>, 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*/
`;
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
@@ -1 +1 @@
export default '1.1.17';
export default '1.1.19';
Binary file added vscode-background-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 37d9682

Please sign in to comment.