Comments (11)
It's insane that the colors for various attributes in Rstudio are still not user configurable. The themes are awful.
from textmate-solarized.
Yes - I would like to second this request. I use RStudio, which uses the Ace editor, which in turn pulls its themes from textmate, which pulls the solarized theme from here. I've found that the text highlight color in Solarized Dark is barely visible, especially when you're trying to find which text is highlight in a window full of colored code.Would there be any chance of changing the Solarized Dark highlight color to be more visible?
from textmate-solarized.
Wow, I had no idea that it was being used in other editors.
I think it's the lineHighlight https://github.com/deplorableword/textmate-solarized/blob/master/Solarized%20(dark).tmTheme#L35 which needs adjusting.
Feel free to pick a new colour from the pallet http://ethanschoonover.com/solarized and submit a pull request :)
from textmate-solarized.
I believe lineHighlight
is used for highlighting the line the cursor is on, and base02 appears correct for this.
The question is which color to use for highlighting selected text. selection
in the dark theme is also set to base02, which is giving the hard to see highlighting of selected text.
The problem is that there doesn't seem to be a consensus on how to highlight selected text in Solarized. The official repository contains a number of different choices:
- Gedit uses base02 on base0
- Qt Creator uses base02 on base01
- Vim uses base03 on base01
- Visual Studio uses base00 on base2
The Sublime Text version uses the inverse color, i.e. the light background color is used to highlight selected text in the dark theme. This has the advantage of letting other syntax highlighting work, but the disadvantage of being unpleasantly high contrast (see braver/Solarized#29).
Ideally, @altercation would chime in so we knew what the intended combination was for this (I don't know if we can assume the Vim theme by him serves as a reference implementation).
from textmate-solarized.
I did use the Vim theme as a reference, but over time TM specific tweaks
have been added. I'm not sure there is 100% right answer, but we should
pick colours provides good contrast in a range of situations and languages.
On Saturday, 12 July 2014, Jørgen Ibsen [email protected] wrote:
I believe lineHighlight is used for highlighting the line the cursor is
on, and base02 appears correct for this.The question is which color to use for highlighting selected text.
selection in the dark theme is also set to base02, which is giving the
hard to see highlighting of selected text.The problem is that there doesn't seem to be a consensus on how to
highlight selected text in Solarized. The official repository contains a
number of different choices:
- Gedit uses base02 on base0
- Qt Creator uses base02 on base01
- Vim uses base03 on base01
- Visual Studio uses base00 on base2
The Sublime Text version uses the inverse color, i.e. the light
background color is used to highlight selected text in the dark theme. This
has the advantage of letting other syntax highlighting work, but the
disadvantage of being unpleasantly high contrast (see
braver/Solarized#29
braver/Solarized#29).Ideally, @altercation https://github.com/altercation would chime in so
we knew what the intended combination was for this (I don't know if we can
assume the Vim theme by him serves as a reference implementation).—
Reply to this email directly or view it on GitHub
#52 (comment)
.
Tom Martin
twitter.com/deplorableword
devart.org
from textmate-solarized.
Looking over TextMate themes, I wonder if it is only possible to set the background color of the highlight (the selection
key in settings
), and not the foreground color?
The problem is that the three colors between the text and background color (base00, base01, base02) are too close to either the background or the text color -- either the selection is hard to see, or the selected text is hard to read (and in the case of base01, comments are invisible).
If you use a color from the other end of the range (base2, base3) the selection is easy to see, but the contrast between the selected text and the normal background is (to me at least) unpleasantly high. Also, in the case of base2, the normal text color is not that easy to read. Here is an example using base2:
In Sublime Text, it is possible to set the foreground color of selected text as well as the background (there is a selectionForeground
key). This is what the sample looks like in Sublime Text, with the selection set to be base03 on base00:
It's readable, still easy to spot what is selected, but you have to live without syntax highlighting inside the selection when you set the foreground color as well.
Perhaps the TextMate developers would be willing to add support for selectionForeground
?
from textmate-solarized.
I contacted TextMate support about this issue, and from their answer I gather that due to the way text is rendered, it is not trivial to implement selectionForeground
, and it is not something they are likely to work on unless there is demand for it.
So if you are interested in it, I would suggest letting them know.
from textmate-solarized.
Thanks for following this up, jibsen. I'll let them know I'm interested in it. Do you think that selectionForeground is really the best (and perhaps only) solution for the problem?
from textmate-solarized.
Thanks.
It is certainly not the only solution. For instance you could add a selectionBorder
that lets you choose the color of a border drawn around the highlighted background color to make it easier to see. Sublime Text has this option as well, it looks like this
It has some problems of its own though, for instance when you select a word, other occurrences of that words are highlighted, and you can extend your selection with the next occurrence using Ctrl-D. If I select the word format in line 3 of the example, and press Ctrl-D once to select the next occurrence, I get this
as you can see, it's hard to tell which of the borders contain selected words and which do not. Contrast this with the same using the selectionBackground
solution
I don't know if this problem is also present in TextMate.
Another option would be to find a color outside the Solarized palette and use that for selection background. But it is not easy to find a color that fits with the rest of them and on which all syntax highlighting is easy to read.
I think it is individual preference what works best. To me it is important to be able to clearly spot selected text, so I like the selectionBackground
method.
from textmate-solarized.
I agree about the selectionBackground. In the program I use - RStudio - they have a bright blue selection when you select text with your mouse:
Not especially pretty, but you can definitely see it!
I'm not a designer, and don't have an especially good eye for these things. I wouldn't mind something that doesn't entirely fit, but that you definitely see, as I think selections are relatively rare events and won't end up stressing your eyes much. But again, that's just me. I suppose better to find something that fits and is visible, but if it's a choice between the former and the latter, I guess I'd choose the latter.
Really what I'd choose is for something better to be implemented in TextMate. I'm not sure what they're open to.
from textmate-solarized.
My guess based on analogy to light theme: the color of highlight and outline in the dark theme should be the background color of the solarized light theme.
Would be great if someone fixed that...
from textmate-solarized.
Related Issues (20)
- Difference in colour codes from Solarized standard list HOT 2
- Markdown HOT 6
- can not be use with textmate 2 HOT 2
- TextMate 2 and base text color HOT 11
- Looking for contributors / maintainers HOT 9
- Possible wrong colors for html in Sublime text 2 HOT 3
- Background color for dark theme are significantly lighter than Solarized screenshots HOT 7
- Figure out how to skin the gutter correctly HOT 7
- CSS looks messy HOT 7
- Please fix selection color in Solarized light HOT 7
- Use variables for color definitions HOT 1
- Can’t get current line to highlight bg HOT 3
- C function names in dark theme should not be base01
- Dimming of highlighted text when out of focus (solarized dark) HOT 1
- don't highlight word starting with `function`
- Duplicate elements
- (orignal theme compatibility patch) Do not color arithmetical operators HOT 4
- Invisible selection color in diffs
- Find All: clicking on a search result doesn't always bring it within current window. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textmate-solarized.