Cosmetic changes on console window + Add message log context

This commit is contained in:
baydam
2019-10-14 19:59:18 +00:00
parent 6d8518f9e4
commit 2a5ca4b343
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ TEMPLATE = app
VERSION = 0.6.3
TARGET = mapmap
DEFINES += UNICODE QT_THREAD_SUPPORT QT_CORE_LIB QT_GUI_LIB
DEFINES += UNICODE QT_THREAD_SUPPORT QT_CORE_LIB QT_GUI_LIB QT_MESSAGELOGCONTEXT
include(src/core/core.pri)
include(src/shape/shape.pri)
+2 -2
View File
@@ -41,7 +41,7 @@ ConsoleWindow::ConsoleWindow(QWidget *parent) : QMainWindow(parent)
// Set color scheme
QPalette scheme = palette();
scheme.setColor(QPalette::Base, Qt::black);
scheme.setColor(QPalette::Base, QColor("#00020E"));
scheme.setColor(QPalette::Text, Qt::white);
_console->setPalette(scheme);
@@ -102,7 +102,7 @@ void ConsoleWindow::printMessage(QtMsgType type, const QMessageLogContext &conte
debug = "<strong style=\"color: #00FF00;\">Debug:</strong>",
info = "<strong style=\"color: #1E90FF;\">Info:</strong>",
warning = "<strong style=\"color: #FFFF00;\">Warning:</strong>",
critical = "<strong style=\"color: #FF0000;\">Critical:</strong>",
critical = "<strong style=\"color: #FF6600;\">Critical:</strong>",
fatal = "<strong style=\"background: #FF0000;\">Fatal!</strong>";
// Output
QString output;
+2 -2
View File
@@ -72,8 +72,8 @@ private:
QMenu *fileMenu;
// Constants
static const int CONSOLE_WINDOW_DEFAULT_WIDTH = 640;
static const int CONSOLE_WINDOW_DEFAULT_HEIGHT = 480;
static const int CONSOLE_WINDOW_DEFAULT_WIDTH = 1024;
static const int CONSOLE_WINDOW_DEFAULT_HEIGHT = 768;
};
}