fix selection panel contents
This commit is contained in:
@@ -50,9 +50,14 @@ public:
|
||||
protected:
|
||||
void paintEvent(QPaintEvent* /*event*/) override
|
||||
{
|
||||
// The active group is asked for by name rather than taken from the current one,
|
||||
// which follows the window's focus: the inactive group's highlight is close
|
||||
// enough to the card's background that the bar reads as gone whenever the game
|
||||
// is tabbed away from or a modal dialog holds focus -- exactly when a player
|
||||
// watching a build finish is most likely to be looking at it.
|
||||
const QColor fill = m_fillColor.isValid()
|
||||
? m_fillColor
|
||||
: palette().color(QPalette::Highlight);
|
||||
: palette().color(QPalette::Active, QPalette::Highlight);
|
||||
|
||||
QColor track = fill;
|
||||
track.setAlpha(kTrackAlpha);
|
||||
|
||||
Reference in New Issue
Block a user