UI/color tweaks from SD

This commit is contained in:
fekt
2023-02-20 19:00:19 -05:00
parent 7dfce16b5f
commit 4969275156
9 changed files with 541 additions and 445 deletions

View File

@@ -4,6 +4,7 @@
#include "addressbook.h"
#include "settings.h"
#include "camount.h"
#include "guiconstants.h"
BalancesTableModel::BalancesTableModel(QObject *parent): QAbstractTableModel(parent)
{}
@@ -100,9 +101,16 @@ QVariant BalancesTableModel::data(const QModelIndex &index, int role) const
}
// Else, just return the default brush
QBrush b;
b.setColor(Qt::black);
// Get current theme name
QString theme_name = Settings::getInstance()->get_theme_name();
QBrush b;
QColor color;
if (theme_name == "Dark" || theme_name == "Midnight") {
color = COLOR_WHITE;
}else{
color = COLOR_BLACK;
}
b.setColor(color);
return b;
}