Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions src/widget/wmainmenubar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,13 @@ void WMainMenuBar::initialize() {
// HELP MENU
QMenu* pHelpMenu = new QMenu(tr("&Help"), this);

QString externalLinkSuffix = " =>";
QString externalLinkSuffix;
#ifndef __APPLE__
// According to Apple's Human Interface Guidelines devs are encouraged
// to not use custom icons in menus.
// https://developer.apple.com/design/human-interface-guidelines/macos/menus/menu-anatomy/
externalLinkSuffix = QChar(' ') + QChar(0x2197); // north-east arrow
#endif

QString supportTitle = tr("&Community Support") + externalLinkSuffix;
QString supportText = tr("Get help with Mixxx");
Expand All @@ -535,6 +541,7 @@ void WMainMenuBar::initialize() {
QDir resourceDir(m_pConfig->getResourcePath());
// Default to the mixxx.org hosted version of the manual.
QUrl qManualUrl(MIXXX_MANUAL_URL);
QString manualSuffix;
#if defined(__APPLE__)
// FIXME: We don't include the PDF manual in the bundle on OSX.
// Default to the web-hosted version.
Expand All @@ -543,18 +550,23 @@ void WMainMenuBar::initialize() {
if (resourceDir.exists(MIXXX_MANUAL_FILENAME)) {
qManualUrl = QUrl::fromLocalFile(
resourceDir.absoluteFilePath(MIXXX_MANUAL_FILENAME));
} else {
manualSuffix = externalLinkSuffix;
}
#elif defined(__LINUX__)
// On GNU/Linux, the manual is installed to e.g. /usr/share/mixxx/doc/
// On GNU/Linux, the manual is installed to e.g. /usr/share/doc/mixxx/
if (resourceDir.cd("../doc/mixxx") && resourceDir.exists(MIXXX_MANUAL_FILENAME)) {
qManualUrl = QUrl::fromLocalFile(
resourceDir.absoluteFilePath(MIXXX_MANUAL_FILENAME));
} else {
manualSuffix = externalLinkSuffix;
}
#else
// No idea, default to the mixxx.org hosted version.
manualSuffix = externalLinkSuffix;
#endif

QString manualTitle = tr("&User Manual") + externalLinkSuffix;
QString manualTitle = tr("&User Manual") + manualSuffix;
QString manualText = tr("Read the Mixxx user manual.");
auto* pHelpManual = new QAction(manualTitle, this);
pHelpManual->setStatusTip(manualText);
Expand Down