Customize submenu arrow for HMenuItem
This commit is contained in:
parent
6fc0b6725c
commit
7604b0f96a
@ -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
|
||||
}
|
||||
|
3
src/icons/thin/submenu-arrow.svg
Normal file
3
src/icons/thin/submenu-arrow.svg
Normal 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 |
Loading…
Reference in New Issue
Block a user