Replies: 3 comments 5 replies
-
Vibrancy just activates Electron's default transparency feature, which uses Windows Acrylic, and that has been updated to be brighter and more translucent in 11. I've seen people use MicaForEveryone to tweak the look of Vibrancy on Windows, but I haven't tried it, so I don't know how well it works. There are also some Electron window properties that may be able to increase transparency, will need to test them at some point, the code that adds those can be found here. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much!! This was very helpful. Im going to see if I can add this myself as an experiment. However, I need just some help to make this work. Hopefully, most of the code is already done correctly below. I made comments in the places I've added/change code. Unfortunately, even though I change the settings, they don't actually make any noticeable changes. I was able to expose many of these settings in the extensions's settings (see below code changes and respective screenshots). My goal is to at least be able to change Blur from . "vscode_vibrancy.frame": {
"description": "Enable or disable frame.",
"type": "boolean",
"default": true
},
"vscode_vibrancy.transparent": {
"description": "Enable or disable transparency.",
"type": "boolean",
"default": true
},
"vscode_vibrancy.backgroundMaterial": {
"description": "Set the window's system-drawn background material.",
"type": "string",
"default": "auto",
"enum": ["auto", "none", "mica", "acrylic", "tabbed"]
} extension/index.js // Add readSettings function here
function readSettings() {
const config = vscode.workspace.getConfiguration("vscode_vibrancy");
const frame = config.get("frame");
const transparent = config.get("transparent");
const backgroundMaterial = config.get("backgroundMaterial"); // Add this line
return { frame, transparent, backgroundMaterial }; // Update this line
} runtime/methods/interval.js /**js
* @type {{
* os: string,
* config: {
* type: "auto" | "acrylic" | "appearance-based" | "light" | "dark" | "titlebar" | "selection" | "menu" | "popover" | "sidebar" | "medium-light" | "ultra-dark",
* opacity: number,
* theme: "Default Dark" | "Dark (Only Subbar)" | "Default Light" | "Light (Only Subbar)" | "Tokyo Night Storm" | "Tokyo Night Storm (Outer)" | "Noir et blanc" | "Dark (Exclude Tab Line)" | "Solarized Dark+",
* imports: string[],
* refreshInterval: number,
* preventFlash: boolean,
* backgroundMaterial: string // Add this line
* },
* themeCSS: string,
* theme: any,
* imports: {
* css: string,
* js: string
* }
* }}
*/
const app = global.vscode_vibrancy_plugin;
let backgroundColorTimer;
module.exports = (window) => ({
install() {
clearInterval(backgroundColorTimer);
backgroundColorTimer = setInterval(() => {
window.setBackgroundColor('#00000000');
window.setBackgroundMaterial(app.config.backgroundMaterial); // Add this line
}, app.config.refreshInterval);
},
uninstall() {
clearInterval(backgroundColorTimer);
}
}); native/vibrancy.cc |
Beta Was this translation helpful? Give feedback.
-
Hi @illixion have you had a chance to take a look at this? I think I have pretty much ALL the code complete. However, it looks like I have something missing. I am hoping I could convince you to take a look at the code I posted. You are welcome to include these new features in Thank you in advance for your help! |
Beta Was this translation helpful? Give feedback.
-
I noticed that even when opacity is set to
0
the opacity on Windows 11 PCs looks significantly more than Windows 10. Is there anyway around that?Beta Was this translation helpful? Give feedback.
All reactions