Customize submenu arrow for HMenuItem

This commit is contained in:
miruka 2021-02-28 11:28:41 -04:00
parent 6fc0b6725c
commit 7604b0f96a
2 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,7 @@
import QtQuick 2.12 import QtQuick 2.12
import QtQuick.Controls 2.12 import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
MenuItem { MenuItem {
id: menuItem id: menuItem
@ -31,5 +32,12 @@ MenuItem {
button: menuItem button: menuItem
buttonTheme: theme.controls.menuItem buttonTheme: theme.controls.menuItem
label.horizontalAlignment: Label.AlignLeft label.horizontalAlignment: Label.AlignLeft
HIcon {
visible: menuItem.subMenu
svgName: "submenu-arrow"
} }
} }
arrow: null
}

View File

@ -0,0 +1,3 @@
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="m16.771204 4.8120301-1.680978 1.6803834 5.547225 5.4498125-5.547225 5.44506 1.680978 1.680384 7.228796-7.125444z" stroke-width=".593985"/>
</svg>

After

Width:  |  Height:  |  Size: 243 B