Skip to content

Commit

Permalink
Modify style of bin filter buttons
Browse files Browse the repository at this point in the history
These mimic the style of the filter menu toggle buttons
  • Loading branch information
bmatherly committed Dec 22, 2024
1 parent f79f82a commit f9a9479
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/docks/playlistdock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,22 @@ PlaylistDock::PlaylistDock(QWidget *parent) :
ui->filtersLayout->addWidget(toolbar);

auto toolbar2 = new QToolBar(tr("Playlist Filters"));
toolbar2->setStyleSheet(
QStringLiteral("QToolButton:checked { color:palette(highlighted-text); background-color:palette(highlight);}"));
QString styleSheet = QStringLiteral(
"QToolButton {"
" background-color: palette(background);"
" border-style: solid;"
" border-width: 1px;"
" border-radius: 3px;"
" border-color: palette(shadow);"
" color: palette(button-text);"
"}"
"QToolButton:checked {"
" color:palette(highlighted-text);"
" background-color:palette(highlight);"
" border-color: palette(highlight);"
"}"
);
toolbar2->setStyleSheet(styleSheet);
ui->filtersLayout->addItem(new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum));
toolbar2->addActions({Actions["playlistFiltersVideo"], Actions["playlistFiltersAudio"], Actions["playlistFiltersImage"], Actions["playlistFiltersOther"]});
ui->filtersLayout->addWidget(toolbar2);
Expand Down

0 comments on commit f9a9479

Please sign in to comment.