Speclib: Highlighting color too similar to default table coloring

Issue #217 closed
Fabian Thiel created an issue

The gray highlighting color after clicking on a spectrum in the plot is very similar to the grey the table has by default (as there is always a swap between white+gray for rows). It should be more like the blue highlighting when clicking in the attribute table. In the image example it is still very straightforward, but if you try to find the selected spectrum in a speblic with a lot of rows it is quite hard to find the selected row.

speclibhighlightcolor.gif

Comments (1)

  1. Benjamin Jakimow

    solved by changing the QPalette for the QgsDualView QAttributeTable

    # change selected row color: keep color also when attribtue table looses focus
    
            pal = self.mDualView.tableView().palette()
            cSelected = pal.color(QPalette.Active, QPalette.Highlight)
            pal.setColor(QPalette.Inactive, QPalette.Highlight, cSelected)
            self.mDualView.tableView().setPalette(pal)
    
  2. Log in to comment