Skip to content

Commit 6f498ee

Browse files
committed
more fee_table styling
1 parent 2d55695 commit 6f498ee

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/qt/mempooldetail.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ MempoolDetail::MempoolDetail(QWidget* parent) : QWidget(parent)
2525
parent->installEventFilter(this);
2626
raise();
2727
}
28-
// setMouseTracking(true);
28+
29+
this->setAutoFillBackground(true);
30+
31+
QPalette pal = this->palette();
32+
pal.setColor(QPalette::Window, pal.color(QPalette::Window));
33+
this->setPalette(pal);
2934

3035
QSettings settings;
3136
m_font_size = settings.value(mempoolDetailFontSizeKey, 12).toReal();
@@ -71,7 +76,7 @@ void MempoolDetail::setPlatformStyle(const PlatformStyle* platform_style)
7176
m_fee_table->setSelectionBehavior(QAbstractItemView::SelectRows);
7277
m_fee_table->setSelectionMode(QAbstractItemView::SingleSelection);
7378
m_fee_table->setAlternatingRowColors(false);
74-
m_fee_table->setStyleSheet("");
79+
m_fee_table->setStyleSheet("QTableView { background-color: transparent; border: 1px solid gray; border-radius: 5px; }");
7580
m_fee_table->setSortingEnabled(true);
7681
m_fee_table->sortByColumn(m_fee_table_model->m_sort_column, m_fee_table_model->m_sort_order);
7782
m_fee_table->verticalHeader()->setVisible(false);

0 commit comments

Comments
 (0)