illixion / vscode-vibrancy-continued

Enable Acrylic/Glass effect for your VS Code.
MIT License
577 stars 32 forks source link
vscode-extension vscode-theme

Visual Studio Code Extension - Vibrancy Continued

For questions about troubleshooting, installing or uninstalling Vibrancy Continued, please check the FAQs.

❗️ Windows 10/11 users: scroll down to see an important warning regarding Windows support

Enable Acrylic/Glass effect in VS Code.

screenshot

   

 

Links: GitHub | Visual Studio Code Marketplace | issues

❗️ Important notice for Windows 10/11 users

tl;dr YOU WON'T BE ABLE TO RESIZE THE VSCODE WINDOW unless you downgrade VSCode to 1.85.2

VSCode 1.86 and newer has known issues on Windows 10/11 due to breaking changes in Electron 27. Your VSCode windows may stop being resizable, snappable or maximizable if Vibrancy is applied on Windows, and you must also use "custom" for window.titleBarStyle setting. Some users have reported that AltSnap may be able to solve this issue.

If this is undesired, please downgrade to VSCode 1.85.2, which can be downloaded using this URL: https://update.code.visualstudio.com/1.85.2/win32-x64-user/stable

For more information, see issues #140 and #122.

⚠️ "Your VSCode installation appears to be corrupt"

This extension works by editing VS Code's checksum-verified HTML files, which means that a warning prompt will appear after installing and enabling Vibrancy Continued. This warning is safe to disregard, and all changes can be reverted. Click on the cogwheel and select Don't Show Again to hide it.

screenshot screenshot

To fix the "[Unsupported]" warning on VS Code's title bar, please refer to this extension: Fix VSCode Checksums.

Supported Operating Systems

Warning: Windows on ARM is currently unsupported, see #9 for more details

✔ Windows 11 (up to 1.85.x)

✔ Windows 10 (up to 1.85.x)

✔ macOS

Getting Started

  1. Make sure the VSCode theme you've selected is 'Dark+' or one of the supported themes

step-1

  1. Install the extension from Visual Studio Code Marketplace.

  2. Press F1 and activate command "Reload Vibrancy."

step-3

  1. Restart VSCode when prompted.

Each time VS Code is updated, please re-enable Vibrancy using the same steps. If you're experiencing issues, please check the FAQs.

Options

vscode_vibrancy.type

Native method of Vibrancy Effect.

vscode_vibrancy.opacity

Opacity of Vibrancy Effect. -1 is theme default, 0 is maximum transparency, and 1 will remove all transparency.

value: -1.0 ~ 1.0

vscode_vibrancy.imports

Import custom CSS/JS files into VSCode, as file paths. The files will be imported in the order they are listed.

EXAMPLE: C:/Users/MyUserName/Documents/custom.css

value: array[]

vscode_vibrancy.preventFlash

Use a new method for preventing window flashing during resizing. Eliminates the need for a refresh interval, but may be less compatible in some cases.

boolean, default is true

vscode_vibrancy.refreshInterval

Refresh interval (in milliseconds) for making the background transparent after window resizing. Lower values make the update less visible at the cost of increased CPU utilization. Ignored when using "Prevent Flash" method.

value: 1 ~ 1000, default is 10

vscode_vibrancy.enableAutoTheme

Enable automatic dark/light mode switching based on OS mode. Requires window.autoDetectColorScheme VSCode setting to also be enabled. boolean, default is false

vscode_vibrancy.preferedDarkTheme / vscode_vibrancy.preferedLightTheme

Select which themes to use for light and dark modes, they will be used instead of the main Vibrancy theme selected.

vscode_vibrancy.theme

Select Vibrancy theme:

Theme Screenshot
Default Dark
Dark (Only Subbar)
Noir et blanc
Tokyo Night Storm
Tokyo Night Storm (Only Subbar)
Solarized Dark+ (with theme: Solarized)
Catpuccin Mocha
GitHub Dark Default

You can contribute more themes! see here.

FAQs

How to uninstall Vibrancy?

Press F1 or ⌘+Shift+P and activate command "Disable Vibrancy", then restart Visual Studio Code.

Just removing the extension without performing this step doesn't run the necessary cleanup code.

Effect doesn't work for terminal?

Check your settings. You should change the renderer type of the terminal to dom.

"terminal.integrated.gpuAcceleration": "off"

Prompt "Run Visual Studio Code with administrator privileges"?

It usually appears on Windows when you are using the VSCode System Installer. You should close VSCode completely, then run VSCode as administrator and retry what you did before (Enable/Reload/Disable Vibrancy).

EROFS: read-only file system when enabling Vibrancy on macOS

Your installation of VSCode is affected by App Translocation. To fix this, either use the Finder and move VSCode to /Applications (or move it out of /Applications and then back in), or run the following terminal command:

sudo xattr -dr com.apple.quarantine "/Applications/Visual Studio Code.app"

I'm on Windows 10 and I'm experiencing lag when dragging the window

Please read here for details.

VSCode window cannot be resized/moved/maximized after enabling Vibrancy

Please see Important notice for Windows users at the top of the description.

Effect doesn't work, but there are no errors

Ensure that you don't have transparency effects disabled globally through your OS settings. This can usually be found under Accessibility settings, and it may be called "Transparency effects" or "Reduce transparency." If that didn't help, you can also check the Console section in VSCode's Developer Tools, which can be accessed through the command palette.

If nothing else worked, try reinstalling VSCode, you won't lose any settings and this will ensure that your VSCode installation is consistent.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Vibrancy relies on user contributions, and as such, any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

When creating a PR, please target the development branch.

License

Distributed under the MIT License. See LICENSE.txt for more information.

Thanks ⭐

EYHN : for making the original Vibrancy that this is a fork of

be5invis/vscode-custom-css : The basis of this extension program

DIYgod : Fix issues with VSCode 1.36