thirdparty/color-theme-solarized/solarized-definitions.el
changeset 48 f17ebf233431
parent 47 3415a60d5fd0
child 49 942fe8d1a653
equal deleted inserted replaced
47:3415a60d5fd0 48:f17ebf233431
    26   :type 'boolean
    26   :type 'boolean
    27   :group 'solarized)
    27   :group 'solarized)
    28 
    28 
    29 (defcustom solarized-termcolors 16
    29 (defcustom solarized-termcolors 16
    30   "This setting applies to emacs in terminal (non-GUI) mode.
    30   "This setting applies to emacs in terminal (non-GUI) mode.
    31 If set to 16, emacs will use the terminal emulator's colorscheme (best option as
    31 If set to 16, emacs will use the terminal emulator's colorscheme (best option
    32 long as you've set your emulator's colors to the Solarized palette). If set to
    32 as long as you've set your emulator's colors to the Solarized palette). If
    33 256 and your terminal is capable of displaying 256 colors, emacs will use the
    33 set to 256 and your terminal is capable of displaying 256 colors, emacs will
    34 256 degraded color mode."
    34 use the 256 degraded color mode."
    35   :type 'integer
    35   :type 'integer
    36   :options '(16 256)
    36   :options '(16 256)
    37   :group 'solarized)
    37   :group 'solarized)
    38 
    38 
    39 (defcustom solarized-contrast 'normal
    39 (defcustom solarized-contrast 'normal
    40   "Stick with normal! It's been carefully tested. Setting this option to high or
    40   "Stick with normal! It's been carefully tested. Setting this option to high or
    41 low does use the same Solarized palette but simply shifts some values up or down
    41 low does use the same Solarized palette but simply shifts some values up or
    42 in order to expand or compress the tonal range displayed."
    42 down in order to expand or compress the tonal range displayed."
    43   :type 'symbol
    43   :type 'symbol
    44   :options '(high normal low)
    44   :options '(high normal low)
    45   :group 'solarized)
    45   :group 'solarized)
    46 
    46 
    47 (defcustom solarized-broken-srgb (if (eq system-type 'darwin) t nil)
    47 (defcustom solarized-broken-srgb (if (eq system-type 'darwin) t nil)
    48   "Emacs bug #8402 results in incorrect color handling on Macs. If this is t
    48   "Emacs bug #8402 results in incorrect color handling on Macs. If this is t
    49 (the default on Macs), Solarized works around it with alternative colors.
    49 (the default on Macs), Solarized works around it with alternative colors.
    50 However, these colors are not totally portable, so you may be able to edit the
    50 However, these colors are not totally portable, so you may be able to edit
    51 \"Gen RGB\" column in solarized-definitions.el to improve them further."
    51 the \"Gen RGB\" column in solarized-definitions.el to improve them further."
    52   :type 'boolean
    52   :type 'boolean
    53   :group 'solarized)
    53   :group 'solarized)
    54 
    54 
    55 ;; FIXME: The Generic RGB colors will actually vary from device to device, but
    55 ;; FIXME: The Generic RGB colors will actually vary from device to device, but
    56 ;;        hopefully these are closer to the intended colors than the sRGB values
    56 ;;        hopefully these are closer to the intended colors than the sRGB values
    57 ;;        that Emacs seems to dislike
    57 ;;        that Emacs seems to dislike
    58 (defvar solarized-colors
    58 (defvar solarized-colors
    59   ;; name    sRGB      Gen RGB   degraded  ANSI(Solarized terminal)
    59   ;; name    sRGB      Gen RGB   degraded  ANSI(Solarized terminal)
    60   '((base03  "#002b36" "#042028" "#1c1c1c" "#7f7f7f")
    60   '((base03  "#002b36" "#042028" "#1c1c1c" "#7f7f7f")
    61     (base02  "#073642" "#0a2832" "#262626" "#000000")
    61     (base02  "#073642" "#0a2832" "#262626" "#000000")
    62     (base01  "#586e75" "#465a61" "#4e4e4e" "#00ff00")
    62     (base01  "#586e75" "#465a61" "#585858" "#00ff00")
    63     (base00  "#657b83" "#52676f" "#585858" "#ffff00")
    63     (base00  "#657b83" "#52676f" "#626262" "#ffff00")
    64     (base0   "#839496" "#708183" "#808080" "#5c5cff")
    64     (base0   "#839496" "#708183" "#808080" "#5c5cff")
    65     (base1   "#93a1a1" "#81908f" "#8a8a8a" "#00ffff")
    65     (base1   "#93a1a1" "#81908f" "#8a8a8a" "#00ffff")
    66     (base2   "#eee8d5" "#e9e2cb" "#d7d7af" "#e5e5e5")
    66     (base2   "#eee8d5" "#e9e2cb" "#e4e4e4" "#e5e5e5")
    67     (base3   "#fdf6e3" "#fcf4dc" "#ffffd7" "#ffffff")
    67     (base3   "#fdf6e3" "#fcf4dc" "#ffffd7" "#ffffff")
    68     (yellow  "#b58900" "#a57705" "#af8700" "#cdcd00")
    68     (yellow  "#b58900" "#a57705" "#af8700" "#cdcd00")
    69     (orange  "#cb4b16" "#bd3612" "#d75f00" "#ff0000")
    69     (orange  "#cb4b16" "#bd3612" "#d75f00" "#ff0000")
    70     (red     "#dc322f" "#c60007" "#af0000" "#cd0000")
    70     (red     "#dc322f" "#c60007" "#d70000" "#cd0000")
    71     (magenta "#d33682" "#c61b6e" "#af005f" "#cd00cd")
    71     (magenta "#d33682" "#c61b6e" "#af005f" "#cd00cd")
    72     (violet  "#6c71c4" "#5859b7" "#5f5faf" "#ff00ff")
    72     (violet  "#6c71c4" "#5859b7" "#5f5faf" "#ff00ff")
    73     (blue    "#268bd2" "#2075c7" "#0087ff" "#0000ee")
    73     (blue    "#268bd2" "#2075c7" "#0087ff" "#0000ee")
    74     (cyan    "#2aa198" "#259185" "#00afaf" "#00cdcd")
    74     (cyan    "#2aa198" "#259185" "#00afaf" "#00cdcd")
    75     (green   "#859900" "#728a05" "#5f8700" "#00cd00"))
    75     (green   "#859900" "#728a05" "#5f8700" "#00cd00"))
   150            ;; comint
   150            ;; comint
   151            (comint-highlight-prompt ((t (:foreground ,blue))))
   151            (comint-highlight-prompt ((t (:foreground ,blue))))
   152            ;; compilation
   152            ;; compilation
   153            (compilation-info ((t (:foreground ,green :weight ,bold))))
   153            (compilation-info ((t (:foreground ,green :weight ,bold))))
   154            (compilation-warning ((t (:foreground ,orange :weight ,bold))))
   154            (compilation-warning ((t (:foreground ,orange :weight ,bold))))
   155            ;; customize
   155            ;; custom
   156            (custom-button
   156            (custom-button
   157             ((t (:background ,base02
   157             ((t (:foreground ,base1 :background ,base02
   158                              :box (:line-width 2 :style released-button)))))
   158                  :box (:line-width 2 :style released-button)))))
   159            (custom-button-mouse
   159            (custom-button-mouse
   160             ((t (:inherit custom-button :foreground ,base1))))
   160             ((t (:foreground ,base1 :background ,base02 :inverse-video t
       
   161                  :inherit custom-button))))
   161            (custom-button-pressed
   162            (custom-button-pressed
   162             ((t (:inherit custom-button-mouse
   163             ((t (:foreground ,base1 :background ,base02 :inverse-video t
   163                           :box (:line-width 2 :style pressed-button)))))
   164                  :box (:line-width 2 :style pressed-button)
   164            (custom-comment-tag ((t (:background ,base02))))
   165                  :inherit custom-button-mouse))))
   165            (custom-comment-tag ((t (:background ,base02))))
   166            (custom-changed ((t (:foreground ,blue :background ,base3
       
   167                                 :inverse-video t))))
       
   168            (custom-comment ((t (:foreground ,base1 :background ,base02))))
       
   169            (custom-comment-tag ((t (:foreground ,base1 :background ,base02))))
   166            (custom-documentation ((t (:inherit default))))
   170            (custom-documentation ((t (:inherit default))))
   167            (custom-group-tag ((t (:foreground ,orange :weight ,bold))))
   171            (custom-group-tag ((t (:foreground ,base1))))
       
   172            (custom-group-tag-1 ((t (:foreground ,base1 :weight ,bold))))
       
   173            (custom-invalid
       
   174             ((t (:foreground ,red :background ,back :inverse-video t))))
   168            (custom-link ((t (:foreground ,violet))))
   175            (custom-link ((t (:foreground ,violet))))
   169            (custom-state ((t (:foreground ,green))))
   176            (custom-state ((t (:foreground ,green))))
   170            (custom-variable-tag ((t (:foreground ,orange :weight ,bold))))
   177            (custom-variable-tag ((t (:foreground ,base1))))
   171            ;; diff
   178            ;; diff
   172            (diff-added ((t (:foreground ,green :inverse-video t))))
   179            (diff-added ((t (:foreground ,green :inverse-video t))))
   173            (diff-changed ((t (:foreground ,yellow :inverse-video t))))
   180            (diff-changed ((t (:foreground ,yellow :inverse-video t))))
   174            (diff-removed ((t (:foreground ,red :inverse-video t))))
   181            (diff-removed ((t (:foreground ,red :inverse-video t))))
   175            (diff-header ((t (:background ,base01))))
   182            (diff-header ((t (:background ,base01))))
   186            (emacs-wiki-link-face
   193            (emacs-wiki-link-face
   187             ((t (:foreground ,blue :underline ,underline))))
   194             ((t (:foreground ,blue :underline ,underline))))
   188            (emacs-wiki-verbatim-face
   195            (emacs-wiki-verbatim-face
   189             ((t (:foreground ,base00 :underline ,underline))))
   196             ((t (:foreground ,base00 :underline ,underline))))
   190            ;; eshell
   197            ;; eshell
       
   198            (eshell-ls-archive ((t (:foreground ,magenta))))
       
   199            (eshell-ls-backup ((t (:foreground ,yellow))))
       
   200            (eshell-ls-clutter ((t (:foreground ,orange))))
       
   201            (eshell-ls-directory ((t (:foreground ,blue))))
       
   202            (eshell-ls-executable ((t (:foreground ,green))))
       
   203            (eshell-ls-missing ((t (:foreground ,red))))
       
   204            (eshell-ls-product ((t (:foreground ,yellow))))
       
   205            (eshell-ls-readonly ((t (:foreground ,base1))))
       
   206            (eshell-ls-special ((t (:foreground ,violet))))
       
   207            (eshell-ls-symlink ((t (:foreground ,cyan))))
       
   208            (eshell-ls-unreadable ((t (:foreground ,base00))))
   191            (eshell-prompt ((t (:foreground ,green :weight ,bold))))
   209            (eshell-prompt ((t (:foreground ,green :weight ,bold))))
   192            ;; font-lock
   210            ;; font-lock
   193            (font-lock-builtin-face ((t (:foreground ,green))))
   211            (font-lock-builtin-face ((t (:foreground ,green))))
   194            (font-lock-comment-face ((t (:foreground ,base01 :slant ,italic))))
   212            (font-lock-comment-face ((t (:foreground ,base01 :slant ,italic))))
   195            (font-lock-constant-face ((t (:foreground ,cyan))))
   213            (font-lock-constant-face ((t (:foreground ,cyan))))
   238            (show-paren-match-face ((t (:background ,cyan :foreground ,base3))))
   256            (show-paren-match-face ((t (:background ,cyan :foreground ,base3))))
   239            (show-paren-mismatch-face
   257            (show-paren-mismatch-face
   240             ((t (:background ,red :foreground ,base3))))
   258             ((t (:background ,red :foreground ,base3))))
   241            ;; widgets
   259            ;; widgets
   242            (widget-field
   260            (widget-field
   243             ((t (:box (:line-width 1 :color ,base00) :inherit default))))
   261             ((t (:box (:line-width 1 :color ,base2) :foreground ,base1 :background ,base02 :inherit default))))
   244            (widget-single-line-field ((t (:inherit widget-field))))
   262            (widget-single-line-field ((t (:inherit widget-field))))
   245            ;; extra modules
   263            ;; extra modules
   246            ;; -------------
   264            ;; -------------
   247            ;; gnus
   265            ;; gnus
   248            (gnus-cite-1 ((t (:foreground ,magenta))))
   266            (gnus-cite-1 ((t (:foreground ,magenta))))