New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt: Overhaul menubar #5794
Qt: Overhaul menubar #5794
Conversation
Adds icons to entries? |
@MayImilae |
That seems a bit unnecessary, imo. The menu bar isn't really conducive to icons, because of how small it is. (It's designed around text) To be clear, there's nothing wrong with it, just, it's not a good space for icons, and it's more icons that have to be made! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keyboard shortcuts are good!
On the topic of icons: they don't work on macOS (possibly intentional by Qt, possibly because the icons don't exist), which is good because the HIG discourages it. Do they show up on Windows?
Source/Core/DolphinQt2/MenuBar.cpp
Outdated
m_perform_online_update_menu = tools_menu->addMenu(tr("Perform Online System Update")); | ||
m_perform_online_update_menu = | ||
tools_menu->addMenu(QIcon::fromTheme(QStringLiteral("system-software-update")), | ||
tr("Perform Online System Update...")); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@Starsam80 you answered my question before I asked it! If the icons only work on Linux, I'd say it's probably not worth the extra code. |
@ligfx No, they do not appear on windows. Quoting the Qt docs: https://doc.qt.io/qt-5/qicon.html#fromTheme
I don't think the icons are worth it |
@Starsam80 Done. Now using Dolphin's icons only. Also reduced the amount of icons used due to the fact that our iconset is rather limited. |
Ah, sorry, I wasn't clear before: menu icons should not be displayed on macOS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I think the icons shouldn't be shown on Windows, either. I poked around a Windows 10 install, and I couldn't find any applications that used icons in their menus. First-party apps and large third-party applications like Spotify and Atom don't use them. Dolphin should be consistent.
Also, the fullscreen icon metaphor isn't understandable at such a small size, and it's unclear to me whether the screenshot one is. We all know it's a camera, but, with the loss of higher-definition details, would a new user recognize what a rectangle with a ring in the middle and a dot in one corner means?
Source/Core/DolphinQt2/MenuBar.cpp
Outdated
@@ -9,6 +9,8 @@ | |||
#include <QMessageBox> | |||
#include <QUrl> | |||
|
|||
#include <iostream> |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Are the icons still in the menu bar on the current version of this? |
@MayImilae No, I removed all icons. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, everything's good for me!
Source/Core/DolphinQt2/MenuBar.cpp
Outdated
@@ -17,6 +17,7 @@ | |||
#include "DolphinQt2/AboutDialog.h" | |||
#include "DolphinQt2/GameList/GameFile.h" | |||
#include "DolphinQt2/MenuBar.h" | |||
#include "DolphinQt2/Resources.h" |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
fc81610
to
886b327
Compare
Source/Core/DolphinQt2/MenuBar.cpp
Outdated
m_open_action = file_menu->addAction(tr("Open"), this, SIGNAL(Open())); | ||
m_exit_action = file_menu->addAction(tr("Exit"), this, SIGNAL(Exit())); | ||
m_open_action = file_menu->addAction(tr("Open..."), this, SIGNAL(Open()), | ||
QKeySequence(QStringLiteral("Ctrl+O"))); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Source/Core/DolphinQt2/MenuBar.cpp
Outdated
m_state_save_menu->addAction(tr("Save State to Oldest Slot"), this, &MenuBar::StateSaveOldest); | ||
m_state_save_menu->addAction(tr("Save State to File..."), this, SIGNAL(StateSave())); | ||
m_state_save_menu->addAction(tr("Save State to Selected Slot"), this, SIGNAL(StateSaveSlot())); | ||
m_state_save_menu->addAction(tr("Save State to Oldest Slot"), this, SIGNAL(StateSaveOldest())); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
43d3df4
to
6ddb8b9
Compare
Improves the menubar in several ways:
...
to items when appropriateOpen...
andExit
)