From 388648de6bf3952bdfdd39815adc803637e0e520 Mon Sep 17 00:00:00 2001 From: Ada Date: Sat, 17 May 2025 15:31:45 +1000 Subject: [PATCH] Dark theme for JS console --- interface/resources/styles/console.qss | 20 ------ interface/src/ui/JSConsole.cpp | 90 +++++++++++++++----------- interface/src/ui/JSConsole.h | 4 +- interface/ui/console.ui | 24 ------- 4 files changed, 56 insertions(+), 82 deletions(-) delete mode 100644 interface/resources/styles/console.qss diff --git a/interface/resources/styles/console.qss b/interface/resources/styles/console.qss deleted file mode 100644 index 021d5d84e9..0000000000 --- a/interface/resources/styles/console.qss +++ /dev/null @@ -1,20 +0,0 @@ -* { - font-family: Inconsolata, Lucida Console, Andale Mono, Monaco; - font-size: 14px; -} - -#promptTextEdit { - color: #425d72; -} - -#promptTextEdit:!enabled { - color: #7f7f7f; -} - -#promptGutterLabel { - color: #a9bbc3; -} - -#promptGutterLabel:!enabled { - color: #7f7f7f; -} diff --git a/interface/src/ui/JSConsole.cpp b/interface/src/ui/JSConsole.cpp index 6344a4ed53..0a7b125a48 100644 --- a/interface/src/ui/JSConsole.cpp +++ b/interface/src/ui/JSConsole.cpp @@ -35,23 +35,10 @@ const int NO_CURRENT_HISTORY_COMMAND = -1; const int MAX_HISTORY_SIZE = 256; const QString HISTORY_FILENAME = "JSConsole.history.json"; -const QString COMMAND_STYLE = "color: #266a9b;"; - -const QString RESULT_SUCCESS_STYLE = "color: #677373;"; -const QString RESULT_INFO_STYLE = "color: #223bd1;"; -const QString RESULT_WARNING_STYLE = "color: #999922;"; -const QString RESULT_ERROR_STYLE = "color: #d13b22;"; - -const QString GUTTER_PREVIOUS_COMMAND = "<"; -const QString GUTTER_ERROR = "X"; - const QString JSDOC_LINE_SEPARATOR = "\r"; const QString JSDOC_STYLE = "