From 80d77a6860e64d2319054969dfaaf647281b6dda Mon Sep 17 00:00:00 2001 From: Meru Patel <2017180@iiitdmj.ac.in> Date: Fri, 14 Sep 2018 13:41:38 +0530 Subject: [PATCH] scalable svg icons --- client/images/console-debug-dark.svg | 55 ++++++++++++++++++++++- client/images/console-debug-light.svg | 55 ++++++++++++++++++++++- client/images/console-error-dark.svg | 55 ++++++++++++++++++++++- client/images/console-error-light.svg | 55 ++++++++++++++++++++++- client/images/console-info-dark.svg | 55 ++++++++++++++++++++++- client/images/console-info-light.svg | 55 ++++++++++++++++++++++- client/images/console-warn-dark.svg | 55 ++++++++++++++++++++++- client/images/console-warn-light.svg | 55 ++++++++++++++++++++++- client/modules/IDE/components/Console.jsx | 5 +-- 9 files changed, 434 insertions(+), 11 deletions(-) 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 + + + + + + image/svg+xml + + + + + + + + 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 + + + + + + image/svg+xml + + + + + + + + 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 + + + + + + image/svg+xml + + + + + + + + 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 + + + + + + image/svg+xml + + + + + + + + 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 + + + + + + image/svg+xml + + + + + + + + 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 + + + + + + image/svg+xml + + + + + + + + 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 + + + + + + image/svg+xml + + + + + + + + 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 + + + + + + image/svg+xml + + + + + + + + diff --git a/client/modules/IDE/components/Console.jsx b/client/modules/IDE/components/Console.jsx index 2ddc3d63..d74c745d 100644 --- a/client/modules/IDE/components/Console.jsx +++ b/client/modules/IDE/components/Console.jsx @@ -48,9 +48,8 @@ class Console extends React.Component { BASE_FONT_SIZE: this.props.fontSize, TREENODE_LINE_HEIGHT: 1.5, ARROW_FONT_SIZE: this.props.fontSize, - // this line can't change icon size - LOG_ICON_WIDTH: this.props.fontSize, - LOG_ICON_HEIGHT: this.props.fontSize + LOG_ICON_WIDTH: `${this.props.fontSize}px`, + LOG_ICON_HEIGHT: `${this.props.fontSize}px`, }; if (times > 1) {