Disable Show Icons in Menu preference
This commit is contained in:
parent
97bcb4becc
commit
ec7024154b
4 changed files with 8 additions and 9 deletions
|
@ -1415,7 +1415,7 @@ QAction *MainWindow::createAction(const char *id, const char *name,
|
|||
QAction *action = new DVAction(tr(name), this);
|
||||
|
||||
#if !defined(_WIN32)
|
||||
bool visible = Preferences::instance()->getBoolValue(showIconsInMenu);
|
||||
bool visible = false; //Preferences::instance()->getBoolValue(showIconsInMenu);
|
||||
action->setIconVisibleInMenu(visible);
|
||||
#endif
|
||||
|
||||
|
@ -1435,7 +1435,6 @@ QAction *MainWindow::createAction(const char *id, const char *name,
|
|||
// do nothing for other platforms
|
||||
} else
|
||||
action->setIcon(createQIcon(iconSVGName, false, true));
|
||||
action->setIconVisibleInMenu(false);
|
||||
addAction(action);
|
||||
#ifdef MACOSX
|
||||
// To prevent the wrong menu items (due to MacOS menu naming conventions),
|
||||
|
@ -1681,7 +1680,7 @@ QAction *MainWindow::createToggle(const char *id, const char *name,
|
|||
if (!iconSVGName || !*iconSVGName) action->setIcon(QIcon());
|
||||
#if defined(_WIN32)
|
||||
else {
|
||||
bool visible = Preferences::instance()->getBoolValue(showIconsInMenu);
|
||||
bool visible = false; //Preferences::instance()->getBoolValue(showIconsInMenu);
|
||||
action->setIconVisibleInMenu(visible);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1477,7 +1477,7 @@ QWidget* PreferencesPopup::createInterfacePage() {
|
|||
// insertUI(interfaceFontStyle, lay, buildFontStyleList());
|
||||
QGridLayout* colorCalibLay = insertGroupBoxUI(colorCalibrationEnabled, lay);
|
||||
{ insertUI(colorCalibrationLutPaths, colorCalibLay); }
|
||||
insertUI(showIconsInMenu, lay);
|
||||
// insertUI(showIconsInMenu, lay);
|
||||
|
||||
lay->setRowStretch(lay->rowCount(), 1);
|
||||
insertFootNote(lay);
|
||||
|
|
|
@ -439,11 +439,11 @@ void Preferences::definePreferenceItems() {
|
|||
|
||||
// hide menu icons by default in macOS since the icon color may not match with
|
||||
// the system color theme
|
||||
#ifdef Q_OS_MACOS
|
||||
//#ifdef Q_OS_MACOS
|
||||
bool defIconsVisible = false;
|
||||
#else
|
||||
bool defIconsVisible = true;
|
||||
#endif
|
||||
//#else
|
||||
// bool defIconsVisible = true;
|
||||
//#endif
|
||||
define(showIconsInMenu, "showIconsInMenu", QMetaType::Bool, defIconsVisible);
|
||||
|
||||
setCallBack(pixelsOnly, &Preferences::setPixelsOnly);
|
||||
|
|
|
@ -320,7 +320,7 @@ QIcon createQIcon(const char *iconSVGName, bool useFullOpacity,
|
|||
QIcon icon;
|
||||
|
||||
#ifdef _WIN32
|
||||
bool showIconInMenu = Preferences::instance()->getBoolValue(showIconsInMenu);
|
||||
bool showIconInMenu = false; //Preferences::instance()->getBoolValue(showIconsInMenu);
|
||||
// set transparent icon
|
||||
if (isForMenuItem &&
|
||||
themeIconPixmap.size() == QSize(16 * devPixRatio, 16 * devPixRatio) &&
|
||||
|
|
Loading…
Reference in a new issue