Use a custom background for checked actions in tool bars

This commit is contained in:
luisangelsm
2025-11-25 16:39:32 +01:00
parent e7b6bd805e
commit fcc9b4d83f
3 changed files with 12 additions and 3 deletions

View File

@ -62,7 +62,10 @@ FolderContentView::FolderContentView(QAction *toogleRecentVisibilityAction, QWid
connect(coverSizeSlider, &QAbstractSlider::valueChanged, this, &FolderContentView::setCoversSize);
toolbar = new QToolBar();
toolbar->setStyleSheet("QToolBar {border: none;}");
toolbar->setStyleSheet(R"(
QToolBar { border: none; }
QToolButton:checked { background-color: #cccccc; }
)");
toolbar->setIconSize(QSize(18, 18));
toolbar->addWidget(new YACReaderToolBarStretch);
toolbar->addAction(toogleRecentVisibilityAction);