-
Notifications
You must be signed in to change notification settings - Fork 0
/
desktop--dark-fusion.css
executable file
·417 lines (404 loc) · 13.8 KB
/
desktop--dark-fusion.css
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
/**
* All of the CSS variables are copied in from the compiled ui.css
* Variables that *categorically* shouldn't be overridden are commented out,
* but many are simply left unchanged.
*/
:root {
/* these should probably stay the same
--color-new: #28a745;
--color-deleted: #d73a49;
--color-modified: #dbab09;
--color-renamed: #0366d6;
--color-conflicted: #f66a0a;
*/
--text-color: #ffffff;
--text-secondary-color: #adb7c3;
--text-tertiary-color: #adb7c3;
--background-color: #2f3542;
/* layout should stay the same
--button-height: 25px; */
--button-background: #41afb6;
--button-border-radius: 2px;
--button-hover-background: #3f9ba0;
--button-text-color: #fff;
--button-focus-border-color: #3f9ba0;
--link-button-color: #41afb6;
--secondary-button-background: #2F3542;
--secondary-button-hover-background: #3f9ba0;
--secondary-button-text-color: var(--text-color);
--secondary-button-focus-shadow-color: rgba(64, 64, 64, 0.27);
--secondary-button-focus-border-color: #41AFB6;
/* fonts should stay the same
--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
--font-family-monospace: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; */
/**
* Font weight to use for semibold text
*/
/* fonts should stay the same
--font-weight-semibold: 600; */
/**
* Font weight to use for light text
*/
/* fonts should stay the same
--font-weight-light: 300;
--font-size: 12px;
--font-size-sm: 11px;
--font-size-md: 14px;
--font-size-lg: 28px;
--font-size-xl: 32px;
--font-size-xxl: 42px; */
/** Extra small font size, be very conservative with the use of this */
/* fonts should stay the same
--font-size-xs: 9px; */
/**
* Background color for custom scroll bars.
* The color is applied to the thumb part of the scrollbar.
*
* Note: Only applies to win32 platforms
*/
--scroll-bar-thumb-background-color: rgba(65, 175, 182, 0.6);
/**
* Background color for custom scroll bars in their active state.
* The color is applied to the thumb part of the scrollbar.
*
* Note: Only applies to win32 platforms
*/
--scroll-bar-thumb-background-color-active: rgba(65, 175, 182, 0.8);
--box-alt-background-color: #2f3542;
/**
* Border color for boxes.
*/
--box-border-color: #292e3a; /* Rows and colums border color */
--box-border-accent-color: #41afb6;
/**
* Background color for selected boxes without keyboard focus
*/
--box-selected-background-color: #292e3a;
/**
* Text color for when a user hovers over a boxe with a
* pointing device. Should not be used by boxes that doesn't
* implement a hover state since this will conflict with
* selection and active selection
*/
--box-hover-text-color: #24292e;
/**
* Background color for when a user hovers over a boxe with a
* pointing device. Should not be used by boxes that doesn't
* implement a hover state since this will conflict with
* selection and active selection
*/
/**
* Text color for selected boxes without keyboard focus
*/
--box-selected-text-color: var(--text-color);
/**
* Border color for selected boxes without keyboard focus
*/
--box-selected-border-color: #959da5;
/**
* Background color for selected boxes with active keyboard focus
*/
--box-selected-active-background-color: #292e3a;
/**
* Text color for selected boxes with active keyboard focus
*/
--box-selected-active-text-color: #fff;
/**
* Border color for selected boxes with active keyboard focus
*/
--box-selected-active-border-color: #959da5;
/**
* The height of the title bar area on Win32 platforms
* If changed, update titleBarHeight in 'app/src/ui/dialog/dialog.tsx'
*/
/* layout should stay the same
--win32-title-bar-height: 28px; */
--win32-title-bar-background-color: #24292e;
/**
* The height of the title bar area on darwin platforms
* If changed, update titleBarHeight in 'app/src/ui/dialog/dialog.tsx'
*/
/* layout should stay the same
--darwin-title-bar-height: 22px;
--spacing: 10px;
--spacing-double: calc(var(--spacing) * 2);
--spacing-triple: calc(var(--spacing) * 3);
--spacing-quad: calc(var(--spacing) * 4);
--spacing-half: calc(var(--spacing) / 2);
--spacing-third: calc(var(--spacing) / 3); */
/* this should probably stay the same
--border-radius: 3px; */
--base-border: 1px solid var(--box-border-color);
--shadow-color: rgba(71, 83, 95, 0.19);
--base-box-shadow: 0 2px 7px var(--shadow-color);
/* layout should stay the same
--toolbar-height: 50px; */
--toolbar-background-color: #2f3542;
--toolbar-text-color: #ffffff;
--toolbar-text-secondary-color: #adb7c3;
--toolbar-badge-active-background-color: #adb7c3;
--toolbar-badge-background-color: #ec7e56;
--toolbar-button-color: var(--toolbar-text-color);
--toolbar-button-background-color: transparent;
--toolbar-button-border-color: #292e3a; /* Replace this with the border color that you want */
--toolbar-button-secondary-color: var(--toolbar-text-secondary-color);
--toolbar-button-hover-color: #fff;
--toolbar-button-hover-background-color: #2f3542;
--toolbar-button-hover-border-color: var(--toolbar-button-border-color);
--toolbar-button-focus-background-color: #2f3542;
--toolbar-button-active-color: var(--text-color);
--toolbar-button-active-background-color: var(--background-color);
--toolbar-button-active-border-color: #292e3a;
--toolbar-button-progress-color: #2f3542;
--toolbar-button-focus-progress-color: #444d56;
--toolbar-button-hover-progress-color: #444d56;
--toolbar-dropdown-open-progress-color: #adb7c3;
/* layout should stay the same
--tab-bar-height: 29px; */
--tab-bar-active-color: #41AFB6;
--tab-bar-background-color: #292e3a;
--tab-bar-count-color: var(--text-color);
--tab-bar-count-background-color: #ec7e56;
/** Win32 has custom scrol bars, see _scroll.scss */
/* layout should stay the same
--win32-scroll-bar-size: 10px; */
/**
* The z-index for popups. Nothing should be higher, but other z-indexes can
* be defined in terms of it.
*
* 10 seems arbitrary (because it is) but we have to go that high because
* codemirror is all over the place with their z-indexes and uses at least
* 0-6.
*/
/* layout should stay the same
--popup-z-index: 10;
--popup-overlay-z-index: calc(var(--popup-z-index) - 1);
--foldout-z-index: calc(var(--popup-z-index) - 2); */
/** The highlight color used for focus rings and focus box shadows */
--list-item-badge-color: #2F3542;
--list-item-badge-background-color: #41AFB6;
--list-item-selected-badge-color: #2F3542;
--list-item-selected-badge-background-color: #EC7E56;
--list-item-selected-active-badge-color: #2F3542;
--list-item-selected-active-badge-background-color: #EC7E56;
--focus-color: #41afb6;
/**
* Variables for form elements
*/
/* layout should stay the same
--text-field-height: 25px; */
--text-field-focus-shadow-color: rgba(3, 102, 214, 0.25);
/**
* Diff view
*/
--diff-text-color: #ADB7C3;
--diff-border-color: #292e3a;
--diff-gutter-color: #292e3a;
--diff-line-number-color: #656F7B;
/* layout should stay the same
--diff-line-number-column-width: 50px; */
--diff-selected-background-color: #41AFB6;
--diff-selected-border-color: #3f9ba0;
--diff-selected-gutter-color: #3f9ba0;
--diff-selected-text-color: #fff;
--diff-add-background-color: #113a1b;
--diff-add-border-color: #2ca248;
--diff-add-gutter-color: #2ca248;
--diff-add-gutter-background-color: #00440f;
--diff-add-inner-background-color: #0e6122;
--diff-add-text-color: var(--diff-text-color);
--diff-add-hover-background-color: #00801f;
--diff-add-hover-border-color: #34d058;
--diff-add-hover-gutter-color: #34d058;
--diff-add-hover-text-color: var(--text-color);
--diff-delete-background-color: #310f12;
--diff-delete-border-color: #d2283b;
--diff-delete-gutter-color: #d2283b;
--diff-delete-gutter-background-color: #61000b;
--diff-delete-inner-background-color: #7d1e29;
--diff-delete-text-color: var(--diff-text-color);
--diff-delete-hover-background-color: #980011;
--diff-delete-hover-border-color: #f97583;
--diff-delete-hover-gutter-color: #f97583;
--diff-delete-hover-text-color: var(--text-color);
--diff-hunk-background-color: #292e3a;
--diff-hunk-border-color: #2F3542;
--diff-hunk-gutter-color: #2F3542;
--diff-hunk-text-color: #fff;
--diff-hover-background-color: #41AFB6;
--diff-hover-border-color: #3f9ba0;
--diff-hover-gutter-color: #3f9ba0;
--diff-hunk-gutter-background-color: #292e3a;
--diff-hover-text-color: #fff;
/* layout/animation should stay the same
--undo-animation-duration: 500ms; */
/**
* Ahead/behind view
*/
--ahead-behind-background-color: #656F7B;
--error-color: #d73a49;
/* TOOD: style errors and warnings */
--form-error-background: #ffdce0;
--form-error-border-color: #fdaeb7;
--form-error-text-color: #9e1c23;
/** Dialog */
--dialog-warning-color: #f9c513;
--dialog-warning-text-color: #b08800;
--dialog-error-color: #d73a49;
/** Inline paths and code */
--path-segment-background: #3b4046;
/* layout should stay the same
--path-segment-padding: var(--spacing-third); */
--notification-banner-background: #2F3542;
--notification-banner-border-color: #292e3a;
--notification-ref-background: #EC7E56;
/* layout/animation should stay the same
--easing-ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
--easing-ease-in-back: cubic-bezier(0.6, -0.28, 0.735, 0.045);
--easing-ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1); */
}
input,
textarea,
select {
background: var(--background-color);
border-color: #41afb6;
}
body.platform-win32 .select-component select {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKCAMAAACKYC6uAAAAHlBMVEUAAAD///////////////////////////////////8kfJuVAAAACXRSTlMABBg4ZJvH5/vidbtgAAAAOklEQVR4AVXMuw2AAAwDUecf9l8YhDgBr7OLUx0/JevvbpN83j2uSyx7Q7fkSD2KIKwJwocgYgkiCZ4+JQLR5CxFcgAAAABJRU5ErkJggg==");
background-size: 8px 5px;
}
.CodeMirror,
.diff-context {
/* background: var(--background-color); */
background: #2f3542;
/* TODO: should probably be a variable like --diff-background-color */
}
.CodeMirror-code > div:last-of-type {
/* border-bottom: 1px solid var(--diff-border-color); */
border-bottom: 1px solid var(--background-color);
}
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
background-color: var(--background-color); /* The little square between H and V scrollbars */
}
body.platform-darwin #desktop-app-title-bar {
height: var(--darwin-title-bar-height);
background: linear-gradient(to bottom, #2f3542 0%, #2f3542 100%);
border-bottom: 1px solid #292e3a; /* Removing bottom border will eliminate the bottom title-bar border */
}
#desktop-app-toolbar {
border-bottom: 1px solid #292e3a;
}
.commit-summary-description-scroll-view:before {
/* The original gradient included a half opacity value and hardcoded the background color. */
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0) 40px, var(--background-color) 55px);
}
/**
* With border-right it won't line up between the button and the foldout (by a pixel),
* and an inset box-shadow will get covered up. Create an inset border with a psuedo element.
*/
#desktop-app-toolbar .foldout::after {
content: "";
position: absolute;
right: 0;
top: 0;
bottom: 0;
border-right: var(--base-border);
}
/**
* The foldout can be wider than the button, so we want a non-rectangular border.
* First create a line between the foldout and the toolbar.
*/
#desktop-app-toolbar .foldout::before
{
content: "";
position: absolute;
right: 0;
left: 0;
top: 0;
border-top: var(--base-border);
}
/**
* For the menus, we want a border all around,
* but for the other foldouts I'm relying on existing borders in the UI
* (the left edge of the window, and the edge of the column under the repo selector)
* (and the bottom edge of the window)
*/
/* #desktop-app-toolbar .foldout > *, */
.menu-pane {
border: var(--base-border);
}
/**
* Then cover up the part of the line between the button and its foldout.
*/
.toolbar-dropdown.open > .toolbar-button > button::after {
content: "";
position: absolute;
right: 0;
left: 0;
top: 0;
bottom: -1px;
border-bottom: 1px solid var(--background-color);
z-index: var(--popup-z-index);
}
/**
* The menu buttons need some extra borders to complete the non-rectangular shape.
* (The irregular hexagon, technically.)
*/
#app-menu-bar .toolbar-dropdown.open > .toolbar-button > button::after {
border-left: var(--base-border);
border-right: var(--base-border);
}
/**
* Note: potentially affecting layout!
* This should be applied regardless of dark mode to avoid weird inconsistencies.
*/
.toolbar-dropdown,
.toolbar-dropdown > .toolbar-button,
.toolbar-dropdown > .toolbar-button > button {
overflow: visible;
}
/**
* TODO: better control over colors in the art
* with alternate images for multi-color art
* and CSS fill-overridable SVGs for monochrome art
*/
#repository .blankslate-image {
/* filter: saturate(24) hue-rotate(50deg) saturate(0.3) brightness(0.9) opacity(0.2); */
filter: invert() hue-rotate(200deg) brightness(5) opacity(0.2);
}
/**
* Lighter text colors in code to improve visibility with the dark theme
*/
.cm-s-default .cm-header {
color: #f5754b;
}
.cm-s-default .cm-tag {
color: lightgreen;
}
.cm-s-default .cm-qualifier {
color: turquoise;
}
.cm-s-default .cm-atom {
color: #41afb6;
}
.cm-s-default .cm-keyword {
color: #ce5b6a;
}
.cm-s-default .cm-property {
color: #d0bb91;
}
.cm-s-default .cm-attribute {
color: dodgerblue;
}
.cm-s-default span[class*="cm-string"] {
color: #adb7c3;
}
.cm-s-default .cm-comment {
color: #ADB7C3;
}
.cm-s-default .cm-link {
color: violet;
}
.cm-s-default span[class*="cm-variable"] {
color : #d271e3;
}