Skip to content

Commit 1ff55ff

Browse files
dkagedalgitster
authored andcommitted
git.el: Added colors for dark background
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2f6a382 commit 1ff55ff

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

contrib/emacs/git.el

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,47 +99,56 @@ if there is already one that displays the same directory."
9999

100100

101101
(defface git-status-face
102-
'((((class color) (background light)) (:foreground "purple")))
102+
'((((class color) (background light)) (:foreground "purple"))
103+
(((class color) (background dark)) (:foreground "salmon")))
103104
"Git mode face used to highlight added and modified files."
104105
:group 'git)
105106

106107
(defface git-unmerged-face
107-
'((((class color) (background light)) (:foreground "red" :bold t)))
108+
'((((class color) (background light)) (:foreground "red" :bold t))
109+
(((class color) (background dark)) (:foreground "red" :bold t)))
108110
"Git mode face used to highlight unmerged files."
109111
:group 'git)
110112

111113
(defface git-unknown-face
112-
'((((class color) (background light)) (:foreground "goldenrod" :bold t)))
114+
'((((class color) (background light)) (:foreground "goldenrod" :bold t))
115+
(((class color) (background dark)) (:foreground "goldenrod" :bold t)))
113116
"Git mode face used to highlight unknown files."
114117
:group 'git)
115118

116119
(defface git-uptodate-face
117-
'((((class color) (background light)) (:foreground "grey60")))
120+
'((((class color) (background light)) (:foreground "grey60"))
121+
(((class color) (background dark)) (:foreground "grey40")))
118122
"Git mode face used to highlight up-to-date files."
119123
:group 'git)
120124

121125
(defface git-ignored-face
122-
'((((class color) (background light)) (:foreground "grey60")))
126+
'((((class color) (background light)) (:foreground "grey60"))
127+
(((class color) (background dark)) (:foreground "grey40")))
123128
"Git mode face used to highlight ignored files."
124129
:group 'git)
125130

126131
(defface git-mark-face
127-
'((((class color) (background light)) (:foreground "red" :bold t)))
132+
'((((class color) (background light)) (:foreground "red" :bold t))
133+
(((class color) (background dark)) (:foreground "tomato" :bold t)))
128134
"Git mode face used for the file marks."
129135
:group 'git)
130136

131137
(defface git-header-face
132-
'((((class color) (background light)) (:foreground "blue")))
138+
'((((class color) (background light)) (:foreground "blue"))
139+
(((class color) (background dark)) (:foreground "blue")))
133140
"Git mode face used for commit headers."
134141
:group 'git)
135142

136143
(defface git-separator-face
137-
'((((class color) (background light)) (:foreground "brown")))
144+
'((((class color) (background light)) (:foreground "brown"))
145+
(((class color) (background dark)) (:foreground "brown")))
138146
"Git mode face used for commit separator."
139147
:group 'git)
140148

141149
(defface git-permission-face
142-
'((((class color) (background light)) (:foreground "green" :bold t)))
150+
'((((class color) (background light)) (:foreground "green" :bold t))
151+
(((class color) (background dark)) (:foreground "green" :bold t)))
143152
"Git mode face used for permission changes."
144153
:group 'git)
145154

0 commit comments

Comments
 (0)