mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Cosmetic changes on console window + Add message log context
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user