• Stars
    star
    473
  • Rank 92,832 (Top 2 %)
  • Language
    CSS
  • Created almost 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

How to make your Atom editor transparent

How To Achieve Atom Editor Transparency

In atom, there is no easy config (yet) to set window or background transparency as you would in iTerm or TextMate. Here's a straightforward guide on how to achieve transparent window awesomeness.

This has been tested on both macOS and Ubuntu 14.04 desktop, for Atom versions 1.0 up through 1.11.

Atom must be built from source with 2 additional lines of code. This makes Atom run as a frameless window which allows transparency to be enabled within Electron. After cloning or forking Atom, add the following to options:

frame: false
transparent: true

in src/browser/atom-window.coffee (pre-v1.9) or src/main-process/atom-window.coffee in versions 1.9+,

changing this:

options =
  show: false
  title: 'Atom'
  backgroundColor: "#fff"
  ...

to this:

options =
  frame: false
  transparent: true
  show: false
  title: 'Atom'
  #backgroundColor: "#fff"
  ...

Note backgroundColor is commented out.

Then run:

./script/clean && ./script/build

Refer to the official build guides for additional instructions if necessary. You may want to build a debian package, for example.

This can take awhile, but once complete, fire up Atom.

On linux, add an additional --enable-transparent-visuals flag while starting atom.

In Atom v1.7+, atom must be started with an additional --disable-gpu flag. Otherwise, there will be a lot of UI flickering.

Open up your editor LESS stylesheet (⌘-shift-p or ctrl-shift-p, then Application: Open Your Stylesheet), and add the following CSS. This is a basic guide - you can experiment with your own settings to get the effect you want. For example, to avoid text-on-text collisions in the autocomplete popups, I set atom-overlay > * to near-complete opacity.

html, html * {
  background: rgba(0, 0, 0, 0) !important;
}

atom-pane, atom-panel, atom-notification {
  background: rgba(0, 0, 0, 0.5) !important;
}

atom-overlay > * {
  background: rgba(0, 0, 0, 0.9) !important;
}

atom-text-editor::shadow {
  .cursor-line {
    background-color: rgba(0, 0, 0, 0.2) !important;
  }
  .selection .region {
    background-color: rgba(0, 0, 0, 0.2) !important;
  }
  .gutter {
    background-color: rgba(0, 0, 0, 0) !important;
  }
}

In the CSS above, this works pre-v1.9:

html * {
  background: rgba(0, 0, 0, 0) !important;
}

but for v1.9+, this must be:

html, html * {
  background: rgba(0, 0, 0, 0) !important;
}

That's it--pretty simple!

More Repositories

1

keras-js

Run Keras models in the browser, with GPU support using WebGL
JavaScript
4,954
star
2

jupyter-themer

Apply custom CSS styling to your jupyter notebooks
Python
328
star
3

statusboard

Host status checker complete with a front-end dashboard and slack notifications
Go
125
star
4

inception-resnet-v2

Implementation of Google's Inception + ResNet v2 architecture in Keras
Jupyter Notebook
32
star
5

hypercube

A simple hypercube/tesseract animation in ln/cairo (Go) and three.js (JavaScript)
Go
22
star
6

stochastic-depth

Implementation of Stochastic Depth Networks in Keras
Jupyter Notebook
13
star
7

keras-js-demos-data

Keras.js demos data
10
star
8

tf-keras-cuda-docker

Docker image for Tensorflow and Keras with CUDA support
10
star
9

wide-resnet

Implementation of Wide Residual Networks in Keras
Jupyter Notebook
10
star
10

inception-v4

Implementation of Google's Inception v4 architecture in Keras
Jupyter Notebook
8
star
11

trove-dev

JavaScript
3
star
12

kaggle-ultrasound-nerve-segmentation

My code and scripts for the Kaggle ultrasound nerve segmentation challenge
Jupyter Notebook
3
star
13

kaggle-dsb2

My code and scripts for the Kaggle 2nd Annual Data Science Bowl
Jupyter Notebook
2
star
14

diseasegraph

Disease graph explorer - visualize relationships between diseases within the biomedical literature.
JavaScript
2
star
15

keras-js-docs

Keras.js documentation
2
star
16

cortical-stim

Real-time brain oscillation detection and phase-locked stimulation using autoregressive spectral estimation and time-series forward prediction
MATLAB
2
star
17

tricorder

A terminal-based system monitoring application written in Go
Go
1
star
18

radsquared

Radiology knowledge search engine based on NLP and semantic inference.
Python
1
star
19

levelgraph-n3-import

CLI tool for importing n3 files into a levelgraph db
JavaScript
1
star