question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StickerService.js Visual Studio Code Additions.

See original GitHub issue

First of all, I’m sorry for doing this as an issue, but by making the project construct itself from ten different places means I have no idea where or even how I should make this as a pull request. At least it is a VScode thing, so it’s the correct repo.


Anyway, I’ve been tuning the StrickerService.js wallpaper installation script to make more stuff transparent/wallpapered, and here are my changes to it. I kept them separated so it would be easier to handle, but any class with “background-image: url(‘${wallpaperURL}’) !important;” are identical to the one already in the CSS.

Makes the welcome screen transparent welcomescreen

.editor-container {
	background-image: url('${wallpaperURL}') !important;
	/* blah */
}

.editor-instance,
.welcomePageContainer,
.welcomePage,
.welcomePageFocusElement {
	background-color: transparent !important;
}

Fix “wallpaper” being drawn over “background”, mostly only important if they differ from each other.

split-view-view

/* Remove from the CSS that gives it a background */
	.split-view-view {
		background-color: transparent !important; /* Just in case. */
	}

“OUTPUT” panel is not transparent.

.monaco-workbench .part.panel > .content .monaco-editor .monaco-editor-background {
	background-image: url('${wallpaperURL}') !important;
	/* blah */
}

Left margin of the TERMINAL window

div.terminal-outer-container  {
	background-image: url('${wallpaperURL}') !important;
	/* blah */
}

DEBUG CONSOLE and warning/error popups image

div.monaco-scrollable-element > div.monaco-list-rows{
	background-image: url('${wallpaperURL}') !important;
	/* blah */
}

So in full, line 33 onwards looks like this:

[id="workbench.parts.editor"] .split-view-view .editor-container .editor-instance>.monaco-editor  .overflow-guard>.monaco-scrollable-element::before,
.overflow-guard, 
.tab, 
.tabs-container,
.monaco-pane-view,
.composite.title, 
.content, 
.monaco-select-box, 
.pane-header, 
.xterm-cursor-layer,
.minimap-decorations-layer,
.decorationsOverviewRuler,
.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-breadcrumbs .breadcrumbs-control,
.ref-tree, /* find usages */
.head, /* find usages */
.monaco-workbench .part.editor>.content .editor-group-container>.title .editor-actions,  
/* .split-view-view, */
.editor-container,
.monaco-workbench .part.panel > .content .monaco-editor .monaco-editor-background,
div.monaco-scrollable-element > div.monaco-list-rows,
div.terminal-outer-container  
{
	background-image: url('${wallpaperURL}') !important;
	background-position: ${backgroundAnchoring} !important;
	background-attachment: fixed !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

/* transparencies */
.editor-instance,
.welcomePageContainer,
.welcomePage,
.welcomePageFocusElement, 
{
	background-color: transparent !important;
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnEdwacommented, Apr 11, 2021

It breaks the illusion that the image is behind a transparent pane of glass.

There is always backdrop-filter: blur(1px): (though I think the image is like, 5 to 10px)

image

Annoyingly it also requires the background colour in RGBA to work properly as it needs to be set partly opaque: background-color: rgba(37, 37, 38, 0.2) !important;

1reaction
JohnEdwacommented, Apr 11, 2021

Ah, didn’t notice that issue. Honestly the popups were an accident as I was trying to do the debug box, and noticed afterwards that it also changed those. I’ll see if I can find some other way for those, and do a proper pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Extensions in Visual Studio Code
Learn more about installing and integrating JavaScript and Node.js extensions in the Visual Studio Code editor.
Read more >
25 Extensions That Turn Visual Studio Code Into An ... - P42
25 Extensions That Turn Visual Studio Code Into An Outstanding JavaScript IDE · Code Completion and Snippets · Linting, Spell Checking, and Hints....
Read more >
15 Best Visual Studio Code Extensions for Web Developers
JavaScript (ES6) Code Snippets; Settings Sync; Git Lens; Web Dev. Let's talk about them! Live Sass compiler. This VS Code extension is used...
Read more >
Live Server Extension in Visual Studio Code - YouTube
The Live Server extension makes creating websites in Visual Studio Code much easier. It launches a local development server with live reload ...
Read more >
10 Best VS Code extensions for JavaScript | Towards the Cloud
A vanilla code editor like Visual Studio Code (VS Code) gets you far in ... This VS Code extension adds a whole bunch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found