mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
Qt: Use same changed colour in memory scanner as view
More readable.
This commit is contained in:
@@ -566,6 +566,8 @@ void MemoryScannerWindow::updateResultsValues()
|
||||
{
|
||||
QSignalBlocker sb(m_ui.scanTable);
|
||||
|
||||
const QBrush changed_color(QtHost::IsDarkApplicationTheme() ? QColor(255, 80, 80) : QColor(191, 121, 20));
|
||||
|
||||
int row = 0;
|
||||
for (const MemoryScan::Result& res : m_scanner.GetResults())
|
||||
{
|
||||
@@ -576,7 +578,7 @@ void MemoryScannerWindow::updateResultsValues()
|
||||
item->setText(formatValue(res.value, m_scanner.GetValueSigned()));
|
||||
else
|
||||
item->setText(formatHexValue(res.value, m_scanner.GetSize()));
|
||||
item->setForeground(Qt::red);
|
||||
item->setForeground(changed_color);
|
||||
}
|
||||
|
||||
row++;
|
||||
|
||||
Reference in New Issue
Block a user