2025-02-23 08:32:15 +01:00
|
|
|
#include <QColor>
|
|
|
|
|
#include "Pgsql_oids.h"
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
bool isDarkMode();
|
|
|
|
|
|
|
|
|
|
struct ColorTheme
|
|
|
|
|
{
|
|
|
|
|
QColor defaultTextColor;
|
|
|
|
|
|
|
|
|
|
QColor gutterBackground;
|
|
|
|
|
QColor lineNumber;
|
|
|
|
|
QColor currentLine;
|
|
|
|
|
QColor errorLine;
|
|
|
|
|
|
|
|
|
|
QColor keyword;
|
|
|
|
|
QColor comment;
|
|
|
|
|
QColor quotedString;
|
|
|
|
|
QColor quotedIdentifier;
|
|
|
|
|
QColor type;
|
|
|
|
|
QColor parameter;
|
|
|
|
|
|
|
|
|
|
QColor gigaBytes;
|
|
|
|
|
QColor megaBytes;
|
|
|
|
|
QColor kiloBytes;
|
|
|
|
|
QColor bytes;
|
|
|
|
|
|
|
|
|
|
QColor booleanTrue;
|
|
|
|
|
QColor booleanFalse;
|
|
|
|
|
|
|
|
|
|
QColor integerColor;
|
|
|
|
|
QColor floatColor;
|
|
|
|
|
QColor numericColor;
|
|
|
|
|
QColor nullColor;
|
|
|
|
|
|
|
|
|
|
QColor numericTypeColor;
|
|
|
|
|
QColor dateTimeTypeColor;
|
|
|
|
|
QColor stringTypeColor;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QColor GetColorForType(Oid oid) const;
|
|
|
|
|
|
2025-03-10 19:01:03 +01:00
|
|
|
QColor explainTime[4];
|
|
|
|
|
QColor explainEstError[3];
|
2025-02-23 08:32:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const ColorTheme& GetColorTheme();
|
|
|
|
|
|
|
|
|
|
void InitApplicationPalette();
|