@codingame/monaco-vscode-theme-service-override 36.2.6 → 37.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -0
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/activityBar.css +301 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/commandCenter.css +47 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/editorBorder.css +96 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/fontRamp.css +206 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/keyboardFocusOnly.css +44 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/notificationsDialogs.css +146 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/padding.css +377 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/paneHeaders.css +123 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/roundedCorners.css +287 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/sashHandles.css +94 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/shadows.css +52 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/statusBar.css +97 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/tabs.css +1044 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/media/titlebar.css +19 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.js +219 -0
- package/vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js +45 -45
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +7 -5
- package/vscode/src/vs/workbench/services/themes/browser/modernTabColorCustomizations.d.ts +1 -0
- package/vscode/src/vs/workbench/services/themes/browser/modernTabColorCustomizations.js +255 -0
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +12 -12
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +14 -5
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +16 -16
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +45 -38
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +7 -7
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.d.ts +2 -0
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +46 -36
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +21 -21
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Modern UI module: "Padding".
|
|
8
|
+
*
|
|
9
|
+
* Adjusts the internal padding of common workbench surfaces to give content
|
|
10
|
+
* more breathing room.
|
|
11
|
+
*
|
|
12
|
+
* All rules are gated behind the `.modern-ui` class, which the
|
|
13
|
+
* ModernUIContribution toggles onto the workbench container(s) when the
|
|
14
|
+
* `workbench.experimental.modernUI` (Modern UI Update) setting is enabled.
|
|
15
|
+
* Without that class these rules never apply.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* Inset view pane content (sidebar / panel / auxiliary bar sections) by a
|
|
20
|
+
* horizontal amount matching the Agents window panel padding
|
|
21
|
+
* (8px / --vscode-spacing-size80) so content has breathing room from the edges.
|
|
22
|
+
*
|
|
23
|
+
* The pane *header* is padded, and each list/tree *row* box is inset so there is
|
|
24
|
+
* a real margin between the row (including its hover / selection highlight) and
|
|
25
|
+
* the pane edge. Rows are `position: absolute; width: 100%`, so insetting them
|
|
26
|
+
* with `left` / `right` (and `width: auto`) leaves a gap on both sides. The
|
|
27
|
+
* vertical scrollbar is a sibling of the rows inside `.monaco-scrollable-element`
|
|
28
|
+
* (not a child of the rows), so it stays pinned to the pane edge.
|
|
29
|
+
*
|
|
30
|
+
* The chat & agent-sessions UI is excluded: `ChatViewPane` adds the
|
|
31
|
+
* `chat-viewpane-container` class directly onto its `.pane`.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/* Header: inset the section title / actions to line up with the rows below. */
|
|
35
|
+
.modern-ui .monaco-pane-view .pane:not(.chat-viewpane-container) > .pane-header {
|
|
36
|
+
padding-left: var(--vscode-spacing-size40);
|
|
37
|
+
padding-right: 0;
|
|
38
|
+
margin: 0 var(--vscode-spacing-size40);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Body: inset each row box, leaving the scrollbar pinned to the pane edge. */
|
|
42
|
+
.modern-ui .monaco-pane-view .pane-body:not(.chat-viewpane) .monaco-list-row {
|
|
43
|
+
left: var(--vscode-spacing-size40);
|
|
44
|
+
right: var(--vscode-spacing-size40);
|
|
45
|
+
width: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Tighten part chrome from 35px to 32px.
|
|
49
|
+
* KEEP IN SYNC WITH: part.ts PartLayout.AREA_HEIGHT_MODERN_UI */
|
|
50
|
+
.modern-ui.monaco-workbench .part > .title,
|
|
51
|
+
.modern-ui.monaco-workbench .part > .header-or-footer {
|
|
52
|
+
height: 32px;
|
|
53
|
+
padding-left: var(--vscode-spacing-size20);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.modern-ui.monaco-workbench .part > .title {
|
|
57
|
+
padding-left: var(--vscode-spacing-size40);
|
|
58
|
+
padding-right: var(--vscode-spacing-size40);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.modern-ui.monaco-workbench .part > .title > .title-label {
|
|
62
|
+
line-height: 32px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.modern-ui.monaco-workbench .part > .title > .title-actions {
|
|
66
|
+
height: 32px;
|
|
67
|
+
padding-left: var(--vscode-spacing-size40);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.modern-ui.modern-ui-compact .monaco-pane-view .pane-body:not(.chat-viewpane) .monaco-list-row {
|
|
71
|
+
left: var(--vscode-spacing-size20);
|
|
72
|
+
right: var(--vscode-spacing-size20);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/*
|
|
76
|
+
* In the Run and Debug view give the header actions (play button + launch
|
|
77
|
+
* configuration dropdown) the extra room by letting the actions grow while the
|
|
78
|
+
* title label stays non-greedy.
|
|
79
|
+
*/
|
|
80
|
+
.modern-ui.monaco-workbench .part > .title.has-start-debug-action-item > .title-actions {
|
|
81
|
+
flex: 2;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.modern-ui.monaco-workbench .part.editor > .content .editor-group-container > .title .editor-actions {
|
|
85
|
+
padding: 0 var(--vscode-spacing-size40);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.modern-ui.monaco-workbench .part.editor > .content .editor-group-container > .title .editor-actions .actions-container > li:last-child,
|
|
89
|
+
.modern-ui.monaco-workbench .part > .title .title-actions .actions-container > li:last-child,
|
|
90
|
+
.modern-ui.monaco-workbench .part > .title .global-actions .actions-container > li:last-child {
|
|
91
|
+
margin-right: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Inset the part title label (e.g. "Explorer") to align with the content below. */
|
|
95
|
+
.modern-ui.monaco-workbench .part > .title > .title-label {
|
|
96
|
+
padding-left: var(--vscode-spacing-size80, 8px);
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
min-width: 0;
|
|
101
|
+
flex: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/*
|
|
105
|
+
* Let the title label grow to fill the bar so its actions sit to the right,
|
|
106
|
+
* except in the Run and Debug view where the header actions (play button +
|
|
107
|
+
* launch configuration dropdown) need the horizontal space instead.
|
|
108
|
+
*/
|
|
109
|
+
.modern-ui.monaco-workbench .part > .title:not(.has-start-debug-action-item) > .title-label {
|
|
110
|
+
flex: 2;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.modern-ui.monaco-workbench .pane-body .agent-sessions-viewer .monaco-scrollable-element {
|
|
114
|
+
padding: 0 var(--vscode-spacing-size80);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.modern-ui.modern-ui-compact.monaco-workbench .pane-body .agent-sessions-viewer .monaco-scrollable-element {
|
|
118
|
+
padding-left: var(--vscode-spacing-size40);
|
|
119
|
+
padding-right: var(--vscode-spacing-size40);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row {
|
|
123
|
+
background-color: transparent;
|
|
124
|
+
|
|
125
|
+
> .monaco-tl-row {
|
|
126
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-item-row {
|
|
131
|
+
padding-bottom: var(--vscode-spacing-size40);
|
|
132
|
+
|
|
133
|
+
.agent-session-item {
|
|
134
|
+
padding-block: var(--vscode-spacing-size60);
|
|
135
|
+
|
|
136
|
+
.agent-session-title-row {
|
|
137
|
+
padding-bottom: var(--vscode-spacing-size20);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-section-row {
|
|
143
|
+
padding-bottom: var(--vscode-spacing-size40);
|
|
144
|
+
|
|
145
|
+
.agent-session-section {
|
|
146
|
+
line-height: 26px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row:not(.drop-target).focused {
|
|
151
|
+
background-color: transparent;
|
|
152
|
+
outline: none;
|
|
153
|
+
|
|
154
|
+
> .monaco-tl-row {
|
|
155
|
+
background-color: var(--vscode-list-inactiveFocusBackground);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row:not(.drop-target).selected {
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
outline: none;
|
|
162
|
+
|
|
163
|
+
> .monaco-tl-row {
|
|
164
|
+
background-color: var(--vscode-list-inactiveSelectionBackground);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row.agent-session-list-row:not(.drop-target):hover:not(.selected):not(.focused) {
|
|
169
|
+
background-color: transparent;
|
|
170
|
+
outline: none;
|
|
171
|
+
|
|
172
|
+
> .monaco-tl-row {
|
|
173
|
+
background-color: var(--vscode-list-hoverBackground);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list:focus .monaco-list-row.agent-session-list-row:not(.drop-target).focused {
|
|
178
|
+
background-color: transparent;
|
|
179
|
+
outline: none;
|
|
180
|
+
|
|
181
|
+
> .monaco-tl-row {
|
|
182
|
+
background-color: var(--vscode-list-focusBackground);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list:focus .monaco-list-row.agent-session-list-row:not(.drop-target).selected {
|
|
187
|
+
background-color: transparent;
|
|
188
|
+
outline: none;
|
|
189
|
+
|
|
190
|
+
> .monaco-tl-row {
|
|
191
|
+
background-color: var(--vscode-list-activeSelectionBackground);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row:is(.focused, .selected),
|
|
196
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row:hover {
|
|
197
|
+
outline: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row.focused > .monaco-tl-row {
|
|
201
|
+
outline: var(--vscode-strokeThickness) dotted var(--vscode-list-inactiveFocusOutline);
|
|
202
|
+
outline-offset: calc(var(--vscode-strokeThickness) * -1);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row.focused.selected > .monaco-tl-row {
|
|
206
|
+
outline-color: var(--vscode-contrastActiveBorder, var(--vscode-list-inactiveFocusOutline));
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list:focus .monaco-list-row.agent-session-list-row.focused > .monaco-tl-row,
|
|
210
|
+
.context-menu-visible .modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list.last-focused .monaco-list-row.agent-session-list-row.focused > .monaco-tl-row {
|
|
211
|
+
outline: var(--vscode-strokeThickness) solid var(--vscode-list-focusOutline);
|
|
212
|
+
outline-offset: calc(var(--vscode-strokeThickness) * -1);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row.selected:not(.focused) > .monaco-tl-row {
|
|
216
|
+
outline: var(--vscode-strokeThickness) dotted var(--vscode-contrastActiveBorder);
|
|
217
|
+
outline-offset: calc(var(--vscode-strokeThickness) * -1);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list-row.agent-session-list-row:hover:not(.focused):not(.selected) > .monaco-tl-row {
|
|
221
|
+
outline: var(--vscode-strokeThickness) dashed var(--vscode-contrastActiveBorder);
|
|
222
|
+
outline-offset: calc(var(--vscode-strokeThickness) * -1);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.modern-ui.monaco-workbench .agent-sessions-viewer .monaco-list:focus .monaco-list-row.agent-session-list-row.focused.selected > .monaco-tl-row {
|
|
226
|
+
outline-color: var(--vscode-list-focusAndSelectionOutline, var(--vscode-contrastActiveBorder, var(--vscode-list-focusOutline)));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.modern-ui.monaco-workbench .chat-viewpane {
|
|
230
|
+
.agent-session-item .agent-session-title-toolbar .actions-container {
|
|
231
|
+
gap: var(--vscode-spacing-size40);
|
|
232
|
+
}
|
|
233
|
+
&.chat-view-location-auxiliarybar {
|
|
234
|
+
.chat-view-title-inner {
|
|
235
|
+
padding: var(--vscode-spacing-size40);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
&:is(.chat-view-location-sidebar, .chat-view-location-panel) {
|
|
239
|
+
.chat-view-title-inner {
|
|
240
|
+
padding: 0 var(--vscode-spacing-size40) 0 var(--vscode-spacing-size80);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.modern-ui.monaco-workbench .monaco-pane-view .pane > .pane-header > .actions {
|
|
246
|
+
margin-right: 0px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.modern-ui.monaco-workbench .chat-viewpane.has-sessions-control .agent-sessions-container {
|
|
250
|
+
.agent-sessions-title-container {
|
|
251
|
+
padding: 0 0 var(--vscode-spacing-size40) var(--vscode-spacing-size120);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* Give the settings / profile (global) actions at the bottom of the default
|
|
256
|
+
* vertical activity bar a 4px bottom margin so they sit consistently above the
|
|
257
|
+
* window edge, matching the pane header margins. */
|
|
258
|
+
.modern-ui.monaco-workbench .activitybar:not(.top):not(.bottom) > .content > :not(.composite-bar):last-child {
|
|
259
|
+
margin-bottom: calc(var(--vscode-spacing-size20) + var(--vscode-strokeThickness));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.modern-ui.monaco-workbench .activitybar:not(.top):not(.bottom) > .content > .composite-bar {
|
|
263
|
+
margin-top: calc(var(--vscode-spacing-size20) + var(--vscode-strokeThickness));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.modern-ui.monaco-workbench .part.basepanel:is(.bottom, .top, .left, .right) .composite.title {
|
|
267
|
+
padding-right: var(--vscode-spacing-size40);
|
|
268
|
+
padding-left: var(--vscode-spacing-size20);
|
|
269
|
+
overflow: visible;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Remove classic 1px top border that shifts 32px pills off-center (#331013) */
|
|
273
|
+
.modern-ui.monaco-workbench .part.panel.bottom .composite.title {
|
|
274
|
+
border-top: none;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.modern-ui.monaco-workbench .part.basepanel > .composite.title > .title-actions {
|
|
278
|
+
min-width: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.modern-ui.monaco-workbench .part.basepanel > .composite.title > .global-actions {
|
|
282
|
+
position: relative;
|
|
283
|
+
z-index: 1;
|
|
284
|
+
flex: 0 0 auto;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.modern-ui.monaco-workbench .quick-input-titlebar {
|
|
288
|
+
padding: var(--vscode-spacing-size20) 0 0;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.modern-ui.monaco-workbench .quick-input-widget-overlay .quick-input-titlebar {
|
|
292
|
+
padding-top: 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.modern-ui.monaco-workbench .quick-input-list .quick-input-list-entry-action-bar {
|
|
296
|
+
margin-right: 0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.modern-ui.monaco-workbench .quick-input-list .quick-input-list-entry {
|
|
300
|
+
padding: 0 var(--vscode-spacing-size40);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.modern-ui.monaco-workbench .quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding {
|
|
304
|
+
margin-right: 0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.modern-ui.monaco-workbench .quick-input-list .quick-input-list-entry-action-bar .action-label:last-child {
|
|
308
|
+
margin-right: 0;
|
|
309
|
+
margin-left: var(--vscode-spacing-size40);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.modern-ui.monaco-workbench .quick-input-list .quick-input-list-entry .quick-input-list-separator {
|
|
313
|
+
margin-right: 0;
|
|
314
|
+
margin-left: var(--vscode-spacing-size40);
|
|
315
|
+
}
|
|
316
|
+
.modern-ui.monaco-workbench .scm-view .monaco-tl-contents > div {
|
|
317
|
+
padding-right: var(--vscode-spacing-size40);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.modern-ui.monaco-workbench .search-view .search-widgets-container {
|
|
321
|
+
margin: 0 var(--vscode-spacing-size80) 0 var(--vscode-spacing-size20);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.modern-ui.monaco-workbench .extensions-viewlet > .header {
|
|
325
|
+
padding: var(--vscode-spacing-size40) var(--vscode-spacing-size80);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.modern-ui.monaco-workbench .extensions-viewlet > .extensions .extension-view-header .count-badge-wrapper {
|
|
329
|
+
margin-right: var(--vscode-spacing-size60);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.modern-ui.monaco-workbench .monaco-count-badge {
|
|
333
|
+
padding: var(--vscode-spacing-size40) var(--vscode-spacing-size60);
|
|
334
|
+
min-width: 19px;
|
|
335
|
+
min-height: 19px;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.modern-ui.monaco-workbench .interactive-session .interactive-input-part {
|
|
339
|
+
padding-bottom: 0;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Keep xterm row rounding below the content so the first line has a stable inset. */
|
|
343
|
+
.modern-ui.monaco-workbench .part.panel .pane-body.integrated-terminal .xterm {
|
|
344
|
+
top: 0;
|
|
345
|
+
bottom: auto;
|
|
346
|
+
padding-block: var(--vscode-spacing-size80);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.modern-ui.monaco-workbench .part.panel .pane-body.integrated-terminal .xterm .xterm-helpers {
|
|
350
|
+
top: var(--vscode-spacing-size80);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.modern-ui.monaco-workbench .scm-view .monaco-list-row .resource-group .actions-container,
|
|
354
|
+
.modern-ui.monaco-workbench .scm-view .monaco-list-row .resource .actions-container {
|
|
355
|
+
gap: var(--vscode-spacing-size20);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.modern-ui.monaco-workbench .scm-view .monaco-list-row .resource > .name > .monaco-icon-label::after {
|
|
359
|
+
margin-right: var(--vscode-spacing-size40);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.modern-ui.monaco-workbench .monaco-count-badge.long {
|
|
363
|
+
padding: var(--vscode-spacing-size20) var(--vscode-spacing-size40);
|
|
364
|
+
min-height: 18px;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.modern-ui.monaco-workbench .debug-pane .debug-call-stack .session > .state.label {
|
|
368
|
+
margin-right: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.modern-ui.monaco-workbench .sidebar .has-composite-bar.header-or-footer .monaco-action-bar .actions-container {
|
|
372
|
+
gap: var(--vscode-spacing-size20);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.modern-ui.monaco-workbench .monaco-pane-view .pane:not(.merged-header) .monaco-progress-container {
|
|
376
|
+
top: var(--vscode-spacing-size240);
|
|
377
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Modern UI module: "Pane Headers".
|
|
8
|
+
*
|
|
9
|
+
* Restyles view pane (sidebar / panel section) headers:
|
|
10
|
+
* - replaces the full-width separator lines with shorter, inset ones,
|
|
11
|
+
* - rounds the header corners, and
|
|
12
|
+
* - adds a background tint on hover.
|
|
13
|
+
*
|
|
14
|
+
* The pane header border (`border-top`) is applied as an inline style by the
|
|
15
|
+
* PaneView (src/vs/base/browser/ui/splitview/paneview.ts), so the reset below
|
|
16
|
+
* must use `!important` to win over that inline value.
|
|
17
|
+
*
|
|
18
|
+
* All rules are gated behind the `.modern-ui` class, which the
|
|
19
|
+
* ModernUIContribution toggles onto the workbench container(s) when the
|
|
20
|
+
* `workbench.experimental.modernUI` (Modern UI Update) setting is enabled.
|
|
21
|
+
* Without that class these rules never apply.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Remove the full-width header separator line (set inline by the PaneView) so
|
|
26
|
+
* we can redraw it inset below. The pane's inline left border is retained
|
|
27
|
+
* because it separates horizontally stacked panel sections.
|
|
28
|
+
*/
|
|
29
|
+
.modern-ui .monaco-pane-view .pane > .pane-header {
|
|
30
|
+
border: none !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* Redraw the section separator as a shorter, inset line at the top of each
|
|
35
|
+
* header (the header is already `position: relative`).
|
|
36
|
+
*/
|
|
37
|
+
.modern-ui .monaco-pane-view .pane > .pane-header::before {
|
|
38
|
+
content: "";
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
left: var(--vscode-spacing-size40);
|
|
42
|
+
right: var(--vscode-spacing-size40);
|
|
43
|
+
height: var(--vscode-strokeThickness);
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.modern-ui :is(.part.sidebar, .part.auxiliarybar) .monaco-pane-view .pane > .pane-header::before {
|
|
48
|
+
background-color: var(--vscode-sideBarSectionHeader-border, var(--vscode-surface-border));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.modern-ui .part.panel .monaco-pane-view .pane > .pane-header::before {
|
|
52
|
+
background-color: var(--vscode-panelSectionHeader-border, var(--vscode-panel-border, var(--vscode-surface-border)));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* The first section in a vertical stack has no separator above it. Horizontally
|
|
57
|
+
* arranged panes are the only section in their column, so their left pane border
|
|
58
|
+
* separates columns without an additional horizontal line above the header.
|
|
59
|
+
*/
|
|
60
|
+
.modern-ui .monaco-pane-view .split-view-view:first-of-type > .pane > .pane-header::before,
|
|
61
|
+
.modern-ui .monaco-pane-view .pane.horizontal > .pane-header::before {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.modern-ui :is(.part.sidebar, .part.auxiliarybar) .monaco-pane-view .pane,
|
|
66
|
+
.modern-ui.floating-panels :is(.part.sidebar, .part.auxiliarybar) {
|
|
67
|
+
background-color: var(--vscode-sideBar-background) !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.modern-ui .part.panel .monaco-pane-view .pane {
|
|
71
|
+
background-color: var(--vscode-panel-background) !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Round the header corners and let the header match its surface at rest so it
|
|
75
|
+
* reads as part of the panel / side bar body rather than a tinted strip. The
|
|
76
|
+
* inline header background from the PaneView is overridden here; the hover tint
|
|
77
|
+
* below still wins via its higher specificity. */
|
|
78
|
+
.modern-ui .monaco-pane-view .pane > .pane-header {
|
|
79
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.modern-ui :is(.part.sidebar, .part.auxiliarybar) .monaco-pane-view .pane > .pane-header {
|
|
83
|
+
background-color: var(--vscode-sideBar-background) !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.modern-ui .part.panel .monaco-pane-view .pane > .pane-header {
|
|
87
|
+
background-color: var(--vscode-panel-background) !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/*
|
|
91
|
+
* Add vertical breathing room to the headers. Keep this value in sync with
|
|
92
|
+
* MODERN_UI_PANE_HEADER_SIZE so CSS presentation and split-view layout agree.
|
|
93
|
+
*/
|
|
94
|
+
.modern-ui .monaco-pane-view {
|
|
95
|
+
--pane-header-size: var(--vscode-spacing-size280, 28px);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Tint the header background on hover (overrides the inline header background). */
|
|
99
|
+
.modern-ui .monaco-pane-view .pane > .pane-header:hover {
|
|
100
|
+
background-color: var(--vscode-list-hoverBackground) !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/*
|
|
104
|
+
* Remove the focus outline when the header is focused by pointer (click). The
|
|
105
|
+
* outline comes from the global `.monaco-workbench [tabindex="0"]:focus` rule.
|
|
106
|
+
* `:not(:focus-visible)` keeps the visible focus ring for keyboard users.
|
|
107
|
+
*/
|
|
108
|
+
.modern-ui .monaco-pane-view .pane > .pane-header:focus:not(:focus-visible) {
|
|
109
|
+
outline: none !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/*
|
|
113
|
+
* The global focus rule uses `outline-offset: -1px`, which puts the ring's top
|
|
114
|
+
* stroke right on the 1px section separator so it looks clipped. Negate the
|
|
115
|
+
* smallest spacing token so the keyboard focus ring clears the separator.
|
|
116
|
+
*/
|
|
117
|
+
.modern-ui .monaco-pane-view .pane > .pane-header:focus {
|
|
118
|
+
outline-offset: calc(var(--vscode-spacing-size20) * -1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.modern-ui.monaco-workbench .part > .title > .title-actions .start-debug-action-item {
|
|
122
|
+
min-width: 36px;
|
|
123
|
+
}
|