-
Notifications
You must be signed in to change notification settings - Fork 0
/
borland-blue-theme.el
175 lines (160 loc) · 8.94 KB
/
borland-blue-theme.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
;;; borland-blue-theme.el --- Blue/yellow theme based on old DOS Borland/Turbo C IDE
;; Copyright (C) 2015 Alexey Veretennikov
;; Author: Alexey Veretennikov <alexey dot veretennikov at gmail dot com>
;; Keywords: themes
;; URL: https://github.com/fourier/borland-blue-theme
;; Version: 0.1
;; Package-Requires: ((emacs "24.1"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program 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 General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; To use it, put the following in your Emacs configuration file:
;;
;; (load-theme 'borland-blue t)
;;
;; Requirements: Emacs 24.
;;; Code:
(deftheme borland-blue
"This theme resembles the Borland/Turbe C IDE with the general idea as golden letters on a blue background.")
(custom-theme-set-faces
'borland-blue
'(default ((t (:family "default"
:foundry "default"
:underline nil
:overline nil
:strike-through nil
:box nil
:inverse-video nil
:foreground "gold"
:background "MidnightBlue"
:stipple nil
:inherit nil))))
'(cursor ((t (:background "green"))))
'(region ((t (:foreground "black" :background "LightGrey"))))
;; vertical line when spilt window with C-x 3 on text terminals
'(vertical-border ((t (:foreground "white" :background "MidnightBlue"))))
;; same on graphical displays
'(fringe ((t (:foreground "white" :background "MidnightBlue"))))
;; ecb customizations
'(ecb-default-highlight-face ((t (:background "DarkSlateGray" :box (:line-width 1 :style released-button)))))
'(ecb-default-general-face ((t (:foreground "white"))))
;; coding customizations
'(font-lock-comment-face ((t (:foreground "LightGrey"))))
'(font-lock-comment-delimiter-face ((t (:foreground "LightGrey"))))
'(font-lock-doc-face ((t (:foreground "SandyBrown"))))
'(font-lock-keyword-face ((t (:foreground "white"))))
'(font-lock-preprocessor-face ((t (:foreground "green"))))
'(font-lock-string-face ((t (:foreground "cyan1"))))
'(font-latex-string-face ((t (:foreground "cyan1"))))
'(font-latex-math-face ((t (:foreground "aquamarine1"))))
'(font-lock-type-face ((t (:foreground "white"))))
'(font-lock-builtin-face ((t (:foreground "white"))))
'(font-lock-function-name-face ((t (:foreground "gold" :italic t))))
;; (font-lock-function-name-face ((t (:foreground "selectedControlColor"))))
;; (font-lock-variable-name-face ((t (:foreground "green"))))
;; (font-lock-negation-char-face ((t (:foreground "white"))))
'(font-lock-number-face ((t (:foreground "cyan1"))))
'(font-lock-constant-face ((t (:foreground "gold"))))
'(font-lock-warning-face ((t (:foreground "red"))))
'(font-lock-operator-face ((t (:foreground "white"))))
'(font-lock-end-statement ((t (:foreground "white"))))
;; log4j customizations
'(log4j-font-lock-warn-face ((t (:foreground "Orange"))))
;; info-mode customization
'(info-menu-header ((t (:foreground "white"))))
'(info-title-1 ((t (:foreground "white"))))
'(info-title-2 ((t (:foreground "white"))))
'(info-title-3 ((t (:foreground "white"))))
'(info-title-4 ((t (:foreground "white"))))
;; python customizations
'(py-builtins-face ((t (:foreground "#ffffff"))))
;; helm customizations
'(helm-selection ((t (:background "Cyan" :foreground "black"))))
'(helm-ff-directory ((t (:foreground "#ffffff" :background "MidnightBlue"))))
;; dired customizations
'(diredp-file-name ((t (:foreground "cyan1"))))
'(diredp-file-suffix ((t (:foreground "cyan1"))))
'(diredp-dir-heading ((t (:foreground "white" :background "MidnightBlue" :underline t ))))
'(diredp-dir-priv ((t (:foreground "#ffffff" :background "MidnightBlue"))))
;; file attributes in the dired
'(diredp-read-priv ((t (:foreground "grey" :background "MidnightBlue"))))
'(diredp-write-priv ((t (:foreground "grey" :background "MidnightBlue"))))
'(diredp-exec-priv ((t (:foreground "grey" :background "MidnightBlue"))))
;; no attribute set
'(diredp-no-priv ((t (:foreground "grey" :background "MidnightBlue"))))
;; marked file color and mark sign
'(diredp-flag-mark-line ((t (:background "MidnightBlue"))))
'(diredp-flag-mark ((t (:foreground "gold" :background "MidnightBlue"))))
'(diredp-inode+size ((t (:foreground "white"))))
'(diredp-compressed-file-suffix ((t (:foreground "cyan1"))))
'(diredp-ignored-file-name ((t (:foreground "cyan1"))))
;; nXML customizations
; '<' and '>' characters
'(nxml-tag-delimiter ((t (:foreground "#E8BF6A"))))
; '=' and '"' characters
'(nxml-attribute-value-delimiter ((t (:foreground "#E8BF6A"))))
; tag name
'(nxml-element-local-name ((t (:foreground "#CC7832"))))
; attribute name
;'(nxml-attribute-local-name ((t (:foreground "#BABABA"))))
'(nxml-attribute-local-name ((t (:foreground "#ABCDEF"))))
; attribute value
'(nxml-attribute-value ((t (:foreground "#A5C261"))))
'(nxml-text ((t (:foreground "#BABABA"))))
'(nxml-cdata-section-content ((t (:foreground "gold"))))
; attribute prefix like xlink:href - here it is "xlink"
;'(nxml-attribute-prefix ((t (:foreground "#DADADA"))))
'(nxml-attribute-prefix ((t (:foreground "#BBEDFF"))))
; tag prefix : <ui:Checkbox> - here it is "ui"
'(nxml-element-prefix ((t (:foreground "#EC9852"))))
;; python customization
;; self, None, True, False, ... keywords
'(py-pseudo-keyword-face ((t (:foreground "#ABCDEF" :italic t))))
;; object, open, exec etc
'(py-builtins-face ((t (:foreground "white" :bold t))))
;; numbers
'(py-number-face ((t (:foreground "cyan1"))))
;; method decorators, starting with @
'(py-decorators-face ((t (:foreground "#BBB5B9" :italic t))))
;; Scala mode colors
'(scala-font-lock:var-face ((t (:foreground "Magenta"))))
;; erc colors
'(erc-nick-default-face ((t (:foreground "#3b99fc" :bold t))))
'(erc-default-face ((t (:foreground "#b2d7ff"))))
'(erc-action-face ((t (:foreground "LightGrey"))))
'(erc-button ((t (:foreground "cyan" :underline t))))
)
;; '(font-lock-regexp-grouping-backslash ((t (:inherit (bold)))))
;; '(font-lock-regexp-grouping-construct ((t (:inherit (bold)))))
;; '(link ((t (:underline (:color foreground-color :style line) :foreground "#8ac6f2"))))
;; '(link-visited ((t (:underline (:color foreground-color :style line) :foreground "#e5786d" :inherit (link)))))
;; '(fringe ((t (:background "#303030"))))
;; '(header-line ((t (:underline (:color foreground-color :style line) :inverse-video nil :foreground "#e7f6da" :background "#303030" :inherit (mode-line)))))
;; '(tooltip ((((class color)) (:inherit (variable-pitch) :foreground "black" :background "lightyellow")) (t (:inherit (variable-pitch)))))
;; '(mode-line ((t (:box (:line-width -1 :color nil :style released-button) :foreground "#f6f3e8" :background "#444444"))))
;; '(mode-line-buffer-id ((t (:weight bold))))
;; '(mode-line-emphasis ((t (:weight bold))))
;; '(mode-line-highlight ((((class color) (min-colors 88)) (:box (:line-width 2 :color "grey40" :style released-button))) (t (:inherit (highlight)))))
;; '(mode-line-inactive ((t (:weight light :box (:line-width -1 :color "grey40" :style nil) :foreground "#857b6f" :background "#444444" :inherit (mode-line)))))
;; '(isearch ((t (:foreground "#857b6f" :background "#343434"))))
;; '(isearch-fail ((((class color) (min-colors 88) (background light)) (:background "RosyBrown1")) (((class color) (min-colors 88) (background dark)) (:background "red4")) (((class color) (min-colors 16)) (:background "red")) (((class color) (min-colors 8)) (:background "red")) (((class color grayscale)) (:foreground "grey")) (t (:inverse-video t))))
;; '(lazy-highlight ((t (:foreground "#a0a8b0" :background "#384048"))))
;; '(match ((((class color) (min-colors 88) (background light)) (:background "yellow1")) (((class color) (min-colors 88) (background dark)) (:background "RoyalBlue3")) (((class color) (min-colors 8) (background light)) (:foreground "black" :background "yellow")) (((class color) (min-colors 8) (background dark)) (:foreground "white" :background "blue")) (((type tty) (class mono)) (:inverse-video t)) (t (:background "gray"))))
;; '(next-error ((t (:inherit (region)))))
;; '(query-replace ((t (:inherit (isearch))))))
;;;###autoload
(when (and (boundp 'custom-theme-load-path)
load-file-name)
;; add theme folder to `custom-theme-load-path' when installing over MELPA
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
(provide-theme 'borland-blue)
;;; borland-blue-theme.el ends here