Skip to content

Commit bcc715e

Browse files
author
Akos Kitta
committed
[theme]: made the output stylable.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 7f0bdfd commit bcc715e

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,24 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
312312
hc: 'activityBar.inactiveForeground'
313313
},
314314
description: 'Background color of the toolbar items when hovering over them. Such as Upload, Verify, etc.'
315+
},
316+
{
317+
id: 'arduino.output.foreground',
318+
defaults: {
319+
dark: 'editor.foreground',
320+
light: 'editor.foreground',
321+
hc: 'editor.foreground'
322+
},
323+
description: 'Color of the text in the Output view.'
324+
},
325+
{
326+
id: 'arduino.output.background',
327+
defaults: {
328+
dark: 'editor.background',
329+
light: 'editor.background',
330+
hc: 'editor.background'
331+
},
332+
description: 'Background color of the Output view.'
315333
}
316334
);
317335
}

arduino-ide-extension/src/browser/data/arduino.color-theme.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@
108108
"secondaryButton.hoverBackground": "#dae3e3",
109109
"arduino.branding.primary": "#00979d",
110110
"arduino.branding.secondary": "#b5c8c9",
111-
"arduino.foreground": "#edf1f1"
111+
"arduino.foreground": "#edf1f1",
112+
"arduino.output.foreground": "#FFFFFF",
113+
"arduino.output.background": "#000000"
112114
},
113115
"type": "light",
114116
"name": "Arduino"

arduino-ide-extension/src/browser/style/main.css

+8-4
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,17 @@
132132
box-sizing: border-box;
133133
}
134134

135-
/* To left shift the content in the Output view */
136-
/* .theia-output {
137-
margin-left: -20px;
138-
} */
135+
.theia-output .editor-container {
136+
background-color: var(--theia-arduino-output-background);
137+
}
138+
139+
.theia-output .monaco-editor .lines-content.monaco-editor-background {
140+
background-color: var(--theia-arduino-output-background);
141+
}
139142

140143
.theia-output .monaco-editor .margin {
141144
border-right: none;
145+
background-color: var(--theia-arduino-output-background);
142146
}
143147

144148
.noWrapInfo {

0 commit comments

Comments
 (0)