diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp index 9d33de47..2c833144 100644 --- a/YACReader/main_window_viewer.cpp +++ b/YACReader/main_window_viewer.cpp @@ -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 diff --git a/YACReaderLibrary/folder_content_view.cpp b/YACReaderLibrary/folder_content_view.cpp index a3cfc1de..679e8f2d 100644 --- a/YACReaderLibrary/folder_content_view.cpp +++ b/YACReaderLibrary/folder_content_view.cpp @@ -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); diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 5ed2f4fc..ea6e46c9 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -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);