@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
package/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
5
5
|
import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
6
6
|
import getServiceOverride$1 from '@codingame/monaco-vscode-files-service-override';
|
|
7
7
|
import './vscode/src/vs/workbench/contrib/themes/browser/themes.contribution.js';
|
|
8
|
+
import './vscode/src/vs/workbench/contrib/modernUI/browser/modernUI.contribution.js';
|
|
8
9
|
|
|
9
10
|
class StandaloneWorkbenchThemeService extends WorkbenchThemeService {
|
|
10
11
|
registerEditorContainer() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-theme-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - theme service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "37.1.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -0,0 +1,301 @@
|
|
|
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
|
+
* Activity Bar — replace the active (selected) item's left highlight border
|
|
8
|
+
* with a filled, rounded background that sits behind the icon.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* Drop the 2px left border indicator on the active item. */
|
|
12
|
+
.modern-ui .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator:before {
|
|
13
|
+
border-left: none !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* The indicator owns the inset background for both active and hovered items. */
|
|
17
|
+
.modern-ui .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator,
|
|
18
|
+
.modern-ui .activitybar > .content:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) :not(.monaco-menu) > .monaco-action-bar .action-item:not(.checked):hover .active-item-indicator {
|
|
19
|
+
z-index: 0;
|
|
20
|
+
top: 0;
|
|
21
|
+
left: calc((var(--activity-bar-width, 36px) - var(--activity-bar-action-height, 36px) + 4px) / 2);
|
|
22
|
+
width: calc(var(--activity-bar-action-height, 36px) - 4px);
|
|
23
|
+
height: calc(var(--activity-bar-action-height, 36px) - 4px);
|
|
24
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.modern-ui .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator {
|
|
28
|
+
background-color: var(--vscode-modernActivityBarItem-activeBackground);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.modern-ui .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .action-label.codicon {
|
|
32
|
+
color: var(--vscode-modernActivityBarItem-activeForeground) !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.modern-ui .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .action-label.uri-icon {
|
|
36
|
+
background-color: var(--vscode-modernActivityBarItem-activeForeground) !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.modern-ui .activitybar > .content:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) :not(.monaco-menu) > .monaco-action-bar .action-item:not(.checked):hover .active-item-indicator {
|
|
40
|
+
background-color: var(--vscode-modernActivityBarItem-hoverBackground);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.modern-ui .activitybar > .content:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) :not(.monaco-menu) > .monaco-action-bar .action-item:not(.checked):hover .action-label.codicon {
|
|
44
|
+
color: var(--vscode-modernActivityBarItem-hoverForeground) !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.modern-ui .activitybar > .content:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) :not(.monaco-menu) > .monaco-action-bar .action-item:not(.checked):hover .action-label.uri-icon {
|
|
48
|
+
background-color: var(--vscode-modernActivityBarItem-hoverForeground) !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Compact: minimal horizontal inset — 24×24px box centered in the 28px item. */
|
|
52
|
+
.modern-ui .activitybar.compact > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator,
|
|
53
|
+
.modern-ui .activitybar.compact > .content:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) :not(.monaco-menu) > .monaco-action-bar .action-item:not(.checked):hover .active-item-indicator {
|
|
54
|
+
width: calc(var(--activity-bar-action-height, 28px) - 4px);
|
|
55
|
+
height: calc(var(--activity-bar-action-height, 28px) - 4px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Keep the compact application menu on the same control tier and icon ramp as adjacent activity targets. */
|
|
59
|
+
.modern-ui.monaco-workbench .activitybar .menubar.compact {
|
|
60
|
+
height: var(--activity-bar-action-height, 36px);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.modern-ui.monaco-workbench .activitybar .menubar.compact > .menubar-menu-button {
|
|
64
|
+
justify-content: center;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.modern-ui.monaco-workbench .activitybar .menubar.compact > .menubar-menu-button > .menubar-menu-items-holder > .monaco-scrollable-element > .scrollbar.vertical {
|
|
68
|
+
z-index: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.modern-ui.monaco-workbench .activitybar .menubar.compact > .menubar-menu-button:is(:focus, .open) {
|
|
72
|
+
background-color: transparent;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.modern-ui.monaco-workbench .activitybar .menubar.compact .toolbar-toggle-more {
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
width: calc(var(--activity-bar-action-height, 36px) - var(--vscode-spacing-size40));
|
|
78
|
+
height: calc(var(--activity-bar-action-height, 36px) - var(--vscode-spacing-size40));
|
|
79
|
+
padding: 0;
|
|
80
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
81
|
+
font-size: var(--vscode-codiconFontSize);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.modern-ui.monaco-workbench .activitybar .menubar.compact:not(:focus-within) > .menubar-menu-button:hover .toolbar-toggle-more {
|
|
85
|
+
color: var(--vscode-modernActivityBarItem-hoverForeground);
|
|
86
|
+
background-color: var(--vscode-modernActivityBarItem-hoverBackground);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.modern-ui.monaco-workbench .activitybar .menubar.compact > .menubar-menu-button:is(:focus, .open) .toolbar-toggle-more {
|
|
90
|
+
color: var(--vscode-modernActivityBarItem-activeForeground);
|
|
91
|
+
background-color: var(--vscode-modernActivityBarItem-activeBackground);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:is(.hc-black, .hc-light).modern-ui .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked .active-item-indicator {
|
|
95
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
96
|
+
background-color: transparent;
|
|
97
|
+
outline: var(--vscode-strokeThickness) solid var(--vscode-contrastActiveBorder);
|
|
98
|
+
outline-offset: calc(-1 * var(--vscode-strokeThickness));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:is(.hc-black, .hc-light).modern-ui.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-item.checked:not(:focus) .active-item-indicator {
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:is(.hc-black, .hc-light).modern-ui .activitybar > .content:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) :not(.monaco-menu) > .monaco-action-bar .action-item:not(.checked):hover .active-item-indicator {
|
|
106
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
107
|
+
background-color: transparent;
|
|
108
|
+
outline: var(--vscode-strokeThickness) dashed var(--vscode-contrastActiveBorder);
|
|
109
|
+
outline-offset: calc(-1 * var(--vscode-strokeThickness));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/*
|
|
113
|
+
* Horizontal Activity Bar — top / bottom position on the primary sidebar, panel
|
|
114
|
+
* (bottom) and auxiliary bar. When the activity bar is moved to the top or
|
|
115
|
+
* bottom of a part, its composites render in a horizontal `.composite-bar`
|
|
116
|
+
* inside the part's header/footer (`.pane-composite-part > .header-or-footer`)
|
|
117
|
+
* rather than the dedicated activity bar. By default the active item is marked
|
|
118
|
+
* with a thin top/bottom border line plus a flat, full-bleed fill. Mirror the
|
|
119
|
+
* default (side) treatment so both layouts feel consistent: drop the line and
|
|
120
|
+
* the flat fill, and paint an inset, rounded background box behind the icon for
|
|
121
|
+
* the active and hovered items.
|
|
122
|
+
*
|
|
123
|
+
* The box geometry is symmetric (centered) within the ~35px tall icon item so
|
|
124
|
+
* it reads as a soft, selected chip — the horizontal analogue of the square box
|
|
125
|
+
* used in the default position.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/*
|
|
129
|
+
* Keep the icon (and its badge) above the background box. Unlike the dedicated
|
|
130
|
+
* activity bar, the composite-bar label is not promoted in the stacking order,
|
|
131
|
+
* so lift it explicitly; otherwise the indicator (appended last in the DOM)
|
|
132
|
+
* would paint over the icon.
|
|
133
|
+
*/
|
|
134
|
+
.modern-ui .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon :is(.action-label, .badge) {
|
|
135
|
+
position: relative;
|
|
136
|
+
z-index: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Drop the flat, full-bleed active fill — it is replaced by the rounded box. */
|
|
140
|
+
.modern-ui .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon.checked {
|
|
141
|
+
background-color: transparent;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/*
|
|
145
|
+
* Drop the thin top/bottom active border line. It is kept while the item is
|
|
146
|
+
* keyboard focused so the focus indicator still shows.
|
|
147
|
+
*/
|
|
148
|
+
.modern-ui .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon.checked:not(:focus) .active-item-indicator:before {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Active item: inset, rounded background box behind the icon. */
|
|
153
|
+
.modern-ui .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) > .composite-bar > .monaco-action-bar .action-item.icon.checked:not(:active) .active-item-indicator {
|
|
154
|
+
z-index: 0;
|
|
155
|
+
top: 50%;
|
|
156
|
+
left: var(--vscode-spacing-size20);
|
|
157
|
+
width: 24px;
|
|
158
|
+
height: 24px;
|
|
159
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
160
|
+
transform: translateY(-50%);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/*
|
|
164
|
+
* Hover item: identical rounded box. Skipped on the active item (which already
|
|
165
|
+
* shows the box) and while dragging (the action-item `::before`/`::after` are
|
|
166
|
+
* reused for the drop-line indicators).
|
|
167
|
+
*/
|
|
168
|
+
.modern-ui .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container:not(.dragged-over):not(.dragged-over-head):not(.dragged-over-tail) > .composite-bar > .monaco-action-bar .action-item.icon:not(.checked):not(:active):hover .active-item-indicator {
|
|
169
|
+
z-index: 0;
|
|
170
|
+
top: 50%;
|
|
171
|
+
left: var(--vscode-spacing-size20);
|
|
172
|
+
width: 24px;
|
|
173
|
+
height: 24px;
|
|
174
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
175
|
+
transform: translateY(-50%);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.modern-ui .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon .action-label.codicon::before,
|
|
179
|
+
.modern-ui.monaco-workbench .part.sidebar > .header-or-footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item .action-label::before,
|
|
180
|
+
.modern-ui.monaco-workbench .part.auxiliarybar > .header-or-footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item .action-label::before {
|
|
181
|
+
left: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.modern-ui .pane-composite-part.auxiliarybar > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon .action-label.uri-icon {
|
|
185
|
+
top: 0px;
|
|
186
|
+
left: 0px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Render the composite icons at the standard 16px size. */
|
|
190
|
+
.modern-ui .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon .action-label.codicon {
|
|
191
|
+
font-size: 16px;
|
|
192
|
+
line-height: 12px;
|
|
193
|
+
font-weight: var(--vscode-fontWeight-regular);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/*
|
|
197
|
+
* Size the "Additional Views" overflow control (`.codicon-more`) to a 24px
|
|
198
|
+
* square so it matches the other 24px composite controls. `box-sizing` keeps the
|
|
199
|
+
* 16px glyph centered within the box.
|
|
200
|
+
*/
|
|
201
|
+
.modern-ui.monaco-workbench .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-label.codicon-more {
|
|
202
|
+
box-sizing: border-box;
|
|
203
|
+
width: 24px;
|
|
204
|
+
height: 24px;
|
|
205
|
+
color: var(--vscode-icon-foreground) !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/*
|
|
209
|
+
* Center the 24px overflow control within its item. The item is wider than the
|
|
210
|
+
* label where its width is not pinned to 24px, so without this the label sits at
|
|
211
|
+
* the flex start (left) and the glyph reads as horizontally off-center.
|
|
212
|
+
*/
|
|
213
|
+
.modern-ui.monaco-workbench .part.auxiliarybar > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-label.codicon-more::before {
|
|
214
|
+
position: relative;
|
|
215
|
+
left: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/*
|
|
219
|
+
* Drop the divider between the horizontal activity bar and the part body. The
|
|
220
|
+
* rounded box gives the active item its own shape, so the full-width rule under
|
|
221
|
+
* the top (header) bar — and over the bottom (footer) bar — is removed for the
|
|
222
|
+
* cleaner, default-position look. `.monaco-workbench` is added to outrank the
|
|
223
|
+
* base part rule.
|
|
224
|
+
*/
|
|
225
|
+
.modern-ui.monaco-workbench .pane-composite-part:not(.empty) > .header {
|
|
226
|
+
border-bottom: none;
|
|
227
|
+
overflow: visible;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.modern-ui.monaco-workbench .pane-composite-part:not(.empty) > .footer {
|
|
231
|
+
border-top: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.modern-ui.monaco-workbench .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon .badge.compact {
|
|
235
|
+
overflow: visible;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* When badge-content is empty (icon-only via ::before, e.g. the update badge), use uniform padding so it stays circular. */
|
|
239
|
+
.modern-ui.monaco-workbench .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .badge .badge-content:empty {
|
|
240
|
+
padding: var(--vscode-spacing-size20);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.modern-ui.monaco-workbench .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon .badge.compact .badge-content:empty {
|
|
244
|
+
padding: 0;
|
|
245
|
+
border-radius: var(--vscode-cornerRadius-circle);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.modern-ui.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content {
|
|
249
|
+
top: 18px;
|
|
250
|
+
right: 3px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.modern-ui.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content:empty {
|
|
254
|
+
padding: 0;
|
|
255
|
+
border-radius: var(--vscode-cornerRadius-circle);
|
|
256
|
+
width: 16px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.modern-ui.monaco-workbench .activitybar.compact > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content {
|
|
260
|
+
top: 13px;
|
|
261
|
+
right: 3px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.modern-ui.monaco-workbench .activitybar.compact > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content:empty {
|
|
265
|
+
padding: 0;
|
|
266
|
+
border-radius: var(--vscode-cornerRadius-circle);
|
|
267
|
+
width: 13px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.modern-ui.monaco-workbench .pane-composite-part > .header-or-footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:focus .active-item-indicator {
|
|
271
|
+
overflow: visible;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.modern-ui.monaco-workbench .pane-composite-part > .header-or-footer.header > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:focus .active-item-indicator:before {
|
|
275
|
+
bottom: 8px;
|
|
276
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.modern-ui.monaco-workbench .pane-composite-part > .header-or-footer.header > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.checked:focus .active-item-indicator:before {
|
|
280
|
+
bottom: 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.modern-ui.monaco-workbench .pane-composite-part > .header-or-footer.footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item:focus .active-item-indicator:before {
|
|
284
|
+
border-radius: var(--vscode-cornerRadius-small);
|
|
285
|
+
top: 3px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.modern-ui.monaco-workbench .pane-composite-part > .header-or-footer.footer > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.checked:focus .active-item-indicator:before {
|
|
289
|
+
top: 0;
|
|
290
|
+
}
|
|
291
|
+
.modern-ui.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .profile-badge .profile-text-overlay {
|
|
292
|
+
top: 16px;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.modern-ui.monaco-workbench .activitybar.compact > .content :not(.monaco-menu) > .monaco-action-bar .profile-badge .profile-text-overlay {
|
|
296
|
+
top: 10px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.modern-ui .pane-composite-part > :is(.title, .header-or-footer) > .composite-bar-container > .composite-bar > .monaco-action-bar .action-item.icon:not(.checked) .action-label.codicon.codicon-more:hover {
|
|
300
|
+
background: transparent;
|
|
301
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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: "Agents Window Command Center".
|
|
8
|
+
*
|
|
9
|
+
* Mirrors the Agents window title-bar styling (see
|
|
10
|
+
* src/vs/sessions/contrib/sessions/browser/media/sessionsTitleBarWidget.css and
|
|
11
|
+
* src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css):
|
|
12
|
+
* the command center and agent-status input sit on a transparent background at
|
|
13
|
+
* rest and only reveal the command-center active background/border on hover,
|
|
14
|
+
* instead of carrying a solid fill the whole time.
|
|
15
|
+
*
|
|
16
|
+
* All rules are gated behind the `.modern-ui` class, which
|
|
17
|
+
* the ModernUIContribution toggles onto the workbench container(s) when
|
|
18
|
+
* the `workbench.experimental.modernUI` (Modern UI Update) setting is enabled.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/* Keep unavailable navigation actions on the contributed command-center foreground. */
|
|
22
|
+
.modern-ui.monaco-workbench .part.titlebar .command-center > .monaco-toolbar > .monaco-action-bar > .actions-container > .action-item > .action-label:is(.codicon-arrow-left, .codicon-arrow-right) {
|
|
23
|
+
color: var(--vscode-commandCenter-foreground);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* Agent status pill and its input area. Both default to the indicator
|
|
28
|
+
* background; clear it so they match the transparent command center. Their own
|
|
29
|
+
* `:hover` rules already reveal the active background, and the connected
|
|
30
|
+
* `session-mode` pill keeps its active fill (excluded below).
|
|
31
|
+
*/
|
|
32
|
+
.modern-ui .agent-status-pill:not(.session-mode),
|
|
33
|
+
.modern-ui .agent-status-pill .agent-status-input-area {
|
|
34
|
+
background-color: transparent !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
* Connected badge segments (sparkle / chat toggle dropdown, status sections and
|
|
39
|
+
* the command-center toolbar) also default to the indicator background. Clear
|
|
40
|
+
* it so the whole pill reads transparent at rest; each segment's own `:hover`
|
|
41
|
+
* rule still reveals the active background, and the `filtered` state keeps its
|
|
42
|
+
* own active fill (excluded below).
|
|
43
|
+
*/
|
|
44
|
+
.modern-ui .agent-status-badge-section:not(.filtered),
|
|
45
|
+
.modern-ui .agent-status-command-center-toolbar {
|
|
46
|
+
background-color: transparent !important;
|
|
47
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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: "Editor Border".
|
|
8
|
+
*
|
|
9
|
+
* Frames the editor area as a distinct card by drawing a subtle 1px border with
|
|
10
|
+
* rounded corners around the whole editor part (tabs, breadcrumbs and editor
|
|
11
|
+
* body). This separates the editor from the surrounding chrome (side bar,
|
|
12
|
+
* panel, auxiliary bar) and mirrors the card-like editor treatment used in the
|
|
13
|
+
* Agents window (src/vs/sessions/browser/media/style.css).
|
|
14
|
+
*
|
|
15
|
+
* The border is drawn with `box-sizing: border-box` so it sits inside the area
|
|
16
|
+
* the grid already allocates to the editor part — no margin is added, avoiding a
|
|
17
|
+
* relayout. `overflow: hidden` clips the editor content to the rounded corners.
|
|
18
|
+
* The floating editor window part (`.modal-editor-part`) is excluded.
|
|
19
|
+
*
|
|
20
|
+
* All rules are gated behind the `.modern-ui` class, which the
|
|
21
|
+
* ModernUIContribution toggles onto the workbench container(s) when the
|
|
22
|
+
* `workbench.experimental.modernUI` (Modern UI Update) setting is enabled.
|
|
23
|
+
* Without that class these rules never apply.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
.modern-ui .monaco-grid-view .part.editor:not(.modal-editor-part) {
|
|
27
|
+
border: var(--vscode-strokeThickness) solid var(--vscode-editorGroup-border, color-mix(in srgb, var(--vscode-foreground) 12%, transparent));
|
|
28
|
+
border-radius: var(--vscode-cornerRadius-large);
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
background-color: var(--vscode-editor-background);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.monaco-workbench.modern-ui.floating-panels.modern-ui-compact > .monaco-grid-view .part.editor:not(.modal-editor-part) {
|
|
35
|
+
border-radius: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.monaco-workbench.modern-ui.floating-panels.modern-ui-compact > .monaco-grid-view .part.editor.floating-editor-outer-left.floating-editor-outer-top:not(.modal-editor-part) {
|
|
39
|
+
border-top-left-radius: var(--vscode-cornerRadius-large);
|
|
40
|
+
--modern-ui-floating-card-corner-top-left-border-image: radial-gradient(circle at bottom right, transparent calc(var(--vscode-cornerRadius-large) - var(--vscode-strokeThickness) - 0.5px), var(--modern-ui-floating-card-stroke-color) calc(var(--vscode-cornerRadius-large) - var(--vscode-strokeThickness)), var(--modern-ui-floating-card-stroke-color) var(--vscode-cornerRadius-large), transparent calc(var(--vscode-cornerRadius-large) + 0.5px));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.monaco-workbench.modern-ui.floating-panels.modern-ui-compact > .monaco-grid-view .part.editor.floating-editor-outer-right.floating-editor-outer-top:not(.modal-editor-part) {
|
|
44
|
+
border-top-right-radius: var(--vscode-cornerRadius-large);
|
|
45
|
+
--modern-ui-floating-card-corner-top-right-border-image: radial-gradient(circle at bottom left, transparent calc(var(--vscode-cornerRadius-large) - var(--vscode-strokeThickness) - 0.5px), var(--modern-ui-floating-card-stroke-color) calc(var(--vscode-cornerRadius-large) - var(--vscode-strokeThickness)), var(--modern-ui-floating-card-stroke-color) var(--vscode-cornerRadius-large), transparent calc(var(--vscode-cornerRadius-large) + 0.5px));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.monaco-workbench.modern-ui.floating-panels.modern-ui-compact > .monaco-grid-view .part.editor.floating-editor-outer-left.floating-editor-outer-bottom:not(.modal-editor-part) {
|
|
49
|
+
border-bottom-left-radius: var(--vscode-cornerRadius-large);
|
|
50
|
+
--modern-ui-floating-card-corner-bottom-left-border-image: radial-gradient(circle at top right, transparent calc(var(--vscode-cornerRadius-large) - var(--vscode-strokeThickness) - 0.5px), var(--modern-ui-floating-card-stroke-color) calc(var(--vscode-cornerRadius-large) - var(--vscode-strokeThickness)), var(--modern-ui-floating-card-stroke-color) var(--vscode-cornerRadius-large), transparent calc(var(--vscode-cornerRadius-large) + 0.5px));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.monaco-workbench.modern-ui.floating-panels.modern-ui-compact > .monaco-grid-view .part.editor.floating-editor-outer-right.floating-editor-outer-bottom:not(.modal-editor-part) {
|
|
54
|
+
border-bottom-right-radius: var(--vscode-cornerRadius-large);
|
|
55
|
+
--modern-ui-floating-card-corner-bottom-right-border-image: radial-gradient(circle at top left, transparent calc(var(--vscode-cornerRadius-large) - var(--vscode-strokeThickness) - 0.5px), var(--modern-ui-floating-card-stroke-color) calc(var(--vscode-cornerRadius-large) - var(--vscode-strokeThickness)), var(--modern-ui-floating-card-stroke-color) var(--vscode-cornerRadius-large), transparent calc(var(--vscode-cornerRadius-large) + 0.5px));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*
|
|
59
|
+
* The editor part paints a separator shadow on its leading edge (via the
|
|
60
|
+
* `::after` overlay) to set itself apart from the side bar. With the explicit
|
|
61
|
+
* border above that shadow is redundant and would double up, so suppress it.
|
|
62
|
+
*/
|
|
63
|
+
.modern-ui .monaco-grid-view .part.editor:not(.modal-editor-part)::after {
|
|
64
|
+
box-shadow: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Keep the editor frame aligned with the shared floating-surface border by default. */
|
|
68
|
+
.monaco-workbench.modern-ui.floating-panels .part.editor {
|
|
69
|
+
border-color: var(--modern-ui-editor-border-color, var(--vscode-editor-border, var(--vscode-surface-border, var(--vscode-widget-border, transparent)))) !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.monaco-workbench.modern-ui.floating-panels.modern-ui-compact .part.editor {
|
|
73
|
+
--modern-ui-floating-card-stroke-color: var(--vscode-editor-border, var(--vscode-surface-border, var(--vscode-widget-border, transparent)));
|
|
74
|
+
--modern-ui-floating-card-left-border-color: transparent;
|
|
75
|
+
--modern-ui-floating-card-top-border-color: transparent;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.monaco-workbench.modern-ui.floating-panels.modern-ui-compact .part.editor.floating-editor-outer-left {
|
|
79
|
+
--modern-ui-floating-card-left-border-color: var(--modern-ui-floating-card-stroke-color);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.monaco-workbench.modern-ui.floating-panels.modern-ui-compact .part.editor.floating-editor-outer-top {
|
|
83
|
+
--modern-ui-floating-card-top-border-color: var(--modern-ui-floating-card-stroke-color);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.monaco-workbench.modern-ui .chat-view-position-left > .voice-agent-controls-wrapper {
|
|
87
|
+
.agent-sessions-container {
|
|
88
|
+
border-right-color: var(--vscode-surface-border, color-mix(in srgb, var(--vscode-foreground) 12%, transparent)) !important;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.monaco-workbench.modern-ui .chat-view-position-right > .voice-agent-controls-wrapper {
|
|
93
|
+
.agent-sessions-container {
|
|
94
|
+
border-left-color: var(--vscode-surface-border, color-mix(in srgb, var(--vscode-foreground) 12%, transparent)) !important;
|
|
95
|
+
}
|
|
96
|
+
}
|