File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -247,10 +247,13 @@ function themeStyle(theme) {
247
247
const cacheKey = [ theme , zoomRatio , editorFontSize ] . join ( '-' ) ;
248
248
if ( themeCache_ [ cacheKey ] ) return themeCache_ [ cacheKey ] ;
249
249
250
+ // Font size are not theme specific, but they must be referenced
251
+ // and computed here to allow them to respond to settings changes
252
+ // without the need to restart
250
253
let fontSizes = {
251
- fontSize : Math . round ( 12 * zoomRatio ) ,
254
+ fontSize : Math . round ( globalStyle . fontSize * zoomRatio ) ,
252
255
editorFontSize : editorFontSize ,
253
- textAreaLineHeight : Math . round ( 17 * editorFontSize / 12 ) ,
256
+ textAreaLineHeight : Math . round ( globalStyle . textAreaLineHeight * editorFontSize / 12 ) ,
254
257
255
258
// For WebView - must correspond to the properties above
256
259
htmlFontSize : Math . round ( 15 * zoomRatio ) + 'px' ,
You can’t perform that action at this time.
0 commit comments