custom-electron-titlebar 3.2.6 → 3.2.10
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/.github/FUNDING.yml +1 -0
- package/README.md +15 -24
- package/_config.yml +1 -0
- package/{lib → build}/browser/browser.d.ts +0 -0
- package/{lib → build}/browser/browser.js +0 -0
- package/{lib → build}/browser/browser.js.map +0 -0
- package/{lib → build}/browser/event.d.ts +0 -0
- package/{lib → build}/browser/event.js +2 -1
- package/{lib → build}/browser/event.js.map +1 -1
- package/{lib → build}/browser/iframe.d.ts +0 -0
- package/{lib → build}/browser/iframe.js +0 -0
- package/{lib → build}/browser/iframe.js.map +0 -0
- package/{lib → build}/browser/keyboardEvent.d.ts +0 -0
- package/{lib → build}/browser/keyboardEvent.js +0 -0
- package/{lib → build}/browser/keyboardEvent.js.map +0 -0
- package/{lib → build}/browser/mouseEvent.d.ts +0 -0
- package/{lib → build}/browser/mouseEvent.js +0 -0
- package/{lib → build}/browser/mouseEvent.js.map +0 -0
- package/{lib → build}/common/arrays.d.ts +0 -0
- package/{lib → build}/common/arrays.js +0 -0
- package/{lib → build}/common/arrays.js.map +0 -0
- package/{lib → build}/common/async.d.ts +0 -0
- package/{lib → build}/common/async.js +0 -0
- package/{lib → build}/common/async.js.map +0 -0
- package/{lib → build}/common/charCode.d.ts +0 -0
- package/{lib → build}/common/charCode.js +0 -0
- package/{lib → build}/common/charCode.js.map +0 -0
- package/{lib → build}/common/color.d.ts +0 -0
- package/{lib → build}/common/color.js +0 -0
- package/{lib → build}/common/color.js.map +0 -0
- package/{lib → build}/common/dom.d.ts +0 -0
- package/{lib → build}/common/dom.js +16 -14
- package/build/common/dom.js.map +1 -0
- package/{lib → build}/common/event.d.ts +0 -0
- package/{lib → build}/common/event.js +1 -1
- package/build/common/event.js.map +1 -0
- package/{lib → build}/common/iterator.d.ts +0 -0
- package/{lib → build}/common/iterator.js +0 -0
- package/{lib → build}/common/iterator.js.map +0 -0
- package/{lib → build}/common/keyCodes.d.ts +0 -0
- package/{lib → build}/common/keyCodes.js +0 -0
- package/{lib → build}/common/keyCodes.js.map +0 -0
- package/{lib → build}/common/lifecycle.d.ts +0 -0
- package/{lib → build}/common/lifecycle.js +0 -0
- package/{lib → build}/common/lifecycle.js.map +0 -0
- package/{lib → build}/common/linkedList.d.ts +0 -0
- package/{lib → build}/common/linkedList.js +0 -0
- package/{lib → build}/common/linkedList.js.map +0 -0
- package/{lib → build}/common/platform.d.ts +0 -0
- package/{lib → build}/common/platform.js +0 -0
- package/{lib → build}/common/platform.js.map +0 -0
- package/{lib → build}/index.d.ts +0 -0
- package/{lib → build}/index.js +0 -0
- package/{lib → build}/index.js.map +0 -0
- package/{lib → build}/menu/menu.d.ts +0 -0
- package/{lib → build}/menu/menu.js +38 -38
- package/build/menu/menu.js.map +1 -0
- package/{lib → build}/menu/menuitem.d.ts +10 -2
- package/{lib → build}/menu/menuitem.js +70 -34
- package/build/menu/menuitem.js.map +1 -0
- package/{lib → build}/menubar.d.ts +0 -0
- package/{lib → build}/menubar.js +29 -30
- package/build/menubar.js.map +1 -0
- package/{lib → build}/themebar.d.ts +0 -0
- package/{lib → build}/themebar.js +2 -2
- package/build/themebar.js.map +1 -0
- package/{lib → build}/titlebar.d.ts +0 -0
- package/{lib → build}/titlebar.js +61 -58
- package/build/titlebar.js.map +1 -0
- package/package.json +13 -7
- package/lib/common/dom.js.map +0 -1
- package/lib/common/enableNativeMenuCommands.d.ts +0 -1
- package/lib/common/enableNativeMenuCommands.js +0 -32
- package/lib/common/enableNativeMenuCommands.js.map +0 -1
- package/lib/common/event.js.map +0 -1
- package/lib/main.d.ts +0 -1
- package/lib/main.js +0 -14
- package/lib/main.js.map +0 -1
- package/lib/menu/menu.js.map +0 -1
- package/lib/menu/menuitem.js.map +0 -1
- package/lib/menubar.js.map +0 -1
- package/lib/themebar.js.map +0 -1
- package/lib/titlebar.js.map +0 -1
- package/lib/vs/base/browser/browser.js +0 -150
- package/lib/vs/base/browser/canIUse.js +0 -58
- package/lib/vs/base/browser/codicons.js +0 -37
- package/lib/vs/base/browser/contextmenu.js +0 -9
- package/lib/vs/base/browser/dnd.js +0 -113
- package/lib/vs/base/browser/dom.js +0 -1417
- package/lib/vs/base/browser/event.js +0 -36
- package/lib/vs/base/browser/fastDomNode.js +0 -265
- package/lib/vs/base/browser/formattedTextRenderer.js +0 -248
- package/lib/vs/base/browser/globalMouseMoveMonitor.js +0 -137
- package/lib/vs/base/browser/history.js +0 -9
- package/lib/vs/base/browser/iframe.js +0 -126
- package/lib/vs/base/browser/keyboardEvent.js +0 -599
- package/lib/vs/base/browser/mouseEvent.js +0 -155
- package/lib/vs/base/browser/touch.js +0 -315
- package/lib/vs/base/browser/ui/actionbar/actionViewItems.js +0 -397
- package/lib/vs/base/browser/ui/actionbar/actionbar.js +0 -583
- package/lib/vs/base/browser/ui/checkbox/checkbox.js +0 -251
- package/lib/vs/base/browser/ui/codicons/codiconLabel.js +0 -31
- package/lib/vs/base/browser/ui/codicons/codiconStyles.js +0 -47
- package/lib/vs/base/browser/ui/contextview/contextview.js +0 -367
- package/lib/vs/base/browser/ui/dropdown/dropdown.js +0 -256
- package/lib/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +0 -120
- package/lib/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +0 -118
- package/lib/vs/base/browser/ui/list/list.js +0 -54
- package/lib/vs/base/browser/ui/list/listPaging.js +0 -322
- package/lib/vs/base/browser/ui/list/listView.js +0 -1388
- package/lib/vs/base/browser/ui/list/listWidget.js +0 -1709
- package/lib/vs/base/browser/ui/list/rangeMap.js +0 -223
- package/lib/vs/base/browser/ui/list/rowCache.js +0 -113
- package/lib/vs/base/browser/ui/list/splice.js +0 -23
- package/lib/vs/base/browser/ui/menu/menu.js +0 -1371
- package/lib/vs/base/browser/ui/menu/menubar.js +0 -1139
- package/lib/vs/base/browser/ui/scrollbar/abstractScrollbar.js +0 -278
- package/lib/vs/base/browser/ui/scrollbar/horizontalScrollbar.js +0 -115
- package/lib/vs/base/browser/ui/scrollbar/scrollableElement.js +0 -646
- package/lib/vs/base/browser/ui/scrollbar/scrollableElementOptions.js +0 -9
- package/lib/vs/base/browser/ui/scrollbar/scrollbarArrow.js +0 -106
- package/lib/vs/base/browser/ui/scrollbar/scrollbarState.js +0 -184
- package/lib/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.js +0 -116
- package/lib/vs/base/browser/ui/scrollbar/verticalScrollbar.js +0 -114
- package/lib/vs/base/browser/ui/selectBox/selectBox.js +0 -85
- package/lib/vs/base/browser/ui/selectBox/selectBoxCustom.js +0 -985
- package/lib/vs/base/browser/ui/selectBox/selectBoxNative.js +0 -188
- package/lib/vs/base/browser/ui/toolbar/toolbar.js +0 -206
- package/lib/vs/base/browser/ui/widget.js +0 -69
- package/lib/vs/base/common/actions.js +0 -224
- package/lib/vs/base/common/amd.js +0 -31
- package/lib/vs/base/common/arrays.js +0 -641
- package/lib/vs/base/common/assert.js +0 -21
- package/lib/vs/base/common/async.js +0 -966
- package/lib/vs/base/common/buffer.js +0 -250
- package/lib/vs/base/common/cache.js +0 -40
- package/lib/vs/base/common/cancellation.js +0 -146
- package/lib/vs/base/common/charCode.js +0 -9
- package/lib/vs/base/common/codicon.js +0 -136
- package/lib/vs/base/common/codicons.js +0 -1378
- package/lib/vs/base/common/collections.js +0 -133
- package/lib/vs/base/common/color.js +0 -716
- package/lib/vs/base/common/comparers.js +0 -280
- package/lib/vs/base/common/console.js +0 -142
- package/lib/vs/base/common/date.js +0 -113
- package/lib/vs/base/common/decorators.js +0 -169
- package/lib/vs/base/common/errorMessage.js +0 -93
- package/lib/vs/base/common/errors.js +0 -213
- package/lib/vs/base/common/errorsWithActions.js +0 -28
- package/lib/vs/base/common/event.js +0 -873
- package/lib/vs/base/common/extpath.js +0 -401
- package/lib/vs/base/common/filters.js +0 -948
- package/lib/vs/base/common/functional.js +0 -28
- package/lib/vs/base/common/fuzzyScorer.js +0 -811
- package/lib/vs/base/common/glob.js +0 -696
- package/lib/vs/base/common/hash.js +0 -359
- package/lib/vs/base/common/history.js +0 -116
- package/lib/vs/base/common/htmlContent.js +0 -162
- package/lib/vs/base/common/idGenerator.js +0 -25
- package/lib/vs/base/common/iterator.js +0 -118
- package/lib/vs/base/common/json.js +0 -1624
- package/lib/vs/base/common/jsonEdit.js +0 -272
- package/lib/vs/base/common/jsonErrorMessages.js +0 -69
- package/lib/vs/base/common/jsonFormatter.js +0 -316
- package/lib/vs/base/common/jsonSchema.js +0 -9
- package/lib/vs/base/common/keyCodes.js +0 -591
- package/lib/vs/base/common/keybindingLabels.js +0 -231
- package/lib/vs/base/common/keybindingParser.js +0 -142
- package/lib/vs/base/common/labels.js +0 -430
- package/lib/vs/base/common/lazy.js +0 -71
- package/lib/vs/base/common/lifecycle.js +0 -308
- package/lib/vs/base/common/linkedList.js +0 -152
- package/lib/vs/base/common/linkedText.js +0 -73
- package/lib/vs/base/common/map.js +0 -1108
- package/lib/vs/base/common/marshalling.js +0 -80
- package/lib/vs/base/common/mime.js +0 -321
- package/lib/vs/base/common/navigator.js +0 -50
- package/lib/vs/base/common/network.js +0 -160
- package/lib/vs/base/common/normalization.js +0 -78
- package/lib/vs/base/common/numbers.js +0 -55
- package/lib/vs/base/common/objects.js +0 -268
- package/lib/vs/base/common/paging.js +0 -190
- package/lib/vs/base/common/parsers.js +0 -78
- package/lib/vs/base/common/path.js +0 -1550
- package/lib/vs/base/common/platform.js +0 -245
- package/lib/vs/base/common/process.js +0 -52
- package/lib/vs/base/common/processes.js +0 -32
- package/lib/vs/base/common/range.js +0 -79
- package/lib/vs/base/common/resourceTree.js +0 -185
- package/lib/vs/base/common/resources.js +0 -421
- package/lib/vs/base/common/scanCode.js +0 -1472
- package/lib/vs/base/common/scrollable.js +0 -397
- package/lib/vs/base/common/search.js +0 -55
- package/lib/vs/base/common/sequence.js +0 -64
- package/lib/vs/base/common/severity.js +0 -55
- package/lib/vs/base/common/skipList.js +0 -234
- package/lib/vs/base/common/stopwatch.js +0 -45
- package/lib/vs/base/common/stream.js +0 -418
- package/lib/vs/base/common/strings.js +0 -1283
- package/lib/vs/base/common/styler.js +0 -9
- package/lib/vs/base/common/types.js +0 -296
- package/lib/vs/base/common/uint.js +0 -46
- package/lib/vs/base/common/uri.js +0 -756
- package/lib/vs/base/common/uriIpc.js +0 -154
- package/lib/vs/base/common/uuid.js +0 -70
- package/lib/vs/nls.mock.js +0 -31
- package/lib/vs/platform/actions/browser/menuEntryActionViewItem.js +0 -342
- package/lib/vs/platform/actions/common/actions.js +0 -456
- package/lib/vs/platform/actions/common/menuService.js +0 -194
- package/lib/vs/platform/clipboard/browser/clipboardService.js +0 -99
- package/lib/vs/platform/clipboard/common/clipboardService.js +0 -14
- package/lib/vs/platform/contextkey/common/contextkey.js +0 -1210
- package/lib/vs/platform/contextkey/common/contextkeys.js +0 -23
- package/lib/vs/platform/contextview/browser/contextView.js +0 -15
- package/lib/vs/platform/contextview/browser/contextViewService.js +0 -96
- package/lib/vs/platform/environment/common/argv.js +0 -9
- package/lib/vs/platform/environment/common/environment.js +0 -15
- package/lib/vs/platform/instantiation/common/descriptors.js +0 -25
- package/lib/vs/platform/instantiation/common/extensions.js +0 -26
- package/lib/vs/platform/instantiation/common/graph.js +0 -93
- package/lib/vs/platform/instantiation/common/instantiation.js +0 -84
- package/lib/vs/platform/instantiation/common/instantiationService.js +0 -361
- package/lib/vs/platform/instantiation/common/serviceCollection.js +0 -39
- package/lib/vs/platform/keybinding/common/baseResolvedKeybinding.js +0 -73
- package/lib/vs/platform/keybinding/common/keybinding.js +0 -14
- package/lib/vs/platform/keybinding/common/keybindingResolver.js +0 -391
- package/lib/vs/platform/keybinding/common/keybindingsRegistry.js +0 -229
- package/lib/vs/platform/keybinding/common/resolvedKeybindingItem.js +0 -47
- package/lib/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js +0 -160
- package/lib/vs/platform/layout/browser/layoutService.js +0 -14
- package/lib/vs/platform/menubar/common/menubar.js +0 -34
- package/lib/vs/platform/registry/common/platform.js +0 -38
- package/lib/vs/platform/theme/browser/checkbox.js +0 -32
- package/lib/vs/platform/theme/common/colorRegistry.js +0 -1154
- package/lib/vs/platform/theme/common/styler.js +0 -290
- package/lib/vs/platform/theme/common/theme.js +0 -21
- package/lib/vs/platform/theme/common/themeService.js +0 -176
- package/lib/vs/platform/theme/common/tokenClassificationRegistry.js +0 -540
- package/lib/vs/platform/theme/test/common/testThemeService.js +0 -98
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.SimpleCheckbox = exports.Checkbox = exports.CheckboxActionViewItem = void 0;
|
|
11
|
-
|
|
12
|
-
require("../../../../css!./checkbox");
|
|
13
|
-
|
|
14
|
-
const DOM = require("../../dom");
|
|
15
|
-
|
|
16
|
-
const widget_1 = require("../widget");
|
|
17
|
-
|
|
18
|
-
const color_1 = require("../../../common/color");
|
|
19
|
-
|
|
20
|
-
const event_1 = require("../../../common/event");
|
|
21
|
-
|
|
22
|
-
const lifecycle_1 = require("../../../common/lifecycle");
|
|
23
|
-
|
|
24
|
-
const codicons_1 = require("../../../common/codicons");
|
|
25
|
-
|
|
26
|
-
const actionViewItems_1 = require("../actionbar/actionViewItems");
|
|
27
|
-
|
|
28
|
-
const defaultOpts = {
|
|
29
|
-
inputActiveOptionBorder: color_1.Color.fromHex('#007ACC00'),
|
|
30
|
-
inputActiveOptionForeground: color_1.Color.fromHex('#FFFFFF'),
|
|
31
|
-
inputActiveOptionBackground: color_1.Color.fromHex('#0E639C50')
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
class CheckboxActionViewItem extends actionViewItems_1.BaseActionViewItem {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(...arguments);
|
|
37
|
-
this.disposables = new lifecycle_1.DisposableStore();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
render(container) {
|
|
41
|
-
this.element = container;
|
|
42
|
-
this.disposables.clear();
|
|
43
|
-
this.checkbox = new Checkbox({
|
|
44
|
-
actionClassName: this._action.class,
|
|
45
|
-
isChecked: this._action.checked,
|
|
46
|
-
title: this._action.label
|
|
47
|
-
});
|
|
48
|
-
this.disposables.add(this.checkbox);
|
|
49
|
-
this.disposables.add(this.checkbox.onChange(() => this._action.checked = !!this.checkbox && this.checkbox.checked, this));
|
|
50
|
-
this.element.appendChild(this.checkbox.domNode);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
updateEnabled() {
|
|
54
|
-
if (this.checkbox) {
|
|
55
|
-
if (this.isEnabled()) {
|
|
56
|
-
this.checkbox.enable();
|
|
57
|
-
} else {
|
|
58
|
-
this.checkbox.disable();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
updateChecked() {
|
|
64
|
-
if (this.checkbox) {
|
|
65
|
-
this.checkbox.checked = this._action.checked;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
dispose() {
|
|
70
|
-
this.disposables.dispose();
|
|
71
|
-
super.dispose();
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
exports.CheckboxActionViewItem = CheckboxActionViewItem;
|
|
77
|
-
|
|
78
|
-
class Checkbox extends widget_1.Widget {
|
|
79
|
-
constructor(opts) {
|
|
80
|
-
super();
|
|
81
|
-
this._onChange = this._register(new event_1.Emitter());
|
|
82
|
-
this.onChange = this._onChange.event;
|
|
83
|
-
this._onKeyDown = this._register(new event_1.Emitter());
|
|
84
|
-
this.onKeyDown = this._onKeyDown.event;
|
|
85
|
-
this._opts = { ...defaultOpts,
|
|
86
|
-
...opts
|
|
87
|
-
};
|
|
88
|
-
this._checked = this._opts.isChecked;
|
|
89
|
-
const classes = ['monaco-custom-checkbox'];
|
|
90
|
-
|
|
91
|
-
if (this._opts.icon) {
|
|
92
|
-
classes.push(this._opts.icon.classNames);
|
|
93
|
-
} else {
|
|
94
|
-
classes.push('codicon'); // todo@aeschli: remove once codicon fully adopted
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (this._opts.actionClassName) {
|
|
98
|
-
classes.push(this._opts.actionClassName);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
classes.push(this._checked ? 'checked' : 'unchecked');
|
|
102
|
-
this.domNode = document.createElement('div');
|
|
103
|
-
this.domNode.title = this._opts.title;
|
|
104
|
-
this.domNode.className = classes.join(' ');
|
|
105
|
-
this.domNode.tabIndex = 0;
|
|
106
|
-
this.domNode.setAttribute('role', 'checkbox');
|
|
107
|
-
this.domNode.setAttribute('aria-checked', String(this._checked));
|
|
108
|
-
this.domNode.setAttribute('aria-label', this._opts.title);
|
|
109
|
-
this.applyStyles();
|
|
110
|
-
this.onclick(this.domNode, ev => {
|
|
111
|
-
this.checked = !this._checked;
|
|
112
|
-
|
|
113
|
-
this._onChange.fire(false);
|
|
114
|
-
|
|
115
|
-
ev.preventDefault();
|
|
116
|
-
});
|
|
117
|
-
this.ignoreGesture(this.domNode);
|
|
118
|
-
this.onkeydown(this.domNode, keyboardEvent => {
|
|
119
|
-
if (keyboardEvent.keyCode === 10
|
|
120
|
-
/* Space */
|
|
121
|
-
|| keyboardEvent.keyCode === 3
|
|
122
|
-
/* Enter */
|
|
123
|
-
) {
|
|
124
|
-
this.checked = !this._checked;
|
|
125
|
-
|
|
126
|
-
this._onChange.fire(true);
|
|
127
|
-
|
|
128
|
-
keyboardEvent.preventDefault();
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
this._onKeyDown.fire(keyboardEvent);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
get enabled() {
|
|
137
|
-
return this.domNode.getAttribute('aria-disabled') !== 'true';
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
focus() {
|
|
141
|
-
this.domNode.focus();
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
get checked() {
|
|
145
|
-
return this._checked;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
set checked(newIsChecked) {
|
|
149
|
-
this._checked = newIsChecked;
|
|
150
|
-
this.domNode.setAttribute('aria-checked', String(this._checked));
|
|
151
|
-
|
|
152
|
-
if (this._checked) {
|
|
153
|
-
this.domNode.classList.add('checked');
|
|
154
|
-
} else {
|
|
155
|
-
this.domNode.classList.remove('checked');
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
this.applyStyles();
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
width() {
|
|
162
|
-
return 2
|
|
163
|
-
/*marginleft*/
|
|
164
|
-
+ 2
|
|
165
|
-
/*border*/
|
|
166
|
-
+ 2
|
|
167
|
-
/*padding*/
|
|
168
|
-
+ 16
|
|
169
|
-
/* icon width */
|
|
170
|
-
;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
style(styles) {
|
|
174
|
-
if (styles.inputActiveOptionBorder) {
|
|
175
|
-
this._opts.inputActiveOptionBorder = styles.inputActiveOptionBorder;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (styles.inputActiveOptionForeground) {
|
|
179
|
-
this._opts.inputActiveOptionForeground = styles.inputActiveOptionForeground;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
if (styles.inputActiveOptionBackground) {
|
|
183
|
-
this._opts.inputActiveOptionBackground = styles.inputActiveOptionBackground;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
this.applyStyles();
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
applyStyles() {
|
|
190
|
-
if (this.domNode) {
|
|
191
|
-
this.domNode.style.borderColor = this._checked && this._opts.inputActiveOptionBorder ? this._opts.inputActiveOptionBorder.toString() : 'transparent';
|
|
192
|
-
this.domNode.style.color = this._checked && this._opts.inputActiveOptionForeground ? this._opts.inputActiveOptionForeground.toString() : 'inherit';
|
|
193
|
-
this.domNode.style.backgroundColor = this._checked && this._opts.inputActiveOptionBackground ? this._opts.inputActiveOptionBackground.toString() : 'transparent';
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
enable() {
|
|
198
|
-
this.domNode.tabIndex = 0;
|
|
199
|
-
this.domNode.setAttribute('aria-disabled', String(false));
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
disable() {
|
|
203
|
-
DOM.removeTabIndexAndUpdateFocus(this.domNode);
|
|
204
|
-
this.domNode.setAttribute('aria-disabled', String(true));
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
exports.Checkbox = Checkbox;
|
|
210
|
-
|
|
211
|
-
class SimpleCheckbox extends widget_1.Widget {
|
|
212
|
-
constructor(title, isChecked) {
|
|
213
|
-
super();
|
|
214
|
-
this.title = title;
|
|
215
|
-
this.isChecked = isChecked;
|
|
216
|
-
this.checkbox = new Checkbox({
|
|
217
|
-
title: this.title,
|
|
218
|
-
isChecked: this.isChecked,
|
|
219
|
-
icon: codicons_1.Codicon.check,
|
|
220
|
-
actionClassName: 'monaco-simple-checkbox'
|
|
221
|
-
});
|
|
222
|
-
this.domNode = this.checkbox.domNode;
|
|
223
|
-
this.styles = {};
|
|
224
|
-
this.checkbox.onChange(() => {
|
|
225
|
-
this.applyStyles();
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
get checked() {
|
|
230
|
-
return this.checkbox.checked;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
set checked(newIsChecked) {
|
|
234
|
-
this.checkbox.checked = newIsChecked;
|
|
235
|
-
this.applyStyles();
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
style(styles) {
|
|
239
|
-
this.styles = styles;
|
|
240
|
-
this.applyStyles();
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
applyStyles() {
|
|
244
|
-
this.domNode.style.color = this.styles.checkboxForeground ? this.styles.checkboxForeground.toString() : '';
|
|
245
|
-
this.domNode.style.backgroundColor = this.styles.checkboxBackground ? this.styles.checkboxBackground.toString() : '';
|
|
246
|
-
this.domNode.style.borderColor = this.styles.checkboxBorder ? this.styles.checkboxBorder.toString() : '';
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
exports.SimpleCheckbox = SimpleCheckbox;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.CodiconLabel = void 0;
|
|
11
|
-
|
|
12
|
-
const dom_1 = require("../../dom");
|
|
13
|
-
|
|
14
|
-
const codicons_1 = require("../../codicons");
|
|
15
|
-
|
|
16
|
-
class CodiconLabel {
|
|
17
|
-
constructor(_container) {
|
|
18
|
-
this._container = _container;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
set text(text) {
|
|
22
|
-
dom_1.reset(this._container, ...codicons_1.renderCodicons(text !== null && text !== void 0 ? text : ''));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
set title(title) {
|
|
26
|
-
this._container.title = title;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
exports.CodiconLabel = CodiconLabel;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.formatRule = exports.CodiconStyles = void 0;
|
|
11
|
-
|
|
12
|
-
require("../../../../css!./codicon/codicon");
|
|
13
|
-
|
|
14
|
-
require("../../../../css!./codicon/codicon-modifications");
|
|
15
|
-
|
|
16
|
-
require("../../../../css!./codicon/codicon-animations");
|
|
17
|
-
|
|
18
|
-
const codicons_1 = require("../../../common/codicons");
|
|
19
|
-
|
|
20
|
-
exports.CodiconStyles = new class {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.onDidChange = codicons_1.iconRegistry.onDidRegister;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
getCSS() {
|
|
26
|
-
const rules = [];
|
|
27
|
-
|
|
28
|
-
for (let c of codicons_1.iconRegistry.all) {
|
|
29
|
-
rules.push(formatRule(c));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return rules.join('\n');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}();
|
|
36
|
-
|
|
37
|
-
function formatRule(c) {
|
|
38
|
-
let def = c.definition;
|
|
39
|
-
|
|
40
|
-
while (def instanceof codicons_1.Codicon) {
|
|
41
|
-
def = def.definition;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return `.codicon-${c.id}:before { content: '${def.character}'; }`;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
exports.formatRule = formatRule;
|
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.ContextView = exports.layout = void 0;
|
|
11
|
-
|
|
12
|
-
require("../../../../css!./contextview");
|
|
13
|
-
|
|
14
|
-
const DOM = require("../../dom");
|
|
15
|
-
|
|
16
|
-
const platform = require("../../../common/platform");
|
|
17
|
-
|
|
18
|
-
const lifecycle_1 = require("../../../common/lifecycle");
|
|
19
|
-
|
|
20
|
-
const range_1 = require("../../../common/range");
|
|
21
|
-
|
|
22
|
-
const canIUse_1 = require("../../canIUse");
|
|
23
|
-
/**
|
|
24
|
-
* Lays out a one dimensional view next to an anchor in a viewport.
|
|
25
|
-
*
|
|
26
|
-
* @returns The view offset within the viewport.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function layout(viewportSize, viewSize, anchor) {
|
|
31
|
-
const anchorEnd = anchor.offset + anchor.size;
|
|
32
|
-
|
|
33
|
-
if (anchor.position === 0
|
|
34
|
-
/* Before */
|
|
35
|
-
) {
|
|
36
|
-
if (viewSize <= viewportSize - anchorEnd) {
|
|
37
|
-
return anchorEnd; // happy case, lay it out after the anchor
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if (viewSize <= anchor.offset) {
|
|
41
|
-
return anchor.offset - viewSize; // ok case, lay it out before the anchor
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return Math.max(viewportSize - viewSize, 0); // sad case, lay it over the anchor
|
|
45
|
-
} else {
|
|
46
|
-
if (viewSize <= anchor.offset) {
|
|
47
|
-
return anchor.offset - viewSize; // happy case, lay it out before the anchor
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (viewSize <= viewportSize - anchorEnd) {
|
|
51
|
-
return anchorEnd; // ok case, lay it out after the anchor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return 0; // sad case, lay it over the anchor
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
exports.layout = layout;
|
|
59
|
-
|
|
60
|
-
class ContextView extends lifecycle_1.Disposable {
|
|
61
|
-
constructor(container, domPosition) {
|
|
62
|
-
super();
|
|
63
|
-
this.container = null;
|
|
64
|
-
this.delegate = null;
|
|
65
|
-
this.toDisposeOnClean = lifecycle_1.Disposable.None;
|
|
66
|
-
this.toDisposeOnSetContainer = lifecycle_1.Disposable.None;
|
|
67
|
-
this.shadowRoot = null;
|
|
68
|
-
this.shadowRootHostElement = null;
|
|
69
|
-
this.view = DOM.$('.context-view');
|
|
70
|
-
this.useFixedPosition = false;
|
|
71
|
-
this.useShadowDOM = false;
|
|
72
|
-
DOM.hide(this.view);
|
|
73
|
-
this.setContainer(container, domPosition);
|
|
74
|
-
|
|
75
|
-
this._register(lifecycle_1.toDisposable(() => this.setContainer(null, 1
|
|
76
|
-
/* ABSOLUTE */
|
|
77
|
-
)));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
setContainer(container, domPosition) {
|
|
81
|
-
var _a;
|
|
82
|
-
|
|
83
|
-
if (this.container) {
|
|
84
|
-
this.toDisposeOnSetContainer.dispose();
|
|
85
|
-
|
|
86
|
-
if (this.shadowRoot) {
|
|
87
|
-
this.shadowRoot.removeChild(this.view);
|
|
88
|
-
this.shadowRoot = null;
|
|
89
|
-
(_a = this.shadowRootHostElement) === null || _a === void 0 ? void 0 : _a.remove();
|
|
90
|
-
this.shadowRootHostElement = null;
|
|
91
|
-
} else {
|
|
92
|
-
this.container.removeChild(this.view);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
this.container = null;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (container) {
|
|
99
|
-
this.container = container;
|
|
100
|
-
this.useFixedPosition = domPosition !== 1
|
|
101
|
-
/* ABSOLUTE */
|
|
102
|
-
;
|
|
103
|
-
this.useShadowDOM = domPosition === 3
|
|
104
|
-
/* FIXED_SHADOW */
|
|
105
|
-
;
|
|
106
|
-
|
|
107
|
-
if (this.useShadowDOM) {
|
|
108
|
-
this.shadowRootHostElement = DOM.$('.shadow-root-host');
|
|
109
|
-
this.container.appendChild(this.shadowRootHostElement);
|
|
110
|
-
this.shadowRoot = this.shadowRootHostElement.attachShadow({
|
|
111
|
-
mode: 'open'
|
|
112
|
-
});
|
|
113
|
-
const style = document.createElement('style');
|
|
114
|
-
style.textContent = SHADOW_ROOT_CSS;
|
|
115
|
-
this.shadowRoot.appendChild(style);
|
|
116
|
-
this.shadowRoot.appendChild(this.view);
|
|
117
|
-
this.shadowRoot.appendChild(DOM.$('slot'));
|
|
118
|
-
} else {
|
|
119
|
-
this.container.appendChild(this.view);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
const toDisposeOnSetContainer = new lifecycle_1.DisposableStore();
|
|
123
|
-
ContextView.BUBBLE_UP_EVENTS.forEach(event => {
|
|
124
|
-
toDisposeOnSetContainer.add(DOM.addStandardDisposableListener(this.container, event, e => {
|
|
125
|
-
this.onDOMEvent(e, false);
|
|
126
|
-
}));
|
|
127
|
-
});
|
|
128
|
-
ContextView.BUBBLE_DOWN_EVENTS.forEach(event => {
|
|
129
|
-
toDisposeOnSetContainer.add(DOM.addStandardDisposableListener(this.container, event, e => {
|
|
130
|
-
this.onDOMEvent(e, true);
|
|
131
|
-
}, true));
|
|
132
|
-
});
|
|
133
|
-
this.toDisposeOnSetContainer = toDisposeOnSetContainer;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
show(delegate) {
|
|
138
|
-
if (this.isVisible()) {
|
|
139
|
-
this.hide();
|
|
140
|
-
} // Show static box
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
DOM.clearNode(this.view);
|
|
144
|
-
this.view.className = 'context-view';
|
|
145
|
-
this.view.style.top = '0px';
|
|
146
|
-
this.view.style.left = '0px';
|
|
147
|
-
this.view.style.zIndex = '2500';
|
|
148
|
-
this.view.style.position = this.useFixedPosition ? 'fixed' : 'absolute';
|
|
149
|
-
DOM.show(this.view); // Render content
|
|
150
|
-
|
|
151
|
-
this.toDisposeOnClean = delegate.render(this.view) || lifecycle_1.Disposable.None; // Set active delegate
|
|
152
|
-
|
|
153
|
-
this.delegate = delegate; // Layout
|
|
154
|
-
|
|
155
|
-
this.doLayout(); // Focus
|
|
156
|
-
|
|
157
|
-
if (this.delegate.focus) {
|
|
158
|
-
this.delegate.focus();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
getViewElement() {
|
|
163
|
-
return this.view;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
layout() {
|
|
167
|
-
if (!this.isVisible()) {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if (this.delegate.canRelayout === false && !(platform.isIOS && canIUse_1.BrowserFeatures.pointerEvents)) {
|
|
172
|
-
this.hide();
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
if (this.delegate.layout) {
|
|
177
|
-
this.delegate.layout();
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
this.doLayout();
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
doLayout() {
|
|
184
|
-
// Check that we still have a delegate - this.delegate.layout may have hidden
|
|
185
|
-
if (!this.isVisible()) {
|
|
186
|
-
return;
|
|
187
|
-
} // Get anchor
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
let anchor = this.delegate.getAnchor(); // Compute around
|
|
191
|
-
|
|
192
|
-
let around; // Get the element's position and size (to anchor the view)
|
|
193
|
-
|
|
194
|
-
if (DOM.isHTMLElement(anchor)) {
|
|
195
|
-
let elementPosition = DOM.getDomNodePagePosition(anchor);
|
|
196
|
-
around = {
|
|
197
|
-
top: elementPosition.top,
|
|
198
|
-
left: elementPosition.left,
|
|
199
|
-
width: elementPosition.width,
|
|
200
|
-
height: elementPosition.height
|
|
201
|
-
};
|
|
202
|
-
} else {
|
|
203
|
-
around = {
|
|
204
|
-
top: anchor.y,
|
|
205
|
-
left: anchor.x,
|
|
206
|
-
width: anchor.width || 1,
|
|
207
|
-
height: anchor.height || 2
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
const viewSizeWidth = DOM.getTotalWidth(this.view);
|
|
212
|
-
const viewSizeHeight = DOM.getTotalHeight(this.view);
|
|
213
|
-
const anchorPosition = this.delegate.anchorPosition || 0
|
|
214
|
-
/* BELOW */
|
|
215
|
-
;
|
|
216
|
-
const anchorAlignment = this.delegate.anchorAlignment || 0
|
|
217
|
-
/* LEFT */
|
|
218
|
-
;
|
|
219
|
-
const verticalAnchor = {
|
|
220
|
-
offset: around.top - window.pageYOffset,
|
|
221
|
-
size: around.height,
|
|
222
|
-
position: anchorPosition === 0
|
|
223
|
-
/* BELOW */
|
|
224
|
-
? 0
|
|
225
|
-
/* Before */
|
|
226
|
-
: 1
|
|
227
|
-
/* After */
|
|
228
|
-
|
|
229
|
-
};
|
|
230
|
-
let horizontalAnchor;
|
|
231
|
-
|
|
232
|
-
if (anchorAlignment === 0
|
|
233
|
-
/* LEFT */
|
|
234
|
-
) {
|
|
235
|
-
horizontalAnchor = {
|
|
236
|
-
offset: around.left,
|
|
237
|
-
size: 0,
|
|
238
|
-
position: 0
|
|
239
|
-
/* Before */
|
|
240
|
-
|
|
241
|
-
};
|
|
242
|
-
} else {
|
|
243
|
-
horizontalAnchor = {
|
|
244
|
-
offset: around.left + around.width,
|
|
245
|
-
size: 0,
|
|
246
|
-
position: 1
|
|
247
|
-
/* After */
|
|
248
|
-
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
const top = layout(window.innerHeight, viewSizeHeight, verticalAnchor) + window.pageYOffset; // if view intersects vertically with anchor, shift it horizontally
|
|
253
|
-
|
|
254
|
-
if (range_1.Range.intersects({
|
|
255
|
-
start: top,
|
|
256
|
-
end: top + viewSizeHeight
|
|
257
|
-
}, {
|
|
258
|
-
start: verticalAnchor.offset,
|
|
259
|
-
end: verticalAnchor.offset + verticalAnchor.size
|
|
260
|
-
})) {
|
|
261
|
-
horizontalAnchor.size = around.width;
|
|
262
|
-
|
|
263
|
-
if (anchorAlignment === 1
|
|
264
|
-
/* RIGHT */
|
|
265
|
-
) {
|
|
266
|
-
horizontalAnchor.offset = around.left;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
const left = layout(window.innerWidth, viewSizeWidth, horizontalAnchor);
|
|
271
|
-
this.view.classList.remove('top', 'bottom', 'left', 'right');
|
|
272
|
-
this.view.classList.add(anchorPosition === 0
|
|
273
|
-
/* BELOW */
|
|
274
|
-
? 'bottom' : 'top');
|
|
275
|
-
this.view.classList.add(anchorAlignment === 0
|
|
276
|
-
/* LEFT */
|
|
277
|
-
? 'left' : 'right');
|
|
278
|
-
this.view.classList.toggle('fixed', this.useFixedPosition);
|
|
279
|
-
const containerPosition = DOM.getDomNodePagePosition(this.container);
|
|
280
|
-
this.view.style.top = `${top - (this.useFixedPosition ? DOM.getDomNodePagePosition(this.view).top : containerPosition.top)}px`;
|
|
281
|
-
this.view.style.left = `${left - (this.useFixedPosition ? DOM.getDomNodePagePosition(this.view).left : containerPosition.left)}px`;
|
|
282
|
-
this.view.style.width = 'initial';
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
hide(data) {
|
|
286
|
-
const delegate = this.delegate;
|
|
287
|
-
this.delegate = null;
|
|
288
|
-
|
|
289
|
-
if (delegate === null || delegate === void 0 ? void 0 : delegate.onHide) {
|
|
290
|
-
delegate.onHide(data);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
this.toDisposeOnClean.dispose();
|
|
294
|
-
DOM.hide(this.view);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
isVisible() {
|
|
298
|
-
return !!this.delegate;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
onDOMEvent(e, onCapture) {
|
|
302
|
-
if (this.delegate) {
|
|
303
|
-
if (this.delegate.onDOMEvent) {
|
|
304
|
-
this.delegate.onDOMEvent(e, document.activeElement);
|
|
305
|
-
} else if (onCapture && !DOM.isAncestor(e.target, this.container)) {
|
|
306
|
-
this.hide();
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
dispose() {
|
|
312
|
-
this.hide();
|
|
313
|
-
super.dispose();
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
exports.ContextView = ContextView;
|
|
319
|
-
ContextView.BUBBLE_UP_EVENTS = ['click', 'keydown', 'focus', 'blur'];
|
|
320
|
-
ContextView.BUBBLE_DOWN_EVENTS = ['click'];
|
|
321
|
-
let SHADOW_ROOT_CSS =
|
|
322
|
-
/* css */
|
|
323
|
-
`
|
|
324
|
-
:host {
|
|
325
|
-
all: initial; /* 1st rule so subsequent properties are reset. */
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
@font-face {
|
|
329
|
-
font-family: "codicon";
|
|
330
|
-
src: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.codicon[class*='codicon-'] {
|
|
334
|
-
font: normal normal normal 16px/1 codicon;
|
|
335
|
-
display: inline-block;
|
|
336
|
-
text-decoration: none;
|
|
337
|
-
text-rendering: auto;
|
|
338
|
-
text-align: center;
|
|
339
|
-
-webkit-font-smoothing: antialiased;
|
|
340
|
-
-moz-osx-font-smoothing: grayscale;
|
|
341
|
-
user-select: none;
|
|
342
|
-
-webkit-user-select: none;
|
|
343
|
-
-ms-user-select: none;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
:host {
|
|
347
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
|
351
|
-
:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
|
|
352
|
-
:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
|
|
353
|
-
:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
|
|
354
|
-
:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }
|
|
355
|
-
|
|
356
|
-
:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
|
|
357
|
-
:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
|
|
358
|
-
:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
|
|
359
|
-
:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
|
|
360
|
-
:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }
|
|
361
|
-
|
|
362
|
-
:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
|
|
363
|
-
:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
|
|
364
|
-
:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
|
|
365
|
-
:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
|
|
366
|
-
:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
|
|
367
|
-
`;
|