From 750e6f6a5b6d2ce3aec636aca2eaef6def608c23 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 16 Jul 2025 21:53:33 -0400 Subject: [WARP] Make the sidebar highlights not blinding It is apparently "too bright" and I need to get "my eyes checked" --- plugins/warp/ui/shared/function.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/warp/ui/shared/function.cpp') diff --git a/plugins/warp/ui/shared/function.cpp b/plugins/warp/ui/shared/function.cpp index 2202fb4e..88d27cd1 100644 --- a/plugins/warp/ui/shared/function.cpp +++ b/plugins/warp/ui/shared/function.cpp @@ -120,7 +120,7 @@ QVariant WarpFunctionItemModel::data(const QModelIndex &index, int role) const if (BNWARPFunctionsEqual(itemFunction->GetFunction()->m_object, m_matchedFunction->m_object)) { // TODO: Better color? - QColor matchedColor = getThemeColor(BlueStandardHighlightColor); + static QColor matchedColor = getThemeColor(BlueStandardHighlightColor); matchedColor.setAlpha(128); return matchedColor; } @@ -202,6 +202,11 @@ WarpFunctionTableWidget::WarpFunctionTableWidget(QWidget *parent) : QWidget(pare // Decrease row height to make it look nice. m_table->verticalHeader()->setDefaultSectionSize(30); + // Make the highlight less bright. + QPalette palette = m_table->palette(); + palette.setColor(QPalette::Highlight, getThemeColor(SelectionColor)); + m_table->setPalette(palette); + TokenDataDelegate *tokenDelegate = new TokenDataDelegate(this); // NOTE: Column 0 is assumed to be the function with the token data. m_table->setItemDelegateForColumn(0, tokenDelegate); -- cgit v1.3.1