mirror of
https://github.com/YACReader/yacreader
synced 2025-12-02 23:42:46 -05:00
Use a custom background for checked actions in tool bars
This commit is contained in:
@ -486,7 +486,10 @@ void MainWindowViewer::createToolBars()
|
||||
#endif
|
||||
|
||||
#ifndef Y_MAC_UI
|
||||
comicToolBar->setStyleSheet("QToolBar{border:none;}");
|
||||
comicToolBar->setStyleSheet(R"(
|
||||
QToolBar { border: none; }
|
||||
QToolButton:checked { background-color: #cccccc; }
|
||||
)");
|
||||
comicToolBar->setIconSize(QSize(18, 18));
|
||||
#endif
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -267,7 +267,10 @@ void LibraryWindow::doLayout()
|
||||
// TOOLBARS-------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
editInfoToolBar = new QToolBar();
|
||||
editInfoToolBar->setStyleSheet("QToolBar {border: none;}");
|
||||
editInfoToolBar->setStyleSheet(R"(
|
||||
QToolBar { border: none; }
|
||||
QToolButton:checked { background-color: #cccccc; }
|
||||
)");
|
||||
|
||||
#ifdef Y_MAC_UI
|
||||
libraryToolBar = new YACReaderMacOSXToolbar(this);
|
||||
|
||||
Reference in New Issue
Block a user