Skip to content

This plugin allows you to make JetBrains IDEs to be fully transparent while keeping the code sharp and bright.

License

Notifications You must be signed in to change notification settings

gileli121/GlassCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GlassCode

This plugin allows you to make your IDE to be fully transparent while keeping the code sharp and bright.

See for example how it can be used for editing websites: https://www.youtube.com/watch?v=mbVLot2m6FU

Introduction

Adjust the opacity level while keeping the text sharp and bright

Using GlassCode plugin with combination of LiveEdit (WebStorm IDE)

Using GlassCode in Java (IntelliJ IDE)

Using GlassCode with blur effect set to high

Getting started

  1. Download GlassCode plugin
  2. Install it in your IDE
  3. It is recommended to use the high contrast theme for the best result or at lest any dark theme. My suggestion is to enable the high contrast theme

Super important!

To get high performance, go to: File->Settings And make sure you enabled "Enable GPU Acceleration (For NVIDIA CUDA Enabled GPUs only)" image This option will work only for NVIDIA GPUs

Otherwise, you may have to reduce the screen resolution to maximum 1920x1080 because the effect may not work fast enough without GPU Acceleration.

If you think that you can optimize the performance for CPU (without GPU Acceleration), feel free to design a better algorithm here:

void map_shapes(double background)
Replace this function with your faster algorithm and submit PR. The function is responsible for detecting the texts(or any shapes...) so that when the opacity applied, the opacity will not include the texts.

The result will look like this image That the texts/shapes have no opacity at all but everything around it have opacity.

The magic was done here:

CPU algorithm:

void map_shapes(double background)

NVIDIA GPU algorithm (works much faster!):

bool map_shapes()

How to use

Currently, the only way to use this plugin is to click on the GlassCode tab here:

After that, the following menu will open:

Click on the Enable checkbox to enable the effect.

In this menu, the following options available:

  • Opacity - This is the opacity of the background only. The image processing algorithm is smart to not apply the opacity to the texts or anything that is not background
  • Amount of brightness behind the window - This will reduce or decrease the light that you can see behind the window. This effect give similar result like when the opacity is high value and the theme is dark. In general it is suggested to set this filter to 70% and the opacity to 30%-60% (it depends on what you like)
  • Type of blur behind the window - This effect have 3 options: None, Medium and High.

When it set to `None`, there is no blur effect at all. For `Medium` and `High` it looks as following:

Medium blur:

High blur:

  • Use "High Contrast" theme when enabled (Recommended) - The transparency algorithm works best when the number of colors in the theme is minimum. The algorithm will detect much better texts, borders, and backgrounds in such cases. Here is an example that compares the difference between when it is enabled and when it is not:

High Contrast mode enabled:

High Contrast mode disabled:

  • Enable on startup - If this option is enabled, the transparency effect will be enabled on startup when the IDE open the project

Settings Page

The settings page is available under File -> Settings Appearance & Behavior

In the following settings page you have the following options:

  • Enable GPU Acceleration (For NVIDIA CUDA Enabled GPUs Only) - If this option is enabled, the transparency algorithm will use the GPU processing power to render the transparency effect. This option is very likely to improve a lot the number of frames per second (FPS).

    NOTE: If in the computer there is no NVIDIA GPU with CUDA support, this option will be ignored

Supported IDEs

  • IntelliJ (for Java)
  • WebStorm (for Web & HTML)
  • Phpstorm (for PHP)
  • Rider (for C#)
  • PyCharm (for Python)
  • Other JetBrains IDEs (Not tested)

Supported Operating Systems

  • Windows 10 64bit from version 2004 (20H1) and above

Notes

  • Currently this plugin is supported only in Windows 10 v2004 and above
  • It is highly recommended to use the "High contrast" theme when using the glass effect. The transparency

About

This plugin allows you to make JetBrains IDEs to be fully transparent while keeping the code sharp and bright.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published