Commit e1e181e5 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Support LibreOffice icons with appmenu-gtk-module

When using vanilla gtk3, however, its actions are random (window-1234-56) and of no use
parent 3a537775
......@@ -114,6 +114,15 @@ QString Icons::actionIcon(const QString &actionName)
icon = s_icons.value(action);
}
if (icon.isEmpty()) {
static const auto s_unoPrefix = QStringLiteral(".uno:"); // LibreOffice with appmenu-gtk
if (action.startsWith(s_unoPrefix)) {
action = action.mid(s_unoPrefix.length());
}
icon = s_icons.value(action);
}
if (icon.isEmpty()) {
action = action.toLower();
icon = s_icons.value(action);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment