Skip to content

Commit

Permalink
make verified key readable in search result when using dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pfedick committed Jul 2, 2024
1 parent ede67ff commit 5708400
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions gui/src/search/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,16 @@ void Search::renderTrack(WMTreeItem* item, const DataTitle* ti)
item->setText(SEARCH_TRACKLIST_BPM_ROW, Tmp);
item->setText(SEARCH_TRACKLIST_KEY_ROW, wm_main->MusicKeys.keyName(ti->Key, musicKeyDisplay));

if ((ti->Flags & 16)) item->setForeground(SEARCH_TRACKLIST_KEY_ROW, QColor(0, 0, 0));
else item->setForeground(SEARCH_TRACKLIST_KEY_ROW, QColor(192, 192, 192));
QFont f=item->font(SEARCH_TRACKLIST_KEY_ROW);
if ((ti->Flags & 16)) {
f.setBold(true);
f.setWeight(QFont::Black);
} else {
f.setBold(false);
f.setWeight(QFont::ExtraLight);
}
item->setFont(SEARCH_TRACKLIST_KEY_ROW, f);

Tmp.setf("%d", (int)ti->EnergyLevel);
item->setText(SEARCH_TRACKLIST_ENERGYLEVEL_ROW, Tmp);

Expand Down

0 comments on commit 5708400

Please sign in to comment.