diff --git a/part/part.cpp b/part/part.cpp index f99c74724..40fae196f 100644 --- a/part/part.cpp +++ b/part/part.cpp @@ -861,7 +861,8 @@ void Part::setupActions() m_showLeftPanel = ac->add(QStringLiteral("show_leftpanel")); m_showLeftPanel->setText(i18n("Show S&idebar")); - m_showLeftPanel->setIcon(QIcon::fromTheme(QStringLiteral("view-sidetree"))); + const QString preferredSidebarIcon = m_sidebar->layoutDirection() == Qt::LeftToRight ? QStringLiteral("sidebar-expand-left") : QStringLiteral("sidebar-expand-right"); + m_showLeftPanel->setIcon(QIcon::fromTheme(preferredSidebarIcon, QIcon::fromTheme(QStringLiteral("view-sidetree")))); connect(m_showLeftPanel, &QAction::toggled, this, &Part::slotShowLeftPanel); ac->setDefaultShortcut(m_showLeftPanel, QKeySequence(Qt::Key_F7)); m_showLeftPanel->setChecked(Okular::Settings::showLeftPanel()); diff --git a/part/part.rc b/part/part.rc index 1931230b1..30a21e7fa 100644 --- a/part/part.rc +++ b/part/part.rc @@ -1,6 +1,6 @@ - + &File @@ -110,6 +110,9 @@ + + +