diff --git a/client/images/console-debug-dark.svg b/client/images/console-debug-dark.svg index 58aebc9d..aa962842 100644 --- a/client/images/console-debug-dark.svg +++ b/client/images/console-debug-dark.svg @@ -1 +1,54 @@ - \ No newline at end of file + + diff --git a/client/images/console-debug-light.svg b/client/images/console-debug-light.svg index 65a0b0a8..8bdc7ae3 100644 --- a/client/images/console-debug-light.svg +++ b/client/images/console-debug-light.svg @@ -1 +1,54 @@ - \ No newline at end of file + + diff --git a/client/images/console-error-dark.svg b/client/images/console-error-dark.svg index 56caaebc..4b27283f 100644 --- a/client/images/console-error-dark.svg +++ b/client/images/console-error-dark.svg @@ -1 +1,54 @@ - \ No newline at end of file + + diff --git a/client/images/console-error-light.svg b/client/images/console-error-light.svg index 7ddff356..88bb91c0 100644 --- a/client/images/console-error-light.svg +++ b/client/images/console-error-light.svg @@ -1 +1,54 @@ - \ No newline at end of file + + diff --git a/client/images/console-info-dark.svg b/client/images/console-info-dark.svg index 37e75260..c116d093 100644 --- a/client/images/console-info-dark.svg +++ b/client/images/console-info-dark.svg @@ -1 +1,54 @@ - \ No newline at end of file + + diff --git a/client/images/console-info-light.svg b/client/images/console-info-light.svg index f239a82f..24b74263 100644 --- a/client/images/console-info-light.svg +++ b/client/images/console-info-light.svg @@ -1 +1,54 @@ - \ No newline at end of file + + diff --git a/client/images/console-warn-dark.svg b/client/images/console-warn-dark.svg index bcfcb475..60c51a17 100644 --- a/client/images/console-warn-dark.svg +++ b/client/images/console-warn-dark.svg @@ -1 +1,54 @@ - \ No newline at end of file + + diff --git a/client/images/console-warn-light.svg b/client/images/console-warn-light.svg index 83a70db4..6e76d14a 100644 --- a/client/images/console-warn-light.svg +++ b/client/images/console-warn-light.svg @@ -1 +1,54 @@ - \ No newline at end of file + + diff --git a/client/modules/IDE/components/Console.jsx b/client/modules/IDE/components/Console.jsx index 4f394f13..997878ea 100644 --- a/client/modules/IDE/components/Console.jsx +++ b/client/modules/IDE/components/Console.jsx @@ -23,6 +23,11 @@ class Console extends React.Component { this.props.clearConsole(); this.props.dispatchConsoleEvent(this.props.consoleEvents); } + + if (this.props.fontSize !== prevProps.fontSize) { + this.props.clearConsole(); + this.props.dispatchConsoleEvent(this.props.consoleEvents); + } } getConsoleFeedStyle(theme, times) { @@ -39,16 +44,24 @@ class Console extends React.Component { LOG_DEBUG_ICON: `url(${debugDarkUrl})`, LOG_INFO_ICON: `url(${infoDarkUrl})` }; + const CONSOLE_FEED_SIZES = { + TREENODE_LINE_HEIGHT: 1.2, + BASE_FONT_SIZE: this.props.fontSize, + ARROW_FONT_SIZE: this.props.fontSize, + LOG_ICON_WIDTH: this.props.fontSize, + LOG_ICON_HEIGHT: 1.45 * this.props.fontSize, + }; + if (times > 1) { Object.assign(style, CONSOLE_FEED_WITHOUT_ICONS); } switch (theme) { case 'light': - return Object.assign(CONSOLE_FEED_LIGHT_STYLES, CONSOLE_FEED_LIGHT_ICONS, style); + return Object.assign(CONSOLE_FEED_LIGHT_STYLES, CONSOLE_FEED_LIGHT_ICONS, CONSOLE_FEED_SIZES, style); case 'dark': - return Object.assign(CONSOLE_FEED_DARK_STYLES, CONSOLE_FEED_DARK_ICONS, style); + return Object.assign(CONSOLE_FEED_DARK_STYLES, CONSOLE_FEED_DARK_ICONS, CONSOLE_FEED_SIZES, style); case 'contrast': - return Object.assign(CONSOLE_FEED_CONTRAST_STYLES, CONSOLE_FEED_DARK_ICONS, style); + return Object.assign(CONSOLE_FEED_CONTRAST_STYLES, CONSOLE_FEED_DARK_ICONS, CONSOLE_FEED_SIZES, style); default: return ''; } @@ -102,7 +115,7 @@ class Console extends React.Component { return (