File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,13 @@ export function createWindow(
141
141
// Make it consistent with Chrome on Windows, instead of SimSun.
142
142
// ref: [[Feature Request]: Add possibility to change DevTools font · Issue #42055 · electron/electron](https://github.com/electron/electron/issues/42055)
143
143
window . webContents . on ( "devtools-opened" , ( ) => {
144
+ // source-code-font: For code such as Elements panel
145
+ // monospace-font: For sidebar such as Event Listener Panel
144
146
const css = `
145
147
:root {
146
- --source-code-font-family: consolas; // For code such as Elements panel
148
+ --source-code-font-family: consolas;
147
149
--source-code-font-size: 13px;
148
- --monospace-font-family: consolas; // For sidebar such as Event Listener Panel
150
+ --monospace-font-family: consolas;
149
151
--monospace-font-size: 13px;
150
152
}`
151
153
window . webContents . devToolsWebContents ?. executeJavaScript ( `
You can’t perform that action at this time.
0 commit comments