Skip to content

Commit

Permalink
Update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardbm committed Feb 12, 2023
1 parent e9c2e73 commit df08d36
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 51 deletions.
64 changes: 15 additions & 49 deletions INSTALL_EDITORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Installation in Vim and Neovim:

Atomic colorscheme for Vim and Neovim has its own repository, so it allows the installation through a plugins manager (vim-plug, pathogen, vundle, neobundle).
Atomic color scheme for Vim and Neovim has its own repository ([vim-atomic](https://github.com/gerardbm/vim-atomic)), so it allows the installation through a plugins manager (vim-plug, pathogen, vundle, neobundle).

Using vim-plug:

Expand All @@ -18,34 +18,32 @@ Manually copy the file `atomic.vim` contained into the `vim` directory of this r

1. Set the colorscheme in your Vim/Neovim configuration file: `colorscheme atomic`.
2. If you are in a GUI for Vim (as gvim), you have commands to switch between modes:
- (1) `AtomicDarkBlueSoft`: sets the dark blue mode (default).
- (2) `AtomicDarkBlueHard`: extra, +5% contrast.
- (3) `AtomicDarkCyanSoft`: sets the dark cyan mode.
- (4) `AtomicDarkCyanHard`: extra, +5% contrast.
- (5) `AtomicNightOrangeSoft`: sets the night orange mode.
- (6) `AtomicNightOrangeHard`: extra, +5% contrast.
- (7) `AtomicNightRedSoft`: sets the night red mode.
- (8) `AtomicNightRedHard`: extra, +5% contrast.
- (9) `AtomicLightSoft`: sets the light mode.
- (10) `AtomicLightHard`: extra, +5% contrast.
- (1) `AtomicSpaceHC`: sets the space mode (blue hue, dark background) in hard contrast (+4%).
- (2) `AtomicSpaceMC`: sets the space mode (blue hue, dark background) in medium contrast (default).
- (3) `AtomicSpaceLC`: sets the space mode (blue hue, dark background) in hard contrast (-4%).
- (4) `AtomicNightHC`: sets the night mode (orange hue, dark background) in hard contrast (+4%).
- (5) `AtomicNightMC`: sets the night mode (orange hue, dark background) in medium contrast (default).
- (6) `AtomicNightLC`: sets the night mode (orange hue, dark background) in hard contrast (-4%).
- (7) `AtomicLightHC`: sets the light mode (orange hue, light background) in hard contrast (+4%).
- (8) `AtomicLightMC`: sets the light mode (orange hue, light background) in medium contrast (default).
- (9) `AtomicLightLC`: sets the light mode (orange hue, light background) in hard contrast (-4%).

Or switch them depending on the current time. In your `.gvimrc`:

```viml
function! AtomicSwitcher()
if (strftime("%H") > 8) && (strftime("%H") < 20)
AtomicLightSoft
if (strftime('%H') > 8) && (strftime('%H') < 20)
AtomicSpaceHC
else
AtomicNightRedHard
AtomicNightHC
endif
endfunction
```

Even cycle them (from 1 to 10) with a shortcut. Paste this in your `.gvimrc`:
Even cycle them (from 1 to 9) with a shortcut. Paste this in your `.gvimrc`:

```viml
nnoremap <F9> :call CycleModes()<CR>:colorscheme atomic<CR>
vnoremap <F9> :<C-u>call CycleModes()<CR>:colorscheme atomic<CR>gv
```

### Vim-airline
Expand All @@ -58,44 +56,12 @@ Installation in Vim-airline:
4. Add the following settings to your `.vimrc`.

```viml
" Use 'atomic' by default
let g:airline_theme='atomic'
" Enable it if you use the Powerline fonts
let g:airline_powerline_fonts = 1
" Enable the tabline at the top
let g:airline#extensions#tabline#enabled = 1
" It disables the bold text in vim modes
call airline#parts#define_accent('mode', 'black')
```

For better contrast, install the plugin [vim-atomic](https://github.com/gerardbm/vim-atomic) and set by default the atomic colorscheme. If it's not installed, it will use the colors of your current colorscheme. If it's installed, vim-airline-atomic will be adapted to the current atomic mode (Dark, Night, Light) automatically.
For better contrast, install the plugin [vim-atomic](https://github.com/gerardbm/vim-atomic) and set by default the atomic colorscheme. If it's not installed, it will use the colors of your current colorscheme. If it's installed, vim-airline-atomic will be adapted to the current atomic mode (`Space`, `Night`, `Light`) automatically.

Make sure you have the Powerline fonts installed.

## Sublime Text

Atomic colorscheme for Sublime Text has its own repository, so it allows the installation through Package Control.

1. Make sure you already have Package Control installed.
2. Choose `Install Package` from the Command Palette (`Ctrl+Shift+P` on Windows/Linux, `⇧⌘P` on OS X).
3. Select Atomic in the menu: `Preferences` > `Atomic` > `Atomic`.

More info at: [https://github.com/gerardbm/Sublime-Atomic-Scheme](https://github.com/gerardbm/Sublime-Atomic-Scheme)

With `auto_upgrade` enabled, Package Control will keep all installed packages up-to-date!

## NetBeans

Installation in NetBeans:

1. Download the Atomic repository, unpack the downloaded file (`atomic-master.zip`) and then manually create a new zip file containing the folder `config`. In bash:
```bash
zip -r atomic.zip config
```
2. Open your NetBeans: `Tools` > `Options` > `Import...` > `Browse...`. Navigate to the zip file you created in the previous step. Make sure the option `Fonts & Colors` is checked and press `Ok` button.
3. Restart your NetBeans.
4. To switch between color schemes, in the `Options` panel go to the `Fonts & Colors` tab and choose a profile (in our case, 'Atomic').

**Known Issues**

If you are [still] using Windows XP, do not use the archive program built-in to create the zip file (step 1). It does not support file paths longer than a certain length. Use a third party archiver like 7zip, which is free.
2 changes: 1 addition & 1 deletion INSTALL_TERM.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Installation for **URxvt** and **XTerm** (include extra modes with +4% contrast)
2. Load the resource file with the command: `xrdb ~/.Xresources`.
3. Restart the terminal.

You will find more information on the `.Xresources` file in the [Arch Linux wiki](https://wiki.archlinux.org/index.php/X_resources).
You will find more information on the file `.Xresources` in the [Arch Linux wiki](https://wiki.archlinux.org/index.php/X_resources).
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Atomic is a dark color scheme designed to use with terminals. This repository pr

The color palette consists of **sixteen precision colors** selected procedurally (algorithms), distributed in six hues and four perceived lightness, according to the color space **HSLuv**_an alternative to HSL designed for perceptual uniformity based on human experiments_».

Don't confuse the perceived brightness with the lightness of the HSL color model. Human vision doesn't detect brightness linearly with color: in a pixel (R'G'B') we see red color (#FF0000) darker than green color (#00FF00), and green color (#00FF00) brighter than red (#FF0000) and blue (#0000FF) colors.
Don't confuse the perceived brightness with the lightness of the HSL color model. Human vision doesn't detect brightness linearly with color: in a pixel (R'G'B') we see red color (`#FF0000`) darker than green color (`#00FF00`), and green color (`#00FF00`) brighter than red (`#FF0000`) and blue (`#0000FF`) colors.

So the perceived lightness has been balanced according to the ITU-R Recommendation BT.709:

Expand Down

0 comments on commit df08d36

Please sign in to comment.