@theia/messages 1.27.0-next.9 → 1.27.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/lib/browser/messages-frontend-module.d.ts.map +1 -1
- package/lib/browser/messages-frontend-module.js +1 -0
- package/lib/browser/messages-frontend-module.js.map +1 -1
- package/lib/browser/notifications-contribution.d.ts +3 -2
- package/lib/browser/notifications-contribution.d.ts.map +1 -1
- package/lib/browser/notifications-contribution.js +23 -3
- package/lib/browser/notifications-contribution.js.map +1 -1
- package/package.json +4 -4
- package/src/browser/messages-frontend-module.ts +2 -1
- package/src/browser/notifications-contribution.ts +25 -3
- package/src/browser/style/notifications.css +2 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/messages-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,mCAAmC,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAW/D,
|
|
1
|
+
{"version":3,"file":"messages-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/messages-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,mCAAmC,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAW/D,wBAcG"}
|
|
@@ -34,6 +34,7 @@ exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind
|
|
|
34
34
|
bind(core_1.CommandContribution).toService(notifications_contribution_1.NotificationsContribution);
|
|
35
35
|
bind(browser_1.KeybindingContribution).toService(notifications_contribution_1.NotificationsContribution);
|
|
36
36
|
bind(color_application_contribution_1.ColorContribution).toService(notifications_contribution_1.NotificationsContribution);
|
|
37
|
+
bind(browser_1.StylingParticipant).toService(notifications_contribution_1.NotificationsContribution);
|
|
37
38
|
bind(notifications_contribution_1.NotificationsKeybindingContext).toSelf().inSingletonScope();
|
|
38
39
|
bind(browser_1.KeybindingContext).toService(notifications_contribution_1.NotificationsKeybindingContext);
|
|
39
40
|
bind(notifications_manager_1.NotificationManager).toSelf().inSingletonScope();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages-frontend-module.js","sourceRoot":"","sources":["../../src/browser/messages-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;AAEhF,6CAA2C;AAE3C,4DAA+D;AAC/D,mDAAuD;AACvD,mEAA8D;AAC9D,yEAAyE;AACzE,qEAAiE;AACjE,6EAAyG;AACzG,
|
|
1
|
+
{"version":3,"file":"messages-frontend-module.js","sourceRoot":"","sources":["../../src/browser/messages-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;AAEhF,6CAA2C;AAE3C,4DAA+D;AAC/D,mDAAuD;AACvD,mEAA8D;AAC9D,yEAAyE;AACzE,qEAAiE;AACjE,6EAAyG;AACzG,qDAAyI;AACzI,sCAAkD;AAClD,2GAA2F;AAC3F,mFAA8E;AAE9E,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACjE,IAAI,CAAC,2DAA2B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC9D,IAAI,CAAC,8CAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAI,CAAC,sDAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,yCAA+B,CAAC,CAAC,SAAS,CAAC,sDAAyB,CAAC,CAAC;IAC3E,IAAI,CAAC,0BAAmB,CAAC,CAAC,SAAS,CAAC,sDAAyB,CAAC,CAAC;IAC/D,IAAI,CAAC,gCAAsB,CAAC,CAAC,SAAS,CAAC,sDAAyB,CAAC,CAAC;IAClE,IAAI,CAAC,kDAAiB,CAAC,CAAC,SAAS,CAAC,sDAAyB,CAAC,CAAC;IAC7D,IAAI,CAAC,4BAAkB,CAAC,CAAC,SAAS,CAAC,sDAAyB,CAAC,CAAC;IAC9D,IAAI,CAAC,2DAA8B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACjE,IAAI,CAAC,2BAAiB,CAAC,CAAC,SAAS,CAAC,2DAA8B,CAAC,CAAC;IAClE,IAAI,CAAC,2CAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACtD,MAAM,CAAC,sBAAa,CAAC,CAAC,SAAS,CAAC,2CAAmB,CAAC,CAAC;IACrD,IAAA,sDAA2B,EAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FrontendApplicationContribution, StatusBar, FrontendApplication, KeybindingContribution, KeybindingRegistry, KeybindingContext } from '@theia/core/lib/browser';
|
|
1
|
+
import { FrontendApplicationContribution, StatusBar, FrontendApplication, KeybindingContribution, KeybindingRegistry, KeybindingContext, StylingParticipant, ColorTheme, CssStyleCollector } from '@theia/core/lib/browser';
|
|
2
2
|
import { Keybinding } from '@theia/core/lib/common/keybinding';
|
|
3
3
|
import { CommandContribution, CommandRegistry } from '@theia/core';
|
|
4
4
|
import { NotificationManager } from './notifications-manager';
|
|
5
5
|
import { NotificationsRenderer } from './notifications-renderer';
|
|
6
6
|
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution';
|
|
7
7
|
import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
|
|
8
|
-
export declare class NotificationsContribution implements FrontendApplicationContribution, CommandContribution, KeybindingContribution, ColorContribution {
|
|
8
|
+
export declare class NotificationsContribution implements FrontendApplicationContribution, CommandContribution, KeybindingContribution, ColorContribution, StylingParticipant {
|
|
9
9
|
protected readonly id = "theia-notification-center";
|
|
10
10
|
protected readonly manager: NotificationManager;
|
|
11
11
|
protected readonly notificationsRenderer: NotificationsRenderer;
|
|
@@ -18,6 +18,7 @@ export declare class NotificationsContribution implements FrontendApplicationCon
|
|
|
18
18
|
registerCommands(commands: CommandRegistry): void;
|
|
19
19
|
registerKeybindings(keybindings: KeybindingRegistry): void;
|
|
20
20
|
registerColors(colors: ColorRegistry): void;
|
|
21
|
+
registerThemeStyle(theme: ColorTheme, collector: CssStyleCollector): void;
|
|
21
22
|
}
|
|
22
23
|
export declare class NotificationsKeybindingContext implements KeybindingContext {
|
|
23
24
|
protected readonly manager: NotificationManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/notifications-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EACH,+BAA+B,EAAE,SAAS,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"notifications-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/notifications-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EACH,+BAA+B,EAAE,SAAS,EAAE,mBAAmB,EAC/D,sBAAsB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,EAAE,iBAAiB,EACnH,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MA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;IACrC,MAAM,oBAAoB,yBAAyB,CAAC;CAC9D"}
|
|
@@ -31,8 +31,9 @@ const browser_1 = require("@theia/core/lib/browser");
|
|
|
31
31
|
const notifications_commands_1 = require("./notifications-commands");
|
|
32
32
|
const notifications_manager_1 = require("./notifications-manager");
|
|
33
33
|
const notifications_renderer_1 = require("./notifications-renderer");
|
|
34
|
-
const
|
|
34
|
+
const color_1 = require("@theia/core/lib/common/color");
|
|
35
35
|
const nls_1 = require("@theia/core/lib/common/nls");
|
|
36
|
+
const theme_1 = require("@theia/core/lib/common/theme");
|
|
36
37
|
let NotificationsContribution = class NotificationsContribution {
|
|
37
38
|
constructor() {
|
|
38
39
|
this.id = 'theia-notification-center';
|
|
@@ -124,8 +125,8 @@ let NotificationsContribution = class NotificationsContribution {
|
|
|
124
125
|
description: 'Notifications center header foreground color. Notifications slide in from the bottom right of the window.'
|
|
125
126
|
}, {
|
|
126
127
|
id: 'notificationCenterHeader.background', defaults: {
|
|
127
|
-
dark:
|
|
128
|
-
light:
|
|
128
|
+
dark: color_1.Color.lighten('notifications.background', 0.3),
|
|
129
|
+
light: color_1.Color.darken('notifications.background', 0.05),
|
|
129
130
|
hc: 'notifications.background'
|
|
130
131
|
}, description: 'Notifications center header background color. Notifications slide in from the bottom right of the window.'
|
|
131
132
|
}, {
|
|
@@ -155,6 +156,25 @@ let NotificationsContribution = class NotificationsContribution {
|
|
|
155
156
|
}, description: 'The color used for the icon of info notifications. Notifications slide in from the bottom right of the window.'
|
|
156
157
|
});
|
|
157
158
|
}
|
|
159
|
+
registerThemeStyle(theme, collector) {
|
|
160
|
+
const notificationHover = theme.getColor('list.hoverBackground');
|
|
161
|
+
if (notificationHover) {
|
|
162
|
+
collector.addRule(`
|
|
163
|
+
.theia-notification-list-item:hover:not(:focus) {
|
|
164
|
+
background-color: ${notificationHover};
|
|
165
|
+
}
|
|
166
|
+
`);
|
|
167
|
+
}
|
|
168
|
+
const focusBorder = theme.getColor('focusBorder');
|
|
169
|
+
if (focusBorder && (0, theme_1.isHighContrast)(theme.type)) {
|
|
170
|
+
collector.addRule(`
|
|
171
|
+
.theia-notification-list-item:hover:not(:focus) {
|
|
172
|
+
outline: 1px dashed ${focusBorder};
|
|
173
|
+
outline-offset: -2px;
|
|
174
|
+
}
|
|
175
|
+
`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
158
178
|
};
|
|
159
179
|
__decorate([
|
|
160
180
|
(0, inversify_1.inject)(notifications_manager_1.NotificationManager),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-contribution.js","sourceRoot":"","sources":["../../src/browser/notifications-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;;AAEhF,4DAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"notifications-contribution.js","sourceRoot":"","sources":["../../src/browser/notifications-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;;AAEhF,4DAAkE;AAClE,qDAGiC;AAEjC,qEAAiE;AAEjE,mEAA8D;AAC9D,qEAAiE;AAGjE,wDAAqD;AACrD,oDAAiD;AACjD,wDAA8D;AAG9D,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAAtC;QAEuB,OAAE,GAAG,2BAA2B,CAAC;IAqKxD,CAAC;IA1JG,OAAO,CAAC,IAAyB;QAC7B,IAAI,CA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JG,SAAS,CAAC,IAAgB;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;IACpE,CAAC;CAEJ,CAAA;AAPG;IADC,IAAA,kBAAM,EAAC,2CAAmB,CAAC;8BACA,2CAAmB;+DAAC;AAHvC,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;GACA,8BAA8B,CAU1C;AAVY,wEAA8B;AAW3C,WAAiB,8BAA8B;IAC9B,mDAAoB,GAAG,sBAAsB,CAAC;AAC/D,CAAC,EAFgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAE9C;AAbY,wEAA8B"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/messages",
|
|
3
|
-
"version": "1.27.0
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"description": "Theia - Messages Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.27.0
|
|
6
|
+
"@theia/core": "1.27.0",
|
|
7
7
|
"react-perfect-scrollbar": "^1.5.3",
|
|
8
8
|
"ts-md5": "^1.2.2"
|
|
9
9
|
},
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"watch": "theiaext watch"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@theia/ext-scripts": "1.
|
|
43
|
+
"@theia/ext-scripts": "1.27.0"
|
|
44
44
|
},
|
|
45
45
|
"nyc": {
|
|
46
46
|
"extends": "../../configs/nyc.json"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "b952ad743a97821dee94787e946f5a288174d4e8"
|
|
49
49
|
}
|
|
@@ -22,7 +22,7 @@ import { NotificationManager } from './notifications-manager';
|
|
|
22
22
|
import { bindNotificationPreferences } from './notification-preferences';
|
|
23
23
|
import { NotificationsRenderer } from './notifications-renderer';
|
|
24
24
|
import { NotificationsContribution, NotificationsKeybindingContext } from './notifications-contribution';
|
|
25
|
-
import { FrontendApplicationContribution, KeybindingContribution, KeybindingContext } from '@theia/core/lib/browser';
|
|
25
|
+
import { FrontendApplicationContribution, KeybindingContribution, KeybindingContext, StylingParticipant } from '@theia/core/lib/browser';
|
|
26
26
|
import { CommandContribution } from '@theia/core';
|
|
27
27
|
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution';
|
|
28
28
|
import { NotificationContentRenderer } from './notification-content-renderer';
|
|
@@ -35,6 +35,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
|
35
35
|
bind(CommandContribution).toService(NotificationsContribution);
|
|
36
36
|
bind(KeybindingContribution).toService(NotificationsContribution);
|
|
37
37
|
bind(ColorContribution).toService(NotificationsContribution);
|
|
38
|
+
bind(StylingParticipant).toService(NotificationsContribution);
|
|
38
39
|
bind(NotificationsKeybindingContext).toSelf().inSingletonScope();
|
|
39
40
|
bind(KeybindingContext).toService(NotificationsKeybindingContext);
|
|
40
41
|
bind(NotificationManager).toSelf().inSingletonScope();
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
18
|
import {
|
|
19
|
-
FrontendApplicationContribution, StatusBar, FrontendApplication, StatusBarAlignment,
|
|
19
|
+
FrontendApplicationContribution, StatusBar, FrontendApplication, StatusBarAlignment,
|
|
20
|
+
KeybindingContribution, KeybindingRegistry, KeybindingContext, StylingParticipant, ColorTheme, CssStyleCollector
|
|
20
21
|
} from '@theia/core/lib/browser';
|
|
21
22
|
import { Keybinding } from '@theia/core/lib/common/keybinding';
|
|
22
23
|
import { NotificationsCommands } from './notifications-commands';
|
|
@@ -24,11 +25,13 @@ import { CommandContribution, CommandRegistry } from '@theia/core';
|
|
|
24
25
|
import { NotificationManager } from './notifications-manager';
|
|
25
26
|
import { NotificationsRenderer } from './notifications-renderer';
|
|
26
27
|
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution';
|
|
27
|
-
import { ColorRegistry
|
|
28
|
+
import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
|
|
29
|
+
import { Color } from '@theia/core/lib/common/color';
|
|
28
30
|
import { nls } from '@theia/core/lib/common/nls';
|
|
31
|
+
import { isHighContrast } from '@theia/core/lib/common/theme';
|
|
29
32
|
|
|
30
33
|
@injectable()
|
|
31
|
-
export class NotificationsContribution implements FrontendApplicationContribution, CommandContribution, KeybindingContribution, ColorContribution {
|
|
34
|
+
export class NotificationsContribution implements FrontendApplicationContribution, CommandContribution, KeybindingContribution, ColorContribution, StylingParticipant {
|
|
32
35
|
|
|
33
36
|
protected readonly id = 'theia-notification-center';
|
|
34
37
|
|
|
@@ -176,6 +179,25 @@ export class NotificationsContribution implements FrontendApplicationContributio
|
|
|
176
179
|
);
|
|
177
180
|
}
|
|
178
181
|
|
|
182
|
+
registerThemeStyle(theme: ColorTheme, collector: CssStyleCollector): void {
|
|
183
|
+
const notificationHover = theme.getColor('list.hoverBackground');
|
|
184
|
+
if (notificationHover) {
|
|
185
|
+
collector.addRule(`
|
|
186
|
+
.theia-notification-list-item:hover:not(:focus) {
|
|
187
|
+
background-color: ${notificationHover};
|
|
188
|
+
}
|
|
189
|
+
`);
|
|
190
|
+
}
|
|
191
|
+
const focusBorder = theme.getColor('focusBorder');
|
|
192
|
+
if (focusBorder && isHighContrast(theme.type)) {
|
|
193
|
+
collector.addRule(`
|
|
194
|
+
.theia-notification-list-item:hover:not(:focus) {
|
|
195
|
+
outline: 1px dashed ${focusBorder};
|
|
196
|
+
outline-offset: -2px;
|
|
197
|
+
}
|
|
198
|
+
`);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
179
201
|
}
|
|
180
202
|
|
|
181
203
|
@injectable()
|
|
@@ -106,11 +106,7 @@
|
|
|
106
106
|
border-color: var(--theia-focusBorder);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.theia-notification-list-item:
|
|
110
|
-
background-color: var(--theia-list-hoverBackground);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.theia-notification-list > .theia-notification-list-item:not(:last-child) {
|
|
109
|
+
.theia-notification-center .theia-notification-list-item:not(:last-child) {
|
|
114
110
|
border-top: 1px var(--theia-notifications-border) solid;
|
|
115
111
|
}
|
|
116
112
|
|
|
@@ -246,24 +242,10 @@
|
|
|
246
242
|
}
|
|
247
243
|
|
|
248
244
|
.theia-notification-item-progressbar.indeterminate {
|
|
245
|
+
/* `progress-animation` is defined in `packages/core/src/browser/style/progress-bar.css` */
|
|
249
246
|
animation: progress-animation 1.3s 0s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
250
247
|
}
|
|
251
248
|
|
|
252
|
-
@keyframes progress-animation {
|
|
253
|
-
0% {
|
|
254
|
-
margin-left: 0%;
|
|
255
|
-
width: 3%;
|
|
256
|
-
}
|
|
257
|
-
60% {
|
|
258
|
-
margin-left: 45%;
|
|
259
|
-
width: 20%;
|
|
260
|
-
}
|
|
261
|
-
100% {
|
|
262
|
-
margin-left: 99%;
|
|
263
|
-
width: 1%;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
249
|
/* Perfect scrollbar */
|
|
268
250
|
|
|
269
251
|
.theia-notification-list-scroll-container .ps__rail-y {
|