6 changed files with 383 additions and 0 deletions
@ -0,0 +1,59 @@
|
||||
# Solarized for Gedit |
||||
|
||||
## Precision colors for machines and people - **Now with more Gedit!** |
||||
|
||||
--- |
||||
|
||||
### Solarized |
||||
|
||||
Solarized was created by [Ethan Schoonover][ES] and you can find out more |
||||
about the design work that went into it on his [project page][ES-solarized]. If |
||||
you would like to use Solarized in editors other than Gedit or on your terminal, |
||||
Ethan hosts the [main repository][SolarizedRepo] which combines all the available |
||||
ports in one place. |
||||
|
||||
### Solarized for Gedit |
||||
|
||||
Solarized was initially ported for Gedit by [Matthew Cantelon][MC] and can be |
||||
found at <http://github.com/mattcan/solarized-gedit>. |
||||
|
||||
### Screenshots |
||||
|
||||
![Light theme][LightImg] |
||||
![Dark theme][DarkImg] |
||||
|
||||
### Installation |
||||
|
||||
You can download the files in one of two ways: |
||||
|
||||
* using `git clone git://github.com/mattcan/solarized-gedit.git` |
||||
* using the **Download** button to get the ZIP file and extracting the files to |
||||
a folder |
||||
|
||||
Once the files are on your PC, copy `solarized-light.xml` and `solarized-dark.xml` |
||||
to one of these folders: |
||||
|
||||
* if you are the only user on your computer |
||||
|
||||
cp solarized-* ~/.local/share/gedit/styles |
||||
|
||||
* if you want everyone on your PC to be able to use the styles (_path |
||||
below is for Ubuntu_) |
||||
|
||||
sudo cp solarized-* /usr/share/gtksourceview-3.0/styles |
||||
|
||||
You can also use the built installer (_has only been tested with Ubuntu 12.10_) |
||||
|
||||
### Roadmap |
||||
|
||||
There are a few things that still need to be worked out... |
||||
|
||||
1. Clean up the **c:** specific style definitions |
||||
1. Add support for further custom style definitions |
||||
|
||||
[ES]: http://ethanschoonover.com |
||||
[ES-Solarized]: http://ethanschoonover.com/solarized |
||||
[SolarizedRepo]: https://github.com/altercation/solarized |
||||
[MC]: http://matthewcantelon.ca |
||||
[LightImg]: https://github.com/mattcan/solarized-gedit/raw/master/img/solarized_light.png |
||||
[DarkImg]: https://github.com/mattcan/solarized-gedit/raw/master/img/solarized_dark.png |
||||
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 60 KiB |
@ -0,0 +1,62 @@
|
||||
#!/bin/bash |
||||
|
||||
# shows usage instructions |
||||
usage() |
||||
{ |
||||
cat << EOF |
||||
usage: $0 [options] |
||||
|
||||
This script installs the Solarized styles for gedit. |
||||
|
||||
OPTIONS: |
||||
-h Shows this message |
||||
-a Install for all users |
||||
-l Install only for you |
||||
EOF |
||||
} |
||||
|
||||
chkdir() |
||||
{ |
||||
if [ ! -d "$INSTALLPATH" ]; then |
||||
if [ "$NEEDSUDO" == true ]; then |
||||
sudo mkdir -p "$INSTALLPATH" |
||||
else |
||||
mkdir -p "$INSTALLPATH" |
||||
fi |
||||
fi |
||||
} |
||||
|
||||
# path to install to |
||||
INSTALLPATH=$HOME/.local/share/gedit/styles |
||||
# will need to use sudo to install for all users |
||||
NEEDSUDO=false |
||||
|
||||
# loop through passed arguments |
||||
while getopts "hal" OPTION |
||||
do |
||||
case $OPTION in |
||||
h) |
||||
usage |
||||
exit 1 |
||||
;; |
||||
a) |
||||
INSTALLPATH=/usr/share/gtksourceview-3.0/styles |
||||
NEEDSUDO=false |
||||
;; |
||||
l) |
||||
INSTALLPATH=$HOME/.local/share/gedit/styles |
||||
;; |
||||
?) |
||||
INSTALLPATH=$HOME/.local/share/gedit/styles |
||||
;; |
||||
esac |
||||
done |
||||
|
||||
# install for all users when sudo set to true |
||||
if [ "$NEEDSUDO" == true ]; then |
||||
chkdir |
||||
sudo cp solarized-*.xml "$INSTALLPATH" |
||||
else |
||||
chkdir |
||||
cp solarized-*.xml "$INSTALLPATH" |
||||
fi |
||||
@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!-- |
||||
|
||||
This theme is based on the Solarized theme originally created |
||||
by Ethan Schoonover at http://ethanschoonover.com/solarized |
||||
|
||||
Copyright (C) 2012 Matthew Cantelon |
||||
Author: Matthew Cantelon <me@matthewcantelon.ca> |
||||
|
||||
GtkSourceView is free software; you can redistribute it and/or |
||||
modify it under the terms of the GNU Lesser General Public |
||||
License as published by the Free Software Foundation; either |
||||
version 2.1 of the License, or (at your option) any later version. |
||||
|
||||
GtkSourceView is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
Lesser General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU Lesser General Public |
||||
License along with this library; if not, write to the Free Software |
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
||||
|
||||
--> |
||||
|
||||
<style-scheme id="solarizeddark" _name="Solarized Dark" version="1.0"> |
||||
|
||||
<author>Matthew Cantelon</author> |
||||
<_description>Port of the Dark Solarized theme by Ethan Schoonover.</_description> |
||||
|
||||
<!-- Solarized Palette --> |
||||
<color name="base03" value="#002b36"/> |
||||
<color name="base02" value="#073642"/> |
||||
<color name="base01" value="#586e75"/> |
||||
<color name="base00" value="#657b83"/> |
||||
<color name="base0" value="#839496"/> |
||||
<color name="base1" value="#93a1a1"/> |
||||
<color name="base2" value="#eee8d5"/> |
||||
<color name="base3" value="#fdf6e3"/> |
||||
<color name="yellow" value="#b58900"/> |
||||
<color name="orange" value="#cb4b16"/> |
||||
<color name="red" value="#dc322f"/> |
||||
<color name="magenta" value="#d33682"/> |
||||
<color name="violet" value="#6c71c4"/> |
||||
<color name="blue" value="#268bd2"/> |
||||
<color name="cyan" value="#2aa198"/> |
||||
<color name="green" value="#859900"/> |
||||
|
||||
<!-- Global Settings --> |
||||
<style name="text" foreground="base0" background="base03"/> |
||||
<style name="selection" foreground="base03" background="base0"/> |
||||
<style name="cursor" foreground="base0"/> |
||||
<style name="current-line" background="base02"/> |
||||
<style name="line-numbers" foreground="base1" background="base02"/> |
||||
<style name="draw-spaces" foreground="base1"/> |
||||
|
||||
<!-- Bracket Matching --> |
||||
<style name="bracket-match" foreground="red" bold="true"/> |
||||
<style name="bracket-mismatch" foreground="red" background="base3" bold="true"/> |
||||
|
||||
<!-- Comments --> |
||||
<style name="def:comment" foreground="base01" italic="true"/> |
||||
<style name="def:shebang" foreground="base01" italic="true" bold="true"/> |
||||
<style name="def:doc-comment-element" italic="true"/> |
||||
|
||||
<!-- Right Margin --> |
||||
<style name="right-margin" foreground="base1" background="base02"/> |
||||
|
||||
<!-- Search Matching --> |
||||
<style name="search-match" foreground="yellow"/> |
||||
|
||||
<!-- Constants --> |
||||
<style name="def:constant" foreground="cyan"/> |
||||
<style name="def:decimal" foreground="magenta"/> |
||||
<style name="def:base-n-integer" use-style="def:decimal"/> |
||||
<style name="def:floating-point" use-style="def:decimal"/> |
||||
<style name="def:complex" use-style="def:base-n-integer"/> |
||||
<style name="def:character" foreground="magenta"/> |
||||
<style name="def:string" use-style="def:constant"/> |
||||
<style name="def:special-char" foreground="red"/> |
||||
<style name="def:builtin" foreground="yellow"/> |
||||
<style name="def:keyword" foreground="green" bold="true"/> |
||||
<style name="def:variable" foreground="blue"/> |
||||
<style name="def:boolean" foreground="red"/> |
||||
<style name="def:special-constant" foreground="blue"/> |
||||
|
||||
<!-- Identifiers --> |
||||
<style name="def:identifier" foreground="blue"/> |
||||
<style name="def:function" use-style="def:identifier"/> |
||||
|
||||
<!-- Statements --> |
||||
<style name="def:statement" use-style="def:keyword"/> |
||||
|
||||
<!-- Types --> |
||||
<style name="def:type" foreground="yellow"/> |
||||
|
||||
<!-- Others --> |
||||
<style name="def:preprocessor" foreground="orange"/> |
||||
<style name="def:error" foreground="red" bold="true"/> |
||||
<style name="def:note" background="base02" foreground="magenta" bold="true"/> |
||||
<style name="def:underlined" foreground="violet"/> |
||||
|
||||
<!-- Language specific styles --> |
||||
<style name="c:preprocessor" use-style="def:preprocessor"/> |
||||
<style name="c:included-file" use-style="c:preprocessor"/> |
||||
<style name="c:common-defines" foreground="#0095FF" bold="true"/> |
||||
|
||||
<style name="diff:diff-file" foreground="blue" underline="true"/> |
||||
<style name="diff:added-line" foreground="base03" background="green"/> |
||||
<style name="diff:removed-line" foreground="base03" background="red"/> |
||||
<style name="diff:changed-line" foreground="base03" background="yellow"/> |
||||
<style name="diff:location" use-style="def:type"/> |
||||
|
||||
<style name="xml:attribute-name" foreground="green"/> |
||||
<style name="xml:element-name" bold="true"/> |
||||
<style name="xml:entity" foreground="blue"/> |
||||
<style name="xml:cdata-delim" foreground="orange" bold="true"/> |
||||
<style name="xml:processing-instruction" bold="true"/> |
||||
<style name="xml:doctype" foreground="magenta" bold="true"/> |
||||
|
||||
<style name="python:string-conversion" background="base2"/> |
||||
<style name="python:module-handler" use-style="def:character"/> |
||||
<style name="python:special-variable" use-style="def:type"/> |
||||
<style name="python:builtin-constant" use-style="def:builtin"/> |
||||
<style name="python:builtin-object" use-style="def:type"/> |
||||
<style name="python:builtin-function" use-style="def:identifier"/> |
||||
<style name="python:boolean" use-style="def:boolean"/> |
||||
|
||||
<style name="sh:dollar" foreground="green" bold="true"/> |
||||
|
||||
</style-scheme> |
||||
@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!-- |
||||
|
||||
This theme is based on the Solarized theme originally created |
||||
by Ethan Schoonover at http://ethanschoonover.com/solarized |
||||
|
||||
Copyright (C) 2012 Matthew Cantelon |
||||
Author: Matthew Cantelon <me@matthewcantelon.ca> |
||||
|
||||
GtkSourceView is free software; you can redistribute it and/or |
||||
modify it under the terms of the GNU Lesser General Public |
||||
License as published by the Free Software Foundation; either |
||||
version 2.1 of the License, or (at your option) any later version. |
||||
|
||||
GtkSourceView is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
Lesser General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU Lesser General Public |
||||
License along with this library; if not, write to the Free Software |
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
||||
|
||||
--> |
||||
|
||||
<style-scheme id="solarizedlight" _name="Solarized Light" version="1.0"> |
||||
|
||||
<author>Matthew Cantelon</author> |
||||
<_description>Port of the Dark Solarized theme by Ethan Schoonover.</_description> |
||||
|
||||
<!-- Solarized Palette --> |
||||
<color name="base03" value="#002b36"/> |
||||
<color name="base02" value="#073642"/> |
||||
<color name="base01" value="#586e75"/> |
||||
<color name="base00" value="#657b83"/> |
||||
<color name="base0" value="#839496"/> |
||||
<color name="base1" value="#93a1a1"/> |
||||
<color name="base2" value="#eee8d5"/> |
||||
<color name="base3" value="#fdf6e3"/> |
||||
<color name="yellow" value="#b58900"/> |
||||
<color name="orange" value="#cb4b16"/> |
||||
<color name="red" value="#dc322f"/> |
||||
<color name="magenta" value="#d33682"/> |
||||
<color name="violet" value="#6c71c4"/> |
||||
<color name="blue" value="#268bd2"/> |
||||
<color name="cyan" value="#2aa198"/> |
||||
<color name="green" value="#859900"/> |
||||
|
||||
<!-- Global Settings --> |
||||
<style name="text" foreground="base00" background="base3"/> |
||||
<style name="selection" foreground="base1" background="base02"/> |
||||
<style name="cursor" foreground="base00"/> |
||||
<style name="current-line" background="base2"/> |
||||
<style name="line-numbers" foreground="base0" background="base2"/> |
||||
<style name="draw-spaces" foreground="base1"/> |
||||
|
||||
<!-- Bracket Matching --> |
||||
<style name="bracket-match" foreground="red" bold="true"/> |
||||
<style name="bracket-mismatch" foreground="red" background="base3" bold="true"/> |
||||
|
||||
<!-- Comments --> |
||||
<style name="def:comment" foreground="base01" italic="true"/> |
||||
<style name="def:shebang" foreground="base01" italic="true" bold="true"/> |
||||
<style name="def:doc-comment-element" italic="true"/> |
||||
|
||||
<!-- Right Margin --> |
||||
<style name="right-margin" foreground="base0" background="base02"/> |
||||
|
||||
<!-- Search Matching --> |
||||
<style name="search-match" foreground="yellow"/> |
||||
|
||||
<!-- Constants --> |
||||
<style name="def:constant" foreground="cyan"/> |
||||
<style name="def:decimal" foreground="magenta"/> |
||||
<style name="def:base-n-integer" use-style="def:decimal"/> |
||||
<style name="def:floating-point" use-style="def:decimal"/> |
||||
<style name="def:complex" use-style="def:base-n-integer"/> |
||||
<style name="def:character" foreground="magenta"/> |
||||
<style name="def:string" use-style="def:constant"/> |
||||
<style name="def:special-char" foreground="red"/> |
||||
<style name="def:builtin" foreground="yellow"/> |
||||
<style name="def:keyword" foreground="green" bold="true"/> |
||||
<style name="def:variable" foreground="blue"/> |
||||
<style name="def:boolean" foreground="red"/> |
||||
<style name="def:special-constant" foreground="blue"/> |
||||
|
||||
<!-- Identifiers --> |
||||
<style name="def:identifier" foreground="blue"/> |
||||
<style name="def:function" use-style="def:identifier"/> |
||||
|
||||
<!-- Statements --> |
||||
<style name="def:statement" use-style="def:keyword"/> |
||||
|
||||
<!-- Types --> |
||||
<style name="def:type" foreground="yellow"/> |
||||
|
||||
<!-- Others --> |
||||
<style name="def:preprocessor" foreground="orange"/> |
||||
<style name="def:error" foreground="red" bold="true"/> |
||||
<style name="def:note" background="base02" foreground="magenta" bold="true"/> |
||||
<style name="def:underlined" foreground="violet"/> |
||||
|
||||
<!-- Language specific styles --> |
||||
<style name="c:preprocessor" use-style="def:preprocessor"/> |
||||
<style name="c:included-file" use-style="c:preprocessor"/> |
||||
<style name="c:common-defines" foreground="#0095FF" bold="true"/> |
||||
|
||||
<style name="diff:diff-file" foreground="blue" underline="true"/> |
||||
<style name="diff:added-line" foreground="base03" background="green"/> |
||||
<style name="diff:removed-line" foreground="base03" background="red"/> |
||||
<style name="diff:changed-line" foreground="base03" background="yellow"/> |
||||
<style name="diff:location" use-style="def:type"/> |
||||
|
||||
<style name="xml:attribute-name" foreground="green"/> |
||||
<style name="xml:element-name" bold="true"/> |
||||
<style name="xml:entity" foreground="blue"/> |
||||
<style name="xml:cdata-delim" foreground="orange" bold="true"/> |
||||
<style name="xml:processing-instruction" bold="true"/> |
||||
<style name="xml:doctype" foreground="magenta" bold="true"/> |
||||
|
||||
<style name="python:string-conversion" background="base2"/> |
||||
<style name="python:module-handler" use-style="def:character"/> |
||||
<style name="python:special-variable" use-style="def:type"/> |
||||
<style name="python:builtin-constant" use-style="def:builtin"/> |
||||
<style name="python:builtin-object" use-style="def:type"/> |
||||
<style name="python:builtin-function" use-style="def:identifier"/> |
||||
<style name="python:boolean" use-style="def:boolean"/> |
||||
|
||||
<style name="sh:dollar" foreground="green" bold="true"/> |
||||
|
||||
</style-scheme> |
||||
Loading…
Reference in new issue