summaryrefslogtreecommitdiff
path: root/plugins/warp/ui/shared/function.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-16 21:53:33 -0400
committerMason Reed <mason@vector35.com>2025-07-17 06:20:21 -0400
commit750e6f6a5b6d2ce3aec636aca2eaef6def608c23 (patch)
treea8fd6f00f5a16996c6e9648f95d7f786b9f9bfc1 /plugins/warp/ui/shared/function.cpp
parent7aa57d92318eb39cac7b7efa3eb35577fc007313 (diff)
[WARP] Make the sidebar highlights not blinding
It is apparently "too bright" and I need to get "my eyes checked"
Diffstat (limited to 'plugins/warp/ui/shared/function.cpp')
-rw-r--r--plugins/warp/ui/shared/function.cpp7
1 files changed, 6 insertions, 1 deletions
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);