gileli121 / GlassCode

This plugin allows you to make JetBrains IDEs to be fully transparent while keeping the code sharp and bright.
GNU General Public License v3.0
35 stars 10 forks source link
opacity theme transparency

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: https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690 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: https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690

NVIDIA GPU algorithm (works much faster!): https://github.com/gileli121/GlassCode/blob/1c89a644bae2b2c51f274b3ad1aee07fb0d36ae8/CPP/process_layer_gpu.cu#L433

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:

Medium blur:

High blur:

High Contrast mode enabled:

High Contrast mode disabled:

Settings Page

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

In the following settings page you have the following options:

Supported IDEs

Supported Operating Systems

Notes