From 7604b0f96af7244c1661ce17813f7fc44ff646f4 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 28 Feb 2021 11:28:41 -0400 Subject: [PATCH] Customize submenu arrow for HMenuItem --- src/gui/Base/HMenuItem.qml | 8 ++++++++ src/icons/thin/submenu-arrow.svg | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 src/icons/thin/submenu-arrow.svg diff --git a/src/gui/Base/HMenuItem.qml b/src/gui/Base/HMenuItem.qml index fa36cf20..ccd96482 100644 --- a/src/gui/Base/HMenuItem.qml +++ b/src/gui/Base/HMenuItem.qml @@ -3,6 +3,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 +import QtQuick.Layouts 1.12 MenuItem { id: menuItem @@ -31,5 +32,12 @@ MenuItem { button: menuItem buttonTheme: theme.controls.menuItem label.horizontalAlignment: Label.AlignLeft + + HIcon { + visible: menuItem.subMenu + svgName: "submenu-arrow" + } } + + arrow: null } diff --git a/src/icons/thin/submenu-arrow.svg b/src/icons/thin/submenu-arrow.svg new file mode 100644 index 00000000..0badd93d --- /dev/null +++ b/src/icons/thin/submenu-arrow.svg @@ -0,0 +1,3 @@ + + +