mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
[themes] Fix selection color of the attribute table view widget
This commit is contained in:
parent
9068f3c9a4
commit
263c4c2a50
@ -685,6 +685,8 @@ QTreeView#viewRules::indicator:checked
|
||||
|
||||
QTableView {
|
||||
color: @text;
|
||||
selection-background-color: @selection;
|
||||
selection-color: @itemdarkbackground;
|
||||
}
|
||||
|
||||
QHeaderView::section {
|
||||
|
@ -697,6 +697,8 @@ QTreeView#viewRules::indicator:checked
|
||||
|
||||
QTableView {
|
||||
color: @text;
|
||||
selection-background-color: @selection;
|
||||
selection-color: @text;
|
||||
}
|
||||
|
||||
QHeaderView::section {
|
||||
|
@ -152,20 +152,19 @@ void QgisAppStyleSheet::buildStyleSheet( const QMap<QString, QVariant> &opts )
|
||||
style += QStringLiteral( "QToolBar > QToolButton { padding: %1px; } " ).arg( toolbarSpacingInt );
|
||||
}
|
||||
}
|
||||
|
||||
ss += style;
|
||||
|
||||
// Fix selection color on losing focus (Windows)
|
||||
const QPalette palette = qApp->palette();
|
||||
|
||||
ss += QString( "QTableView {"
|
||||
"selection-background-color: %1;"
|
||||
"selection-color: %2;"
|
||||
"}" )
|
||||
.arg( palette.highlight().color().name(),
|
||||
palette.highlightedText().color().name() );
|
||||
}
|
||||
|
||||
// Fix selection color on losing focus (Windows)
|
||||
const QPalette palette = qApp->palette();
|
||||
|
||||
ss += QString( "QTableView {"
|
||||
"selection-background-color: %1;"
|
||||
"selection-color: %2;"
|
||||
"}" )
|
||||
.arg( palette.highlight().color().name(),
|
||||
palette.highlightedText().color().name() );
|
||||
|
||||
QgsDebugMsg( QStringLiteral( "Stylesheet built: %1" ).arg( ss ) );
|
||||
|
||||
emit appStyleSheetChanged( ss );
|
||||
|
Loading…
x
Reference in New Issue
Block a user