Issue #115: Redesign of sidebar widget, new icons

This commit is contained in:
Jakub Melka
2023-12-03 15:25:06 +01:00
parent 6221c533a2
commit c01a1da4ec
15 changed files with 423 additions and 15 deletions

View File

@ -290,9 +290,14 @@ void PDFSidebarWidget::selectPage(Page page)
// Switch state of the buttons and select the page
for (const auto& pageInfo : m_pageInfo)
{
if (pageInfo.second.button)
QToolButton* pushButton = pageInfo.second.button;
if (pushButton)
{
pageInfo.second.button->setChecked(pageInfo.first == page);
pushButton->setChecked(pageInfo.first == page);
QFont font = pushButton->font();
font.setBold(pageInfo.first == page);
pushButton->setFont(font);
}
if (pageInfo.first == page)