File tree 5 files changed +15
-9
lines changed
arduino-ide-extension/src/browser
5 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
import { injectable , inject } from 'inversify' ;
3
- import { AbstractViewContribution } from '@theia/core/lib/browser' ;
3
+ import { AbstractViewContribution , codicon } from '@theia/core/lib/browser' ;
4
4
import { MonitorWidget } from './monitor-widget' ;
5
5
import { MenuModelRegistry , Command , CommandRegistry } from '@theia/core' ;
6
6
import {
@@ -32,7 +32,7 @@ export namespace SerialMonitor {
32
32
{
33
33
id : 'serial-monitor-clear-output' ,
34
34
label : 'Clear Output' ,
35
- iconClass : 'clear-all' ,
35
+ iconClass : codicon ( 'clear-all' ) ,
36
36
} ,
37
37
'vscode/output.contribution/clearOutput.label'
38
38
) ;
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ export class SerialConnectionManager {
354
354
this . messageService . warn (
355
355
nls . localize (
356
356
'arduino/serial/reconnect' ,
357
- 'Reconnecting {0} to {1} in {2] seconds...' ,
357
+ 'Reconnecting {0} to {1} in {2} seconds...' ,
358
358
Board . toString ( board , {
359
359
useFqbn : false ,
360
360
} ) ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as React from 'react';
2
2
import { NotificationComponent } from './notification-component' ;
3
3
import { NotificationCenterComponent as TheiaNotificationCenterComponent } from '@theia/messages/lib/browser/notification-center-component' ;
4
4
import { nls } from '@theia/core/lib/common' ;
5
+ import { codicon } from '@theia/core/lib/browser' ;
5
6
6
7
const PerfectScrollbar = require ( 'react-perfect-scrollbar' ) ;
7
8
@@ -28,15 +29,15 @@ export class NotificationCenterComponent extends TheiaNotificationCenterComponen
28
29
< div className = "theia-notification-center-header-actions" >
29
30
< ul className = "theia-notification-actions" >
30
31
< li
31
- className = "collapse"
32
+ className = { codicon ( 'chevron-down' , true ) }
32
33
title = { nls . localize (
33
34
'vscode/notificationsStatus/hideNotifications' ,
34
35
'Hide Notification Center'
35
36
) }
36
37
onClick = { this . onHide }
37
38
/>
38
39
< li
39
- className = " clear-all"
40
+ className = { codicon ( ' clear-all' , true ) }
40
41
title = { nls . localize (
41
42
'vscode/notificationsCommands/clearAllNotifications' ,
42
43
'Clear All'
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
import { NotificationComponent as TheiaNotificationComponent } from '@theia/messages/lib/browser/notification-component' ;
3
3
import { nls } from '@theia/core/lib/common' ;
4
+ import { codicon } from '@theia/core/lib/browser' ;
4
5
5
6
export class NotificationComponent extends TheiaNotificationComponent {
6
7
render ( ) : React . ReactNode {
@@ -15,7 +16,7 @@ export class NotificationComponent extends TheiaNotificationComponent {
15
16
>
16
17
< div className = "theia-notification-list-item-content-main" >
17
18
< div
18
- className = { `theia-notification-icon theia-notification-icon- ${ type } ` }
19
+ className = { `theia-notification-icon ${ codicon ( type ) } ${ type } ` }
19
20
/>
20
21
< div className = "theia-notification-message" >
21
22
< span
@@ -26,7 +27,11 @@ export class NotificationComponent extends TheiaNotificationComponent {
26
27
< ul className = "theia-notification-actions" >
27
28
{ expandable && (
28
29
< li
29
- className = { collapsed ? 'expand' : 'collapse' }
30
+ className = {
31
+ codicon ( 'chevron-down' ) + collapsed
32
+ ? ' expand'
33
+ : ' collapse'
34
+ }
30
35
title = {
31
36
collapsed
32
37
? nls . localize ( 'theia/messages/expand' , 'Expand' )
@@ -38,7 +43,7 @@ export class NotificationComponent extends TheiaNotificationComponent {
38
43
) }
39
44
{ ! this . isProgress && (
40
45
< li
41
- className = "clear"
46
+ className = { codicon ( 'close' , true ) }
42
47
title = { nls . localize ( 'vscode/abstractTree/clear' , 'Clear' ) }
43
48
data-message-id = { messageId }
44
49
onClick = { this . onClear }
Original file line number Diff line number Diff line change 274
274
"disconnected" : " Disconnected {0} from {1}." ,
275
275
"unexpectedError" : " Unexpected error. Reconnecting {0} on port {1}." ,
276
276
"failedReconnect" : " Failed to reconnect {0} to serial port after 10 consecutive attempts. The {1} serial port is busy." ,
277
- "reconnect" : " Reconnecting {0} to {1} in {2] seconds..."
277
+ "reconnect" : " Reconnecting {0} to {1} in {2} seconds..."
278
278
},
279
279
"component" : {
280
280
"uninstall" : " Uninstall" ,
You can’t perform that action at this time.
0 commit comments