Fixing selection highlight on pi

This commit is contained in:
Jordan Sherer 2019-12-27 22:50:45 -05:00
parent 39ce9043a9
commit 94aed047ec

View File

@ -12046,7 +12046,8 @@ void MainWindow::displayBandActivity() {
}
// Set table color
auto style = QString("QTableWidget { background:%1; selection-background-color:%2; alternate-background-color:%1; color:%3; }");
auto style = QString("QTableWidget { background:%1; selection-background-color:%2; alternate-background-color:%1; color:%3; } "
"QTableWidget::item:selected { background-color: palette(highlight); color: palette(highlightedText); }");
style = style.arg(m_config.color_table_background().name());
style = style.arg(m_config.color_table_highlight().name());
style = style.arg(m_config.color_table_foreground().name());
@ -12054,6 +12055,7 @@ void MainWindow::displayBandActivity() {
// Set the table palette for inactive selected row
auto p = ui->tableWidgetRXAll->palette();
p.setColor(QPalette::Highlight, m_config.color_table_highlight());
p.setColor(QPalette::HighlightedText, m_config.color_table_foreground());
p.setColor(QPalette::Inactive, QPalette::Highlight, p.color(QPalette::Active, QPalette::Highlight));
@ -12385,7 +12387,8 @@ void MainWindow::displayCallActivity() {
}
// Set table color
auto style = QString("QTableWidget { background:%1; selection-background-color:%2; alternate-background-color:%1; color:%3; }");
auto style = QString("QTableWidget { background:%1; selection-background-color:%2; alternate-background-color:%1; color:%3; } "
"QTableWidget::item:selected { background-color: palette(highlight); color: palette(highlightedText); }");
style = style.arg(m_config.color_table_background().name());
style = style.arg(m_config.color_table_highlight().name());
style = style.arg(m_config.color_table_foreground().name());