Fix explain colors in dark mode
This commit is contained in:
parent
2e516c9284
commit
05e9b982cd
4 changed files with 32 additions and 9 deletions
|
|
@ -53,6 +53,15 @@ ColorTheme GetLightMode()
|
|||
t.dateTimeTypeColor = Qt::darkMagenta;
|
||||
t.stringTypeColor = Qt::darkYellow;
|
||||
|
||||
t.explainTime[0] = QColor(255, 192, 192);
|
||||
t.explainTime[1] = QColor(255, 224, 192);
|
||||
t.explainTime[2] = QColor(255, 255, 192);
|
||||
t.explainTime[3] = QColor(255, 255, 224);
|
||||
|
||||
t.explainEstError[0] = QColor(255, 192, 192);
|
||||
t.explainEstError[1] = QColor(255, 224, 192);
|
||||
t.explainEstError[2] = QColor(255, 255, 192);
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
@ -91,6 +100,15 @@ ColorTheme GetDarkMode()
|
|||
t.dateTimeTypeColor = QColor(Qt::magenta);
|
||||
t.stringTypeColor = QColor(Qt::yellow);
|
||||
|
||||
t.explainTime[0] = QColor(120, 20, 20);
|
||||
t.explainTime[1] = QColor(110, 40, 20);
|
||||
t.explainTime[2] = QColor(90, 50, 20);
|
||||
t.explainTime[3] = QColor(70, 70, 20);
|
||||
|
||||
t.explainEstError[0] = QColor(120, 20, 20);
|
||||
t.explainEstError[1] = QColor(90, 50, 20);
|
||||
t.explainEstError[2] = QColor(70, 70, 20);
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ struct ColorTheme
|
|||
|
||||
QColor GetColorForType(Oid oid) const;
|
||||
|
||||
QColor explainTime[4];
|
||||
QColor explainEstError[3];
|
||||
};
|
||||
|
||||
const ColorTheme& GetColorTheme();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue