Commit Graph

50 Commits

Author SHA1 Message Date
Lifepillar
96dd598b40 Update MatchParen in light themes.
In order to address

    https://github.com/lifepillar/vim-solarized8/issues/14

and further concerns in

    https://github.com/lifepillar/vim-solarized8/issues/15

in the previous commit and in this one I have updated Cursor and
MatchParen highlighting, respectively.

The current colors are based on the following considerations:

1. The Solarized palette has only two "whites": the ligther is used in
   all variants but "low", which uses the darker.

2. Matching parentheses should be distinguishable even if bold face is
   disabled.

3. The cursor and matching parentheses should be easily distinguishable
   even when 'cursorline' is on. Before the recent commits this was not
   the case.

4. MatchParen's background may be set to NONE in the "low" and "flat"
   variants, because CursorLine uses underline. It should be set to
   something different in the other two variants, otherwise it may
   become impossible to see a matching character.

5. MatchParen's foreground color shouldn't be red if MatchParen's background
   color is not set to something different from the normal background.
   This is because several syntax files use red to highlight parentheses
   by default. If bold fonts are not used, matching parentheses may be
   not be visible at all.

6. I don't like red on grey (see MatchParen in original Solarized) or
   red next to grey.

So, these are the choices I've made:

- In the normal and high contrast variant the cursor is now orange and
  MatchParen's background is grey (with white foreground, see 6 above).
  This achieves the twofold goal of being able to see a matching
  parenthesis when 'cursorline' is on and being able to clearly
  distinguish the cursor from the matching parenthesis. Orange is
  preferred to red because of 6 (with two consecutive parentheses
  you have a grey block and an orange block next to each other).

- In the flat and low contrast variant the cursor is grey, exactly as in
  the original Solarized. This choice is made because such variants
  should have less contrast in general, and because 'cursorline' poses
  no problem as it does not change the text background.

- The flat variant uses the colors that were used previously for all the
  variants. Even without boldface, the matching parenthesis can be seen
  because it has a slightly darker background (see 1).

- The low contrast variant uses the darker white for the normal
  background, so MatchParen has a transparent background and a nearly
  black foreground. This does not particularly stand out without
  boldface, but hey, it's low contrast.
2017-05-25 15:29:00 +02:00
Lifepillar
3030e9da41 Make cursor color red or grey in light themes.
This is the first of a couple of commits whose goal is to fix issues
with Cursor and MatchParen highlights. In particular, we strive to find
combinations that are pleasant and permit to distinguish matched
parentheses easily. More about this in the next commit.
2017-05-25 12:27:56 +02:00
Lifepillar
41ed17307e Make MatchParen more visible in light themes with cursorline on.
In light themes, when cursorline is on and bold fonts are not used,
MatchParen highlighting is not visible. This commit solves the problem
by setting the foreground color to red, as in the original Solarized.

Fixes https://github.com/lifepillar/vim-solarized8/issues/15.
2017-05-25 10:26:15 +02:00
Lifepillar
dc6c1dfa6f Update MatchParen in light themes.
Problem: MatchParen highlighting in light themes inverts colors of
bracket, makes it look like cursor has jumped to matching bracket.

Solution: keep the parenthesis's foreground color when highlighted, and
make the background slightly darker instead of grey.

Fixes https://github.com/lifepillar/vim-solarized8/issues/11.
2017-04-09 19:04:21 +02:00
Lifepillar
fde07f5deb Replace Author with Maintainer.
This sounds more appropriate, as I it recognizes that I am not the
author of the color palette, nor did I write most of the code.
2017-03-04 15:23:04 +01:00
Drew Neil
c942be4f11 Use s:placeholder to keep track of lost color in _high schemes 2017-02-24 08:39:16 +00:00
Drew Neil
b9ade1ad0f Compile colorschemes 2017-02-24 08:39:16 +00:00
Drew Neil
9c32652c25 Add TermCursor and TermCursorNC highlights if :terminal exists 2017-02-16 08:03:27 +00:00
Lifepillar
769661a1fa Add 'bold' value for g:solarized_diffmode. 2016-12-11 20:14:00 +01:00
Lifepillar
c801e4e553 Fix vimdiff colors being mostly grey in some terminals.
Fixes https://github.com/lifepillar/vim-solarized8/issues/6.
2016-12-11 20:05:47 +01:00
Lifepillar
c800f37a02 Update Cursor highlight group. 2016-12-08 19:38:58 +01:00
Lifepillar
ee311b07e0 Se background before hi clear.
See $VIMRUNTIME/colors/README.txt.
2016-12-08 19:06:18 +01:00
Lifepillar
00efd839c0 Make more things transparent when the background is transparent. 2016-12-08 18:51:58 +01:00
Lifepillar
e8216a6a33 Update TabLineSel for solarized8_dark. 2016-12-08 13:03:45 +01:00
Lifepillar
2b880d9162 Style the tab line the same as the status line. 2016-12-08 12:56:36 +01:00
Lifepillar
903883a4c2 (Re)add support for transparent bg in terminals. 2016-09-06 11:02:49 +02:00
Lifepillar
72c6acc08b Remove background from line numbers in flat variant. 2016-09-06 10:59:22 +02:00
Lifepillar
995563ab86 Use magenta for SpellBad in dark color schemes. 2016-05-23 23:36:39 +02:00
Lifepillar
450ffa64b7 Make StatusLine bold when set to low and flat. 2016-05-22 22:25:12 +02:00
Lifepillar
cbf34d99b0 Fix inconsistencies between statusline and tabline.
Now, when g:solarized_statusline is low, TabLineSel looks like
StatusLine.
2016-05-22 21:52:27 +02:00
Lifepillar
8cd492b350 Update status line colors for low variant. 2016-05-22 17:26:53 +02:00
Lifepillar
f119b492c9 Revert "Update status line colors for low status line."
This reverts commit a18c263128.

Dark text in light background doesn't fit well with my bicolor status line.
2016-05-22 17:08:20 +02:00
Lifepillar
6f001e62bf Update WildMenu for high contrast color scheme. 2016-05-22 16:30:14 +02:00
Lifepillar
a18c263128 Update status line colors for low status line.
Make it easier to distinguish between the active and inactive status
lines.
2016-05-22 16:09:47 +02:00
Lifepillar
098aaaa5bd Restore original colors for the status line.
For all schemes other than the flat one, when g:solarized_contrast is
not low, use the same colors as the original Solarized for the status
line, with the exception of the dark high-contrast scheme, where the
colors of StatusLine have been darkened a bit to make them compatible
with WildMenu.
2016-05-22 13:03:59 +02:00
Lifepillar
30e361d958 Use orange for high visibility in dark schemes.
Use orange instead of red in dark backgrounds because it is easier on
the eyes (my eyes).
2016-05-22 09:44:08 +02:00
Lifepillar
6a6db34789 Fix indentation. 2016-05-21 23:40:11 +02:00
Lifepillar
0077950320 Update Title color.
Use yellow with dark background, orange with light background. When visibility is set to low, use the same shade of gray as TabLineSel’s background.
2016-05-21 23:12:10 +02:00
Lifepillar
1d6038f9f5 Update PmenuSel and WildMenu in dark flat variant.
Fix WildMenu impossible to distinguish when g:solarized_statusline is
*not* low. Update PmenuSel to match.
2016-05-21 20:09:36 +02:00
Lifepillar
4163d8e6c5 Change Title in dark themes to yellow.
It looks better than orange, especially in the tabline.
2016-05-21 19:47:01 +02:00
Lifepillar
1a84708f39 Use orange instead of red for WarningMsg.
I do not like red on dark background. Orange is slightly better.
2016-05-21 19:29:07 +02:00
Lifepillar
8719839f6a Do not use reverse in TabLineSel.
Do not use reverse in TabLineSel, because it reverses Title, too (used
to highlight the number of windows in the current tab), which looks
ugly.
2016-05-21 19:27:41 +02:00
Lifepillar
67bbe9ac29 Flatten tabline in flat variant.
Use same highlighting as in StatusLine/StatusLineNC.
2016-05-21 19:11:22 +02:00
Lifepillar
da34766220 Update TabLine* highlight groups. 2016-05-21 18:24:08 +02:00
Lifepillar
21d39005ec Set WildMenu in flat variant the same as PmenuSel. 2016-05-21 18:15:16 +02:00
Lifepillar
27f6beb400 Adjust colors for pop-up menu in flat variant.
Break the symmetry between dark and light, because that looks better.
2016-05-21 18:11:54 +02:00
Lifepillar
9338536ab2 Flatten pop-up menu in flat variant. 2016-05-21 16:31:03 +02:00
Lifepillar
d920798d98 Change status line foreground for high contrast.
For some reason, using ctermbg=7 causes the ^^^ symbols to appear in the
status line when the high contrast variant is active. That happens both
in terminal and in MacVim. Setting the foreground to 15 fixes the
problem (that is high contrast anyway).
2016-05-21 14:50:55 +02:00
Lifepillar
3ef08ffbdf Add support for italics in terminal.
Set g:solarized_term_italics = 1 for terminals that support italics.
2016-05-21 14:07:05 +02:00
Lifepillar
40424f1bb8 Update statusline colors for flat variants. 2016-05-16 20:16:39 +02:00
Lifepillar
023c934ef5 Set {cterm,gui}=NONE for TabLine and TabLineFill. 2016-05-16 10:39:46 +02:00
Lifepillar
d3a144837c Add flat variant. 2016-05-16 10:33:51 +02:00
Lifepillar
03815c38f2 Add solarized8_dark_low and solarized8_light_low. 2016-05-16 10:26:14 +02:00
Lifepillar
c99589f01b Add solarized8_dark_high and solarized8_light_high. 2016-05-16 10:22:59 +02:00
Lifepillar
813ef604d3 Add solarized8_dark and solarized8_light. 2016-05-16 10:15:39 +02:00
Lifepillar
bcba0ae34e Move solarized8.vim into src directory. 2016-05-16 10:11:37 +02:00
Lifepillar
5a0d5acf38 Modify script to output colorscheme in a buffer. 2016-05-16 10:01:54 +02:00
Lifepillar
82c9e6b662 Remove useless highlight group definition.
This is useless because hsModuleStartLabel is redefined a few lines
below.
2016-05-15 22:57:36 +02:00
Lifepillar
1a153ab348 Fix missing CursorLineNr.
The original Solarized theme does not define it.
2016-05-15 22:43:45 +02:00
Lifepillar
916b9b0302 Initial import.
The content of this file is adapted from the original Solarized theme.
The color palette is exactly the same, but I have removed some cruft and
made some adjustments here and there (see the comments) to better suit
my taste. For example, I can't stand dark text on a red background, so
I have changed ErrorMsg to use a white foreground even in dark mode.
I have not removed *all* the bullshit Solarized source, as the
[Flattened](https://github.com/romainl/flattened.git) theme does,
because I like the possibility of using different contrast levels
(besides Solarized's low, normal, and high contrast modes, I have even
added my own). Although this file may be used as it is, I plan to use it
to generate eight "presets", four with a dark background and four with
a light background, one for each contrast level. Then, I'll keep this in
a development branch, but I plan to remove it from master.

I have started this project because recent Vim versions support true
color terminals, i.e., they use gui color definitions. The original
Solarized does not define guifg and guibg when used by terminal Vim.
This project works in true color terminals out of the box (tested with
iTerm), besides working in GUI Vim (of course), and in terminals using
Solarized 16-color palette. The degraded 256-color version of Solarized
has been removed, because it is ugly and useless (for me). It's called
Solarized8 because true color support will make its way into the
upcoming Vim 8 release.

I have added an option to set the background color of the active status
line to the same color as the inactive status line
(g:solarized_statusline). Besides, I have added a few highlight groups:

NormalMode
InsertMode
VisualMode
CommandMode
ReplaceMode

I need these changes for my own status line (whose color changes
according to the current mode). Other users may safely ignore them.
2016-05-15 19:41:36 +02:00