@codingame/monaco-vscode-view-title-bar-service-override 37.1.0 → 37.3.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/package.json +6 -2
- package/session.d.ts +2 -0
- package/session.js +16 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +4 -4
- package/vscode/src/vs/workbench/browser/media/code-icon.svg +0 -1
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css +0 -541
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-title-bar-service-override",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-title-bar service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "37.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
"types": "./vscode/src/*.d.ts",
|
|
32
32
|
"default": "./vscode/src/*.js"
|
|
33
33
|
},
|
|
34
|
+
"./session": {
|
|
35
|
+
"types": "./session.d.ts",
|
|
36
|
+
"default": "./session.js"
|
|
37
|
+
},
|
|
34
38
|
"./*": {
|
|
35
39
|
"types": "./*.d.ts",
|
|
36
40
|
"default": "./*.js"
|
package/session.d.ts
ADDED
package/session.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
+
import { ITitleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/title/browser/titleService.service';
|
|
4
|
+
import { registerServiceInitializePostParticipant } from '@codingame/monaco-vscode-api/lifecycle';
|
|
5
|
+
import { TitleService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/browser/parts/titlebarPart';
|
|
6
|
+
|
|
7
|
+
function getServiceOverride() {
|
|
8
|
+
return {
|
|
9
|
+
[ITitleService.toString()]: new SyncDescriptor(TitleService, [], false)
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
registerServiceInitializePostParticipant(async (accessor) => {
|
|
13
|
+
accessor.get(ITitleService);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { getServiceOverride as default };
|
|
@@ -208,13 +208,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
208
208
|
label = that._windowTitle.fileName ?? label;
|
|
209
209
|
}
|
|
210
210
|
if (!label) {
|
|
211
|
-
label = ( localize(
|
|
211
|
+
label = ( localize(6187, "Search"));
|
|
212
212
|
}
|
|
213
213
|
if (prefix) {
|
|
214
|
-
label = ( localize(
|
|
214
|
+
label = ( localize(6188, "{0} {1}", prefix, label));
|
|
215
215
|
}
|
|
216
216
|
if (suffix) {
|
|
217
|
-
label = ( localize(
|
|
217
|
+
label = ( localize(6189, "{0} {1}", label, suffix));
|
|
218
218
|
}
|
|
219
219
|
return label.replaceAll(/\r\n|\r|\n/g, "⏎");
|
|
220
220
|
}
|
|
@@ -235,13 +235,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
235
235
|
getTooltip() {
|
|
236
236
|
const kb = this._keybindingService.lookupKeybinding(this.action.id)?.getLabel();
|
|
237
237
|
const title = kb ? ( localize(
|
|
238
|
-
|
|
238
|
+
6190,
|
|
239
239
|
"Search {0} ({1}) — {2}",
|
|
240
240
|
this._windowTitle.workspaceName,
|
|
241
241
|
kb,
|
|
242
242
|
this._windowTitle.value
|
|
243
243
|
)) : ( localize(
|
|
244
|
-
|
|
244
|
+
6191,
|
|
245
245
|
"Search {0} — {1}",
|
|
246
246
|
this._windowTitle.workspaceName,
|
|
247
247
|
this._windowTitle.value
|
|
@@ -252,7 +252,7 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
252
252
|
CommandCenterCenterViewItem = CommandCenterCenterViewItem_1 = ( __decorate([( __param(3, IHoverService)), ( __param(4, IKeybindingService)), ( __param(5, IInstantiationService)), ( __param(6, IEditorGroupsService)), ( __param(7, IConfigurationService))], CommandCenterCenterViewItem));
|
|
253
253
|
MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
|
|
254
254
|
submenu: MenuId.CommandCenterCenter,
|
|
255
|
-
title: ( localize(
|
|
255
|
+
title: ( localize(6192, "Command Center")),
|
|
256
256
|
icon: Codicon.shield,
|
|
257
257
|
order: 101
|
|
258
258
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
|
-
import * as titlebarpart from '
|
|
4
|
+
import * as titlebarpart from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/titlebar/media/titlebarpart.css';
|
|
5
5
|
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
6
|
import { MultiWindowParts, Part } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/part';
|
|
7
7
|
import { isWCOEnabled, getWCOTitlebarAreaRect, getZoomFactor } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
|
|
@@ -56,7 +56,7 @@ import { workbenchMenuCloseAnimation, WORKBENCH_MENU_MOTION_CLASS } from '@codin
|
|
|
56
56
|
import { AnchorAlignment } from '@codingame/monaco-vscode-api/vscode/vs/base/common/layout';
|
|
57
57
|
|
|
58
58
|
var AuxiliaryBrowserTitlebarPart_1;
|
|
59
|
-
registerCss(titlebarpart);
|
|
59
|
+
registerCss(titlebarpart, 0);
|
|
60
60
|
let BrowserTitleService = class BrowserTitleService extends MultiWindowParts {
|
|
61
61
|
constructor(instantiationService, storageService, themeService) {
|
|
62
62
|
super("workbench.titleService", themeService, storageService);
|
|
@@ -78,7 +78,7 @@ let BrowserTitleService = class BrowserTitleService extends MultiWindowParts {
|
|
|
78
78
|
constructor() {
|
|
79
79
|
super({
|
|
80
80
|
id: `workbench.action.focusTitleBar`,
|
|
81
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(6229, "Focus Title Bar")),
|
|
82
82
|
category: Categories.View,
|
|
83
83
|
f1: true,
|
|
84
84
|
precondition: TitleBarVisibleContext
|
|
@@ -524,7 +524,7 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
|
|
|
524
524
|
this.instantiationService.createInstance(WorkbenchToolBar, this.actionToolBarElement, {
|
|
525
525
|
contextMenu: MenuId.TitleBarContext,
|
|
526
526
|
orientation: ActionsOrientation.HORIZONTAL,
|
|
527
|
-
ariaLabel: ( localize(
|
|
527
|
+
ariaLabel: ( localize(6230, "Title actions")),
|
|
528
528
|
getKeyBinding: action => this.getKeybinding(action),
|
|
529
529
|
overflowBehavior: {
|
|
530
530
|
maxItems: 12,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><style>.st0{fill:#f6f6f6;fill-opacity:0}.st1{fill:#fff}.st2{fill:#167abf}</style><path class="st0" d="M1024 1024H0V0h1024v1024z"/><path class="st1" d="M1024 85.333v853.333H0V85.333h1024z"/><path class="st2" d="M0 85.333h298.667v853.333H0V85.333zm1024 0v853.333H384V85.333h640zm-554.667 160h341.333v-64H469.333v64zm341.334 533.334H469.333v64h341.333l.001-64zm128-149.334H597.333v64h341.333l.001-64zm0-149.333H597.333v64h341.333l.001-64zm0-149.333H597.333v64h341.333l.001-64z"/></svg>
|
|
@@ -1,541 +0,0 @@
|
|
|
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
|
-
/* Part Element */
|
|
7
|
-
.monaco-workbench .part.titlebar {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
box-shadow: var(--vscode-shadow-md);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.monaco-workbench.mac .part.titlebar {
|
|
14
|
-
flex-direction: row-reverse;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* Root Container */
|
|
18
|
-
.monaco-workbench .part.titlebar > .titlebar-container {
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
flex-shrink: 1;
|
|
22
|
-
flex-grow: 1;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
user-select: none;
|
|
26
|
-
-webkit-user-select: none;
|
|
27
|
-
display: flex;
|
|
28
|
-
height: 100%;
|
|
29
|
-
width: 100%;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/* Account for zooming */
|
|
33
|
-
.monaco-workbench .part.titlebar > .titlebar-container.counter-zoom {
|
|
34
|
-
zoom: calc(1.0 / var(--zoom-factor));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* Platform specific root element */
|
|
38
|
-
.monaco-workbench.mac .part.titlebar > .titlebar-container {
|
|
39
|
-
line-height: 22px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.monaco-workbench.web .part.titlebar > .titlebar-container,
|
|
43
|
-
.monaco-workbench.windows .part.titlebar > .titlebar-container,
|
|
44
|
-
.monaco-workbench.linux .part.titlebar > .titlebar-container {
|
|
45
|
-
line-height: 22px;
|
|
46
|
-
justify-content: left;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.monaco-workbench.web.safari .part.titlebar,
|
|
50
|
-
.monaco-workbench.web.safari .part.titlebar > .titlebar-container {
|
|
51
|
-
/* Must be scoped to safari due to #148851 */
|
|
52
|
-
/* Is required in safari due to #149476 */
|
|
53
|
-
overflow: visible;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* Draggable region */
|
|
57
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-drag-region {
|
|
58
|
-
top: 0;
|
|
59
|
-
left: 0;
|
|
60
|
-
display: block;
|
|
61
|
-
position: absolute;
|
|
62
|
-
width: 100%;
|
|
63
|
-
height: 100%;
|
|
64
|
-
-webkit-app-region: drag;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-left,
|
|
68
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center,
|
|
69
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right {
|
|
70
|
-
display: flex;
|
|
71
|
-
height: 100%;
|
|
72
|
-
align-items: center;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.monaco-workbench .part.titlebar > .titlebar-container.has-center > .titlebar-left {
|
|
76
|
-
order: 0;
|
|
77
|
-
width: 20%;
|
|
78
|
-
flex-grow: 2;
|
|
79
|
-
justify-content: flex-start;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.monaco-workbench .part.titlebar > .titlebar-container.has-center > .titlebar-center {
|
|
83
|
-
order: 1;
|
|
84
|
-
width: 60%;
|
|
85
|
-
max-width: fit-content;
|
|
86
|
-
min-width: 0px;
|
|
87
|
-
margin: 0 10px;
|
|
88
|
-
/* flex-shrink: 10; */
|
|
89
|
-
justify-content: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.monaco-workbench .part.titlebar > .titlebar-container.has-center > .titlebar-right {
|
|
93
|
-
order: 2;
|
|
94
|
-
width: 20%;
|
|
95
|
-
min-width: min-content;
|
|
96
|
-
flex-grow: 2;
|
|
97
|
-
justify-content: flex-end;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.monaco-workbench .part.titlebar > .titlebar-container:not(.has-center) > .titlebar-left {
|
|
101
|
-
flex: 1 1 0%;
|
|
102
|
-
min-width: 0;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.monaco-workbench .part.titlebar > .titlebar-container:not(.has-center) > .titlebar-center {
|
|
106
|
-
display: none;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.monaco-workbench .part.titlebar > .titlebar-container:not(.has-center) > .titlebar-right {
|
|
110
|
-
flex: 0 0 auto;
|
|
111
|
-
padding-left: 16px; /* ensure there is some space between title and controls */
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/* Window title text */
|
|
115
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title {
|
|
116
|
-
flex: 0 1 auto;
|
|
117
|
-
font-size: 12px;
|
|
118
|
-
overflow: hidden;
|
|
119
|
-
white-space: nowrap;
|
|
120
|
-
text-overflow: ellipsis;
|
|
121
|
-
margin-left: auto;
|
|
122
|
-
margin-right: auto;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.monaco-workbench.web .part.titlebar > .titlebar-container > .titlebar-center > .window-title,
|
|
126
|
-
.monaco-workbench.windows .part.titlebar > .titlebar-container > .titlebar-center > .window-title,
|
|
127
|
-
.monaco-workbench.linux .part.titlebar > .titlebar-container > .titlebar-center > .window-title {
|
|
128
|
-
cursor: default;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.monaco-workbench.linux .part.titlebar > .titlebar-container > .titlebar-center > .window-title {
|
|
132
|
-
font-size: inherit;
|
|
133
|
-
/* see #55435 */
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.monaco-workbench .part.titlebar > .titlebar-container .monaco-toolbar .actions-container {
|
|
137
|
-
gap: 4px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* Window Title Menu */
|
|
141
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center {
|
|
142
|
-
z-index: 2500;
|
|
143
|
-
-webkit-app-region: no-drag;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center.hide {
|
|
147
|
-
visibility: hidden;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.monaco-workbench .part.titlebar.inactive > * {
|
|
151
|
-
opacity: 0.6;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center > .monaco-toolbar > .monaco-action-bar > .actions-container > .action-item > .action-label,
|
|
155
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center > .monaco-toolbar > .monaco-action-bar > .actions-container > .action-item.monaco-dropdown-with-primary .action-label {
|
|
156
|
-
color: var(--vscode-titleBar-activeForeground);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.monaco-workbench .part.titlebar.inactive > .titlebar-container > .titlebar-center > .window-title > .command-center > .monaco-toolbar > .monaco-action-bar > .actions-container > .action-item > .action-label,
|
|
160
|
-
.monaco-workbench .part.titlebar.inactive > .titlebar-container > .titlebar-center > .window-title > .command-center > .monaco-toolbar > .monaco-action-bar > .actions-container > .action-item.monaco-dropdown-with-primary .action-label {
|
|
161
|
-
color: var(--vscode-titleBar-inactiveForeground);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center > .monaco-toolbar > .monaco-action-bar > .actions-container > .action-item > .action-label {
|
|
165
|
-
color: inherit;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center {
|
|
169
|
-
display: flex;
|
|
170
|
-
align-items: stretch;
|
|
171
|
-
color: var(--vscode-commandCenter-foreground);
|
|
172
|
-
background-color: var(--vscode-commandCenter-background);
|
|
173
|
-
border: 1px solid var(--vscode-commandCenter-border);
|
|
174
|
-
overflow: hidden;
|
|
175
|
-
margin: 0 6px;
|
|
176
|
-
border-radius: var(--vscode-cornerRadius-medium);
|
|
177
|
-
height: 22px;
|
|
178
|
-
width: 38vw;
|
|
179
|
-
max-width: 600px;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center .action-item.command-center-quick-pick {
|
|
183
|
-
display: flex;
|
|
184
|
-
justify-content: start;
|
|
185
|
-
overflow: hidden;
|
|
186
|
-
margin: auto;
|
|
187
|
-
max-width: 600px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center .action-item.command-center-quick-pick .search-icon {
|
|
191
|
-
font-size: 14px;
|
|
192
|
-
opacity: .8;
|
|
193
|
-
margin: auto 3px;
|
|
194
|
-
color: var(--vscode-commandCenter-foreground);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.monaco-workbench .part.titlebar.inactive > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center .action-item.command-center-quick-pick .search-icon {
|
|
198
|
-
color: var(--vscode-titleBar-inactiveForeground);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center .action-item.command-center-quick-pick .search-label {
|
|
202
|
-
overflow: hidden;
|
|
203
|
-
text-overflow: ellipsis;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* Compact mode: left-aligned label, no icon, full width */
|
|
207
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center .action-item.command-center-quick-pick.compact-mode {
|
|
208
|
-
margin: auto auto auto 0;
|
|
209
|
-
padding-left: 8px;
|
|
210
|
-
flex: 1;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center:has(.compact-mode) > .monaco-toolbar > .monaco-action-bar > .actions-container {
|
|
214
|
-
margin: 0;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center:has(.compact-mode) > .monaco-toolbar {
|
|
218
|
-
flex: 1;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center:has(.compact-mode) > .monaco-toolbar > .monaco-action-bar {
|
|
222
|
-
width: 100%;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center.multiple {
|
|
226
|
-
justify-content: flex-start;
|
|
227
|
-
padding: 0 12px;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center.multiple.active .action-label {
|
|
231
|
-
background-color: inherit;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center:only-child {
|
|
235
|
-
margin-left: 0; /* no margin if there is only the command center, without nav buttons */
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.monaco-workbench .part.titlebar.inactive > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center {
|
|
239
|
-
color: var(--vscode-titleBar-inactiveForeground);
|
|
240
|
-
border-color: var(--vscode-commandCenter-inactiveBorder) !important;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center .action-item.command-center-center:HOVER {
|
|
244
|
-
color: var(--vscode-commandCenter-activeForeground);
|
|
245
|
-
background-color: var(--vscode-commandCenter-activeBackground);
|
|
246
|
-
border-color: var(--vscode-commandCenter-activeBorder);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/* Menubar */
|
|
250
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-left > .menubar {
|
|
251
|
-
/* move menubar above drag region as negative z-index on drag region cause greyscale AA */
|
|
252
|
-
z-index: 2500;
|
|
253
|
-
min-width: 36px;
|
|
254
|
-
flex-wrap: nowrap;
|
|
255
|
-
order: 2;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.monaco-workbench.web .part.titlebar > .titlebar-container > .titlebar-left > .menubar {
|
|
259
|
-
margin-left: 4px;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.monaco-workbench .part.titlebar > .titlebar-container.counter-zoom .menubar .menubar-menu-button > .menubar-menu-items-holder.monaco-menu-container,
|
|
263
|
-
.monaco-workbench .part.titlebar > .titlebar-container.counter-zoom .monaco-toolbar .dropdown-action-container {
|
|
264
|
-
zoom: var(--zoom-factor); /* helps to position the menu properly when counter zooming */
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/* Resizer */
|
|
268
|
-
.monaco-workbench.windows .part.titlebar > .titlebar-container > .resizer,
|
|
269
|
-
.monaco-workbench.linux .part.titlebar > .titlebar-container > .resizer {
|
|
270
|
-
-webkit-app-region: no-drag;
|
|
271
|
-
position: absolute;
|
|
272
|
-
top: 0;
|
|
273
|
-
width: 100%;
|
|
274
|
-
height: 4px;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.monaco-workbench.windows.fullscreen .part.titlebar > .titlebar-container > .resizer,
|
|
278
|
-
.monaco-workbench.linux.fullscreen .part.titlebar > .titlebar-container > .resizer {
|
|
279
|
-
display: none;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/* App Icon */
|
|
283
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-left > .window-appicon {
|
|
284
|
-
width: 35px;
|
|
285
|
-
height: 100%;
|
|
286
|
-
position: relative;
|
|
287
|
-
z-index: 2500;
|
|
288
|
-
flex-shrink: 0;
|
|
289
|
-
order: 1;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-left > .window-appicon:not(.codicon) {
|
|
293
|
-
background-image: var(--product-icon, url('../../../media/code-icon.svg'));
|
|
294
|
-
background-repeat: no-repeat;
|
|
295
|
-
background-position: center center;
|
|
296
|
-
background-size: 16px;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-left > .window-appicon.codicon {
|
|
300
|
-
line-height: 30px;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.monaco-workbench.fullscreen .part.titlebar > .titlebar-container > .titlebar-left > .window-appicon {
|
|
304
|
-
display: none;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/* Window Controls Container */
|
|
308
|
-
.monaco-workbench .part.titlebar .window-controls-container {
|
|
309
|
-
display: flex;
|
|
310
|
-
flex-grow: 0;
|
|
311
|
-
flex-shrink: 0;
|
|
312
|
-
text-align: center;
|
|
313
|
-
z-index: 3000;
|
|
314
|
-
-webkit-app-region: no-drag;
|
|
315
|
-
width: 0px;
|
|
316
|
-
height: 100%;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.monaco-workbench.fullscreen .part.titlebar .window-controls-container {
|
|
320
|
-
display: none;
|
|
321
|
-
background-color: transparent;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/* Window Controls Container Web: Apply WCO environment variables (https://developer.mozilla.org/en-US/docs/Web/CSS/env#titlebar-area-x) */
|
|
325
|
-
.monaco-workbench.web .part.titlebar .titlebar-right .window-controls-container {
|
|
326
|
-
width: calc(100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px));
|
|
327
|
-
height: env(titlebar-area-height, 35px);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.monaco-workbench.web .part.titlebar .titlebar-left .window-controls-container {
|
|
331
|
-
width: env(titlebar-area-x, 0px);
|
|
332
|
-
height: env(titlebar-area-height, 35px);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.monaco-workbench.web.mac .part.titlebar .titlebar-left .window-controls-container {
|
|
336
|
-
order: 0;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.monaco-workbench.web.mac .part.titlebar .titlebar-right .window-controls-container {
|
|
340
|
-
order: 1;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/* Window Controls Container Desktop: apply zoom friendly size */
|
|
344
|
-
.monaco-workbench:not(.web):not(.mac) .part.titlebar .window-controls-container {
|
|
345
|
-
width: calc(138px / var(--zoom-factor, 1));
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.monaco-workbench:not(.web):not(.mac) .part.titlebar .titlebar-container.counter-zoom .window-controls-container {
|
|
349
|
-
width: 138px;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.monaco-workbench.linux:not(.web) .part.titlebar .window-controls-container.wco-enabled {
|
|
353
|
-
width: calc(100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px));
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.monaco-workbench:not(.web):not(.mac) .part.titlebar .titlebar-container:not(.counter-zoom) .window-controls-container * {
|
|
357
|
-
zoom: calc(1 / var(--zoom-factor, 1));
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.monaco-workbench:not(.web).mac .part.titlebar .window-controls-container {
|
|
361
|
-
width: 70px;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/* Window Control Icons */
|
|
365
|
-
.monaco-workbench .part.titlebar .window-controls-container > .window-icon {
|
|
366
|
-
display: flex;
|
|
367
|
-
justify-content: center;
|
|
368
|
-
align-items: center;
|
|
369
|
-
height: 100%;
|
|
370
|
-
width: 46px;
|
|
371
|
-
font-size: 16px;
|
|
372
|
-
color: var(--vscode-titleBar-activeForeground);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.monaco-workbench .part.titlebar.inactive .window-controls-container > .window-icon {
|
|
376
|
-
color: var(--vscode-titleBar-inactiveForeground);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.monaco-workbench .part.titlebar .window-controls-container > .window-icon::before {
|
|
380
|
-
height: 16px;
|
|
381
|
-
line-height: 16px;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.monaco-workbench .part.titlebar .window-controls-container > .window-icon:hover {
|
|
385
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.monaco-workbench .part.titlebar.light .window-controls-container > .window-icon:hover {
|
|
389
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.monaco-workbench .part.titlebar .window-controls-container > .window-icon.window-close:hover {
|
|
393
|
-
background-color: rgba(232, 17, 35, 0.9);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.monaco-workbench .part.titlebar .window-controls-container .window-icon.window-close:hover {
|
|
397
|
-
color: white;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
/* Optional title bar toolbars */
|
|
401
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .center-adjacent-toolbar-container,
|
|
402
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .update-toolbar-container {
|
|
403
|
-
z-index: 2500;
|
|
404
|
-
-webkit-app-region: no-drag;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .center-adjacent-toolbar-container {
|
|
408
|
-
margin-right: auto;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .update-toolbar-container {
|
|
412
|
-
margin-left: auto;
|
|
413
|
-
margin-right: var(--vscode-spacing-size40);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .center-adjacent-toolbar-container:not(.has-no-actions):not(.overflowing) + .update-toolbar-container,
|
|
417
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .update-toolbar-container:not(.has-no-actions):not(.overflowing) + .action-toolbar-container {
|
|
418
|
-
margin-left: 0;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .center-adjacent-toolbar-container.has-no-actions,
|
|
422
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .update-toolbar-container.has-no-actions {
|
|
423
|
-
display: none;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/* Hidden when the title bar is too narrow to fit it without pushing the window controls off-screen (#303222). */
|
|
427
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .center-adjacent-toolbar-container.overflowing,
|
|
428
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .update-toolbar-container.overflowing {
|
|
429
|
-
display: none;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/* Action Tool Bar Controls */
|
|
433
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container {
|
|
434
|
-
display: none;
|
|
435
|
-
padding-right: 4px;
|
|
436
|
-
flex-grow: 0;
|
|
437
|
-
flex-shrink: 0;
|
|
438
|
-
color: var(--vscode-titleBar-activeForeground);
|
|
439
|
-
text-align: center;
|
|
440
|
-
position: relative;
|
|
441
|
-
z-index: 2500;
|
|
442
|
-
-webkit-app-region: no-drag;
|
|
443
|
-
height: 100%;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.monaco-workbench .part.titlebar.inactive > .titlebar-container > .titlebar-right > .action-toolbar-container {
|
|
447
|
-
color: var(--vscode-titleBar-inactiveForeground);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container {
|
|
451
|
-
margin-left: auto;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.monaco-workbench.mac:not(.web) .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container,
|
|
455
|
-
.monaco-workbench.mac:not(.web) .part.titlebar > .titlebar-container > .titlebar-right > .update-toolbar-container {
|
|
456
|
-
position: relative;
|
|
457
|
-
right: 8px;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container:not(.has-no-actions) {
|
|
461
|
-
display: flex;
|
|
462
|
-
justify-content: center;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .codicon {
|
|
466
|
-
color: inherit;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .action-item {
|
|
470
|
-
display: flex;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .badge {
|
|
474
|
-
margin-left: 8px;
|
|
475
|
-
display: flex;
|
|
476
|
-
align-items: center;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .action-item.icon .badge {
|
|
480
|
-
margin-left: 0px;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .badge .badge-content {
|
|
484
|
-
padding: 3px 5px;
|
|
485
|
-
border-radius: 11px;
|
|
486
|
-
font-size: 9px;
|
|
487
|
-
min-width: 11px;
|
|
488
|
-
height: 16px;
|
|
489
|
-
line-height: 11px;
|
|
490
|
-
font-weight: normal;
|
|
491
|
-
text-align: center;
|
|
492
|
-
display: inline-block;
|
|
493
|
-
box-sizing: border-box;
|
|
494
|
-
position: relative;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .action-item.icon .badge.compact {
|
|
498
|
-
position: absolute;
|
|
499
|
-
top: 0;
|
|
500
|
-
bottom: 0;
|
|
501
|
-
margin: auto;
|
|
502
|
-
left: 0;
|
|
503
|
-
overflow: hidden;
|
|
504
|
-
width: 100%;
|
|
505
|
-
height: 100%;
|
|
506
|
-
z-index: 2;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .action-item.icon .badge.compact .badge-content::before {
|
|
510
|
-
mask-size: 12px;
|
|
511
|
-
-webkit-mask-size: 12px;
|
|
512
|
-
top: 2px;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .action-item.icon .badge.compact .badge-content {
|
|
516
|
-
position: absolute;
|
|
517
|
-
top: 10px;
|
|
518
|
-
right: 0px;
|
|
519
|
-
font-size: 9px;
|
|
520
|
-
font-weight: 600;
|
|
521
|
-
min-width: 12px;
|
|
522
|
-
height: 12px;
|
|
523
|
-
line-height: 12px;
|
|
524
|
-
padding: 0 2px;
|
|
525
|
-
border-radius: 16px;
|
|
526
|
-
text-align: center;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .action-item.icon .badge.compact.progress-badge .badge-content {
|
|
530
|
-
width: 12px;
|
|
531
|
-
padding: 0;
|
|
532
|
-
border-radius: var(--vscode-cornerRadius-circle);
|
|
533
|
-
display: flex;
|
|
534
|
-
align-items: center;
|
|
535
|
-
justify-content: center;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
.monaco-workbench .part.titlebar > .titlebar-container > .titlebar-right > .action-toolbar-container .monaco-action-bar .action-item.icon .badge.compact.progress-badge .badge-content::before {
|
|
539
|
-
width: 12px;
|
|
540
|
-
height: 12px;
|
|
541
|
-
}
|