@@ -17,21 +17,21 @@ const copyPathPopoverContentOpts = {
1717}
1818
1919const Container = styled . div `
20- border: 1px solid #e8e8e8 ;
20+ border: 1px solid ${ ( { theme } ) => theme . border } ;
2121 border-radius: 3px;
2222 margin-bottom: 16px;
2323 margin-top: 16px;
24+ color: ${ ( { theme } ) => theme . text } ;
2425`
2526
2627const More = styled . div `
27- background-color: #f1f8ff;
2828 margin-left: 30px;
2929 padding-left: 4px;
30- color: '#1b1f23b3';
3130`
3231
3332const Decoration = styled ( DiffDecoration ) `
34- background-color: #dbedff;
33+ background-color: ${ ( { theme } ) => theme . diff . decorationContentBackground } ;
34+ color: ${ ( { theme } ) => theme . diff . decorationContent } ;
3535`
3636
3737const DiffView = styled ( RDiff ) `
@@ -44,31 +44,19 @@ const DiffView = styled(RDiff)`
4444 monospace;
4545 }
4646
47- td.diff-gutter {
48- color: rgba(27, 31, 35, 0.3);
49- padding: 0;
50- text-align: center;
51- font-size: 12px;
52- cursor: auto;
53- }
54-
5547 td.diff-gutter .diff-line-normal {
56- background-color: #cdffd8 ;
57- border-color: #bef5cb ;
48+ background-color: ${ ( { theme } ) => theme . gutterInsertBackground } ;
49+ border-color: ${ ( { theme } ) => theme . greenBorder } ;
5850 }
5951
6052 td.diff-gutter:hover {
6153 cursor: pointer;
62- color: rgba(27, 31, 35, 0.6) ;
54+ color: ${ ( { theme } ) => theme . textHover } ;
6355 }
6456
6557 td.diff-code {
6658 font-size: 12px;
67- color: #24292e;
68- }
69-
70- td.diff-code-insert .diff-code-edit {
71- background-color: #acf2bd;
59+ color: ${ ( { theme } ) => theme . text } ;
7260 }
7361
7462 td.diff-gutter-omit:before {
@@ -79,6 +67,79 @@ const DiffView = styled(RDiff)`
7967 td.diff-widget-content {
8068 padding: 0;
8169 }
70+
71+ // From diff global
72+ .diff {
73+ background-color: ${ ( { theme } ) => theme . diff . backgroundColor } ;
74+ color: ${ ( { theme } ) => theme . diff . text } ;
75+ tab-size: 4;
76+ hyphens: none;
77+ }
78+
79+ .diff::selection {
80+ background-color: ${ ( { theme } ) => theme . diff . selectionMackground } ;
81+ }
82+
83+ .diff-decoration {
84+ line-height: 2;
85+ font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier,
86+ monospace;
87+ background-color: ${ ( { theme } ) => theme . diff . decorationBackground } ;
88+ }
89+
90+ .diff-decoration-content {
91+ padding-left: 0.5em;
92+ background-color: ${ ( { theme } ) => theme . diff . contentBackground } ;
93+ color: ${ ( { theme } ) => theme . diff . decorationContent } ;
94+ }
95+
96+ .diff-gutter {
97+ padding: 0;
98+ text-align: center;
99+ font-size: 12px;
100+ cursor: auto;
101+ }
102+
103+ .diff-gutter-insert {
104+ background-color: ${ ( { theme } ) => theme . diff . gutterInsertBackground } ;
105+ }
106+
107+ .diff-gutter-delete {
108+ background-color: ${ ( { theme } ) => theme . diff . gutterDeleteBackground } ;
109+ }
110+
111+ .diff-gutter-selected {
112+ background-color: ${ ( { theme } ) => theme . diff . gutterSelectedBackground } ;
113+ }
114+
115+ .diff-code-insert {
116+ background-color: ${ ( { theme } ) => theme . diff . codeInsertBackground } ;
117+ }
118+
119+ .diff-code-edit {
120+ color: inherit;
121+ }
122+
123+ .diff-code-insert .diff-code-edit {
124+ background-color: ${ ( { theme } ) => theme . diff . codeInsertEditBackground } ;
125+ }
126+
127+ .diff-code-delete {
128+ background-color: ${ ( { theme } ) => theme . diff . codeDeleteBackground } ;
129+ }
130+
131+ .diff-code-delete .diff-code-edit {
132+ background-color: ${ ( { theme } ) => theme . diff . codeDeleteEditBackground } ;
133+ }
134+
135+ .diff-code-selected {
136+ background-color: ${ ( { theme } ) => theme . diff . codeSelectedBackground } ;
137+ }
138+
139+ .diff-decoration-gutter {
140+ background-color: ${ ( { theme } ) => theme . diff . decorationGutterBackground } ;
141+ color: ${ ( { theme } ) => theme . diff . decorationGutter } ;
142+ }
82143`
83144
84145// Diff will be collapsed by default if the file has been deleted or has more than 5 hunks
0 commit comments