File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ import {
19
19
fileList ,
20
20
floatRightStyle ,
21
21
iconStyle ,
22
+ insertionsIconStyle ,
23
+ deletionsIconStyle ,
22
24
revertButtonStyle
23
25
} from '../style/SinglePastCommitInfoStyle' ;
24
26
import { Git } from '../tokens' ;
@@ -140,7 +142,7 @@ export class SinglePastCommitInfo extends React.Component<
140
142
< span >
141
143
< DefaultIconReact
142
144
name = "git-insertionsMade"
143
- className = { iconStyle }
145
+ className = { classes ( iconStyle , insertionsIconStyle ) }
144
146
tag = "span"
145
147
title = "# Insertions"
146
148
/>
@@ -149,7 +151,7 @@ export class SinglePastCommitInfo extends React.Component<
149
151
< span >
150
152
< DefaultIconReact
151
153
name = "git-deletionsMade"
152
- className = { iconStyle }
154
+ className = { classes ( iconStyle , deletionsIconStyle ) }
153
155
tag = "span"
154
156
title = "# Deletions"
155
157
/>
Original file line number Diff line number Diff line change @@ -72,6 +72,22 @@ export const iconStyle = style({
72
72
right : '10px'
73
73
} ) ;
74
74
75
+ export const insertionsIconStyle = style ( {
76
+ $nest : {
77
+ '.jp-icon3' : {
78
+ fill : '#00dc00'
79
+ }
80
+ }
81
+ } ) ;
82
+
83
+ export const deletionsIconStyle = style ( {
84
+ $nest : {
85
+ '.jp-icon3' : {
86
+ fill : '#ff0000'
87
+ }
88
+ }
89
+ } ) ;
90
+
75
91
export const diffIconStyle = style ( {
76
92
backgroundColor : 'transparent' ,
77
93
backgroundPosition : 'center' ,
You can’t perform that action at this time.
0 commit comments